How it Works
- Ingestion: You upload a file (PDF, TXT, DOCX) or raw text.
- Indexing: We split the document into chunks, generate vector embeddings, and store them in a vector database (Pinecone).
- Retrieval: When a user asks a question, the agent performs a semantic search to find relevant chunks.
- Generation: The relevant chunks are injected into the LLM’s context window, allowing it to answer accurately.
Managing Documents
Supported Formats
- Text files (.txt)
- Microsoft Word (.docx)
- Raw text input
Attachment
Documents are not automatically used by all agents. You must explicitly attach a document ID to an Agent ID. This allows you to have different knowledge sets for different agents (e.g., “Sales Agent” vs. “Support Agent”).Best Practices
- Chunk-friendly formatting: Use clear headings and short paragraphs.
- Specific information: RAG works best for facts (prices, policies, hours).
- Update frequency: If information changes, you must delete the old document and upload the new version.