Documentation Index
Fetch the complete documentation index at: https://agno-v2-shaloo-ai-support-link.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Code
cookbook/08_knowledge/vector_db/chroma_db/async_chroma_db.py
import asyncio
from agno.agent import Agent
from agno.knowledge.knowledge import Knowledge
from agno.vectordb.chroma import ChromaDb
vector_db = ChromaDb(collection="recipes", path="tmp/chromadb", persistent_client=True)
knowledge = Knowledge(
vector_db=vector_db,
)
agent = Agent(knowledge=knowledge)
if __name__ == "__main__":
asyncio.run(
knowledge.ainsert(url="https://docs.agno.com/introduction/agents.md")
)
asyncio.run(
agent.aprint_response("What is the purpose of an Agno Agent?", markdown=True)
)
Usage
Set up your virtual environment
uv venv --python 3.12
source .venv/bin/activate
Install dependencies
uv pip install -U chromadb pypdf openai agno
Set environment variables
export OPENAI_API_KEY=xxx
Run Agent
python cookbook/08_knowledge/vector_db/chroma_db/async_chroma_db.py