Documents

Documents enable you to expand an agent’s knowledge and ground its responses by adding information from attached files or HTTP/HTTPS URLs.

AI Agents framework supports the following methods of working with documents

For more details, see Using documents and Structured lookup.

Parsing documents

For RAG (Retrieval-Augmented Generation) processing, documents must be split into smaller, manageable chunks to ensure efficient retrieval and accurate context handling. Each chunk should contain a coherent piece of information, typically a few hundred words, so the model can understand it in isolation. Properly chunked documents improve retrieval relevance and help the LLM generate more precise and consistent responses.

LiveHub AI Agents parses documents using the following pipeline:

In addition to the chunking pipeline, LiveHub AI Agents retain the original document in Markdown format to support “full content” working modes, allowing the agent to access the complete source when needed.

Supported file formats

You can upload files in any of the following formats. Each is converted to Markdown before chunking:

Some files are uploaded as special document types that are not chunked for retrieval – such as audio files (.wav / .pcm) and certificate files (.crt / .key). See Special documents.