query_chroma_db
Query a ChromaDB vector database to retrieve relevant documents using LangChain integration. Specify the persist directory and number of results.
Instructions
Query a ChromaDB vector database using LangChain integration.
Args:
query: The query string to search for in the vector database.
persist_directory: Directory path where the vector database is persisted.
top_k: Number of top results to return (default: 3).
Returns:
List of retrieved documents with their content and metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| persist_directory | Yes |