Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Embed first, then split for better chunk embeddings
from praisonaiagents import Agent agent = Agent( instructions="Answer questions with high precision.", knowledge={ "sources": ["technical_docs/"], "chunker": { "type": "late", "chunk_size": 512, "embedding_model": "all-MiniLM-L6-v2" } } ) response = agent.start("Explain the architecture")
from praisonaiagents.knowledge.chunking import Chunking chunker = Chunking( chunker_type="late", chunk_size=512, embedding_model="all-MiniLM-L6-v2" ) chunks = chunker.chunk("Your document content...")
chunk_size
embedding_model