Skip to content

Conversation

kylediaz
Copy link

Hello from the Chroma team 👋

This adds a basic tool that lets agents query their data in Chroma.

We also unpinned the chromadb version. Ideally, we'd like to get you on >1.0.0 because CrewAI uses ChromaDB for short-term memory. Since we rewrote it in rust, upgrading to 1.0.0 should make Chroma 4x faster, instantly.

import chromadb
from crewai_tools import ChromaSearchTool

client = chromadb.PersistentClient(path="./chroma_db")
collection = client.get_or_create_collection(name="my_documents")

tool = ChromaSearchTool(
    collection=collection,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant