basic_knowledge.py
1 """ 2 Basic Knowledge (RAG) Example - Agent-Centric API 3 4 Demonstrates knowledge with consolidated params. 5 Supports: bool, list of sources, dict config, KnowledgeConfig 6 """ 7 8 from praisonaiagents import Agent 9 10 # Basic: Enable knowledge with list of sources 11 agent = Agent( 12 instructions="You are a helpful assistant with document knowledge.", 13 knowledge=["docs/"], # List of file/folder paths 14 ) 15 16 if __name__ == "__main__": 17 response = agent.start("What does the documentation say about installation?") 18 print(response)