Knowledge Retrieval Settings
How your AI searches your knowledge base, and the settings that tune retrieval quality, cost, and coverage.
When you add knowledge sources (documents, websites, etc.) to your Chipp app, your AI uses Retrieval-Augmented Generation (RAG) to find and use that content. This guide explains how retrieval actually works and which settings tune it.
How Your AI Uses Your Documents
Retrieval is a tool, not a reflex
Your AI does not search the knowledge base on every message. Instead, when your app has knowledge sources, the AI is given a searchKnowledge tool and told the knowledge base exists. On each message it decides for itself whether the question needs your content:
- “Hi, how are you?” gets answered directly. No search, no wasted tokens.
- “What’s your refund policy?” triggers a search with a query the AI writes itself.
- A complex question can trigger several searches with refined queries, the way a person would try a second search after skimming the first results.
This matters for three reasons:
- Cost: simple messages don’t pay the retrieval tax.
- Query quality: the AI writes better search queries than raw user messages. “It’s still broken” becomes a search for the actual product and error discussed earlier in the conversation.
- Iteration: if the first search misses, the AI can reformulate and search again instead of answering badly.
What is a “chunk”?
When you upload a document, Chipp automatically breaks it into smaller pieces called chunks (typically a paragraph or a few paragraphs). Chunks let a search return the exact relevant section instead of a whole 50-page document.
Example: A 50-page PDF might be split into 200 chunks. A search scores all 200 and returns only the top few.
How each search works
Every search is a hybrid search combining two strategies at once:
- Semantic search (70% of the score by default): the query and your chunks are compared as embeddings, so “How do I cancel my subscription?” matches a chunk about “ending your membership” even with zero shared words.
- Keyword search (30% by default): classic full-text matching, so exact product names, error codes, and rare terms are never lost to fuzzy matching.
Chunks below the relevance threshold are dropped, and the top results (up to your chunk limit) are returned to the AI along with which document each one came from.
Document boosting
For large knowledge bases, an optional third signal can be enabled: document boosting. Each document gets an AI-generated summary and its own embedding; when a search runs, chunks from documents that are relevant overall get boosted above stray chunks that merely share some words with the query.
Example: A user asks about “return policies.” Plain search might rank a chunk from a random product page above your Returns & Refunds document. With document boosting, chunks from the Returns document win because the document itself is highly relevant.
Settings You Can Change in the Builder
Max chunks per query
Default: 5 | Range: 1 - 25 | Build tab → Knowledge section
The maximum number of chunks each search returns to the AI.
| Value | Behavior |
|---|---|
| Fewer chunks (1-3) | Focused answers, lower token usage, faster |
| Moderate (4-7) | Balanced context (recommended) |
| More chunks (8-25) | Comprehensive coverage, higher token usage |
Use fewer chunks for FAQ-style apps where answers live in one place; use more when questions require synthesizing information scattered across documents. More chunks means more context per search, but also higher token usage on every knowledge-backed answer.
This setting takes effect when you re-publish the app.
Advanced Tuning
The remaining retrieval parameters are deliberately kept out of the builder UI (they’re easy to hurt yourself with), but every app has them and they can be tuned through the Chipp MCP Server, the builder API, or simply by asking the Alchemist copilot:
| Parameter | Default | What it does |
|---|---|---|
maxResults | 5 | Same as “Max chunks per query” above |
minScore | 0.15 | Relevance threshold: chunks scoring below it are dropped. Raise it if answers include loosely related content; lower it if the AI misses information you know is there |
vectorWeight | 0.7 | How much semantic (meaning) similarity counts in the hybrid score |
textWeight | 0.3 | How much keyword (full-text) matching counts |
useDocumentBoosting | off | Enables the document-level boost described above. Worth trying with 10+ documents on overlapping topics |
documentWeight | 0.3 | With boosting on, how strongly document-level relevance re-ranks chunks |
Example, in the Alchemist panel:
"Raise my app's knowledge relevance threshold to 0.25 and
retrieve 8 chunks per search."Troubleshooting
AI doesn’t find information that exists in my documents
- Increase Max chunks per query to 8-10
- Lower
minScoretoward 0.10 - Enable
useDocumentBoostingif you have many related documents - Check the knowledge source actually finished processing (its status should be COMPLETED)
Responses include irrelevant information
- Raise
minScoreto 0.25-0.35 - Decrease Max chunks per query to 3-4
- Review your documents for overlapping or contradictory content
Token usage is too high
- Reduce Max chunks per query to 3-4
- Raise
minScoreto filter low-quality matches
Remember that retrieval is tool-based, so messages that don’t need knowledge don’t incur retrieval cost at all; the levers above only affect knowledge-backed answers.
AI gives conflicting information
- Raise
minScoreto be more selective - Enable document boosting with a higher
documentWeightso answers stay within cohesive sources - Remove or update outdated documents
Using with MCP
You can manage knowledge sources and retrieval settings programmatically using the Chipp MCP Server.
Available Tools
| Tool | Description |
|---|---|
list_knowledge_sources | List all sources with processing status |
add_url_source | Add URL with crawl depth options |
add_document_source | Upload documents (base64 encoded) |
delete_knowledge_source | Remove a knowledge source |
refresh_knowledge_source | Re-crawl or re-process a source |
update_settings | Modify retrieval settings (max chunks, weights, threshold) |
Example Prompts
"List all knowledge sources for my FAQ bot"
"Add https://docs.example.com with crawl depth 3"
"Refresh the outdated product manual"
"Update my app to retrieve 10 chunks instead of 5"MCP server access requires a Builder plan or higher. See the MCP Setup Guide to get started.