from praisonaiagents import Agent# Agent with knowledge from a PDFagent = Agent( instructions="Answer questions from the document", knowledge=["company-handbook.pdf"])agent.start("What is our vacation policy?")
Just add knowledge=["your-file.pdf"] to give agents access to your documents.
from praisonaiagents import Agent# Customer support agent with company knowledgesupport_agent = Agent( name="SupportBot", instructions="""You are a customer support agent. Answer questions using the company documentation. If you don't find the answer, say so.""", knowledge=[ "faq.pdf", "product-manual.pdf", "policies/" ])# Ask questions about your documentssupport_agent.start("How do I return a product?")support_agent.start("What's the warranty period?")