setup_chroma_db
Set up a ChromaDB vector database with LangChain integration, storing text embeddings and optional metadata, with persistence support, returning a retriever.
Instructions
Set up a ChromaDB vector database with LangChain integration.
Args:
texts: List of text strings to be embedded and stored in the vector database.
metadatas: Optional list of metadata dictionaries corresponding to each text.
persist_directory: Optional directory path to persist the vector database.
If None, an in-memory database will be created.
Returns:
Dict containing retriever info and success status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| texts | Yes | ||
| metadatas | No | ||
| persist_directory | No |