Documents
Documents are the primary source of knowledge in BindAI. They contain the information that agents retrieve during execution to answer questions with accurate, domain-specific context. Documents can represent almost any type of content, from simple Markdown files to large collections of technical documentation.What is a Document?
A document is a unit of information that can be indexed and retrieved. Examples include:- Markdown files
- PDF documents
- Word documents
- HTML pages
- API documentation
- Product manuals
- Knowledge base articles
- FAQ pages
Why Documents?
Large language models cannot reliably answer questions about information they have never seen. Documents provide that missing information. Instead of asking the model to “remember” everything, BindAI retrieves only the documents relevant to the user’s request.Document Lifecycle
A typical document passes through several stages.Example
Suppose you have a product manual.Document Collections
Documents are usually grouped into collections.Document Metadata
Documents often include metadata. Examples:- title
- author
- creation date
- tags
- category
- language
- version
Document Chunking
Large documents are usually divided into smaller pieces before indexing. Instead of retrieving a 200-page manual:Supported Formats
A knowledge system may support many document types. Common examples include:- Markdown
- Plain text
- DOCX
- HTML
- JSON
- CSV
Loading Documents
Documents are typically imported into a knowledge source before use. Conceptually:Updating Documents
Knowledge bases evolve over time. Common operations include:- adding new documents
- updating existing content
- removing obsolete documents
- rebuilding indexes
Document Retrieval
When a user asks a question:Documents vs Memory
Documents contain reference information. Memory contains conversation history.
Both systems complement one another.
Best Practices
- Keep documents focused on one topic.
- Organize documents into logical collections.
- Remove outdated versions.
- Include useful metadata.
- Prefer smaller, well-structured documents over extremely large files.
- Use chunking for long documents.
- Rebuild indexes after significant updates.
