Chattr / src /chattr /agent /knowledge.py
MH0386's picture
Add HuggingFace sync
b380004 verified
raw
history blame contribute delete
285 Bytes
from agno.db import BaseDb
from agno.knowledge.knowledge import Knowledge
from agno.vectordb.qdrant import Qdrant
def setup_knowledge(vector_db: Qdrant, db: BaseDb) -> Knowledge:
"""Set up the knowledge for the agent."""
return Knowledge(vector_db=vector_db, contents_db=db)