Overview
The Knowledge Base uses RAG (Retrieval-Augmented Generation) to give your agent access to your business content. Documents are split into chunks, converted to vector embeddings, and stored for semantic search. Navigate to the Knowledge Base tab in the agent panel. Here you choose which data the agent will use for its responses.
Adding Content
Documents
Upload files in supported formats:- DOCX
- TXT
URLs
Provide web page URLs. Revol will scrape the content and add it to the knowledge base.Text
Add content directly as text blocks.How RAG Works
1
Upload
You upload a document or add content.
2
Chunking
Content is split into manageable chunks.
3
Embedding
Each chunk is converted to a vector embedding using the selected embedding model.
4
Storage
Embeddings are stored in PostgreSQL with pgvector extension.
5
Retrieval
When a user asks a question, the most similar chunks are retrieved using cosine similarity.
6
Generation
Retrieved chunks are injected into the LLM prompt as context.
RAG Settings
Open RAG settings via the gear icon (⚙) in the Knowledge Base storage panel. All settings are per-company and auto-saved.Embedding Model
Choose which model converts your text into vector embeddings:Chunk Limit
How many text chunks are returned per RAG search (1–20). Default: 5. Higher values provide more context to the LLM but increase token usage.Character Limit
Maximum characters per chunk when splitting documents (500–10,000). Default: 1,500. Smaller chunks give more precise retrieval. Larger chunks preserve more context per result.Chunk Overlap
Overlap between consecutive chunks (0–40%). Default: 15%. Overlap ensures important context at chunk boundaries is not lost. Higher overlap creates more chunks and uses more storage.Similarity Threshold
Minimum cosine similarity score to include a result (0.1–1.0). Default: 0.35. Lower values return more results (better recall). Higher values return only highly relevant results (better precision). For multilingual content, use lower thresholds (0.3–0.4).Storage Limits
Generate Knowledge Base with Claude Code
If you have project documentation (website pages, docs portal, README files, wiki) and want to turn it into a structured knowledge base for your Revol AI agent, you can use Claude Code to analyze the documentation and generate ready-to-upload TXT files.Prompt for knowledge base generation
Prompt for knowledge base generation


