Back to Agno

Advanced Patterns

cookbook/07_knowledge/04_advanced/README.md

2.6.4983 B
Original Source

Advanced Patterns

Advanced knowledge patterns for power users and custom integrations.

Prerequisites

  1. Run Qdrant: ./cookbook/scripts/run_qdrant.sh
  2. Set OPENAI_API_KEY environment variable
  3. For Graph RAG: pip install lightrag-agno

Examples

FileWhat It Shows
01_custom_retriever.pyCustom retrieval function bypassing Knowledge class
02_custom_chunking.pyImplementing a custom chunking strategy
03_graph_rag.pyLightRAG knowledge graph integration
04_knowledge_tools.pyKnowledgeTools: think, search, analyze
05_knowledge_protocol.pyCustom KnowledgeProtocol implementation

Running

bash
.venvs/demo/bin/python cookbook/07_knowledge/04_advanced/01_custom_retriever.py

Further Reading