from praisonaiagents import Agentagent = Agent( instructions="Answer questions from research papers.", knowledge={ "sources": ["papers/"], "chunker": { "type": "sdpm", "chunk_size": 512, "embedding_model": "all-MiniLM-L6-v2" } })response = agent.start("Summarize the findings")
from praisonaiagents.knowledge.chunking import Chunkingchunker = Chunking( chunker_type="sdpm", chunk_size=512, embedding_model="all-MiniLM-L6-v2")chunks = chunker.chunk("Your research paper content...")