2023-02-13 07:02:01 +00:00
|
|
|
# Chroma
|
|
|
|
|
2023-06-03 22:29:03 +00:00
|
|
|
>[Chroma](https://docs.trychroma.com/getting-started) is a database for building AI applications with embeddings.
|
2023-02-13 07:02:01 +00:00
|
|
|
|
|
|
|
## Installation and Setup
|
|
|
|
|
2023-06-03 22:29:03 +00:00
|
|
|
```bash
|
|
|
|
pip install chromadb
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## VectorStore
|
2023-02-13 07:02:01 +00:00
|
|
|
|
|
|
|
There exists a wrapper around Chroma vector databases, allowing you to use it as a vectorstore,
|
|
|
|
whether for semantic search or example selection.
|
|
|
|
|
|
|
|
```python
|
|
|
|
from langchain.vectorstores import Chroma
|
|
|
|
```
|
|
|
|
|
2023-03-27 02:49:46 +00:00
|
|
|
For a more detailed walkthrough of the Chroma wrapper, see [this notebook](../modules/indexes/vectorstores/getting_started.ipynb)
|
2023-06-03 22:29:03 +00:00
|
|
|
|
|
|
|
## Retriever
|
|
|
|
|
|
|
|
See a [usage example](../modules/indexes/retrievers/examples/chroma_self_query.ipynb).
|
|
|
|
|
|
|
|
```python
|
|
|
|
from langchain.retrievers import SelfQueryRetriever
|
|
|
|
```
|