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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"texts": "<texts>"
},
"name": "setup_chroma_db"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| texts | Yes | ||
| metadatas | No | ||
| persist_directory | No |