How it works
Instead of asking the AI to answer from memory, RAG works like this:- Your question is converted into a vector — a numerical representation of its meaning
- The system searches the topic’s indexed documents for passages semantically similar to your question
- The most relevant passages are included in the AI’s context
- The AI generates its answer using those passages as reference material
What you see in InsightHub
During an exploration, the Thinking indicator shows you:- Retrieved passages — which document chunks were fetched for your query
- Source attribution — which document each passage came from
- Tool steps — any additional calls the AI made to gather information
Why document quality matters
Retrieval is only as good as the documents you provide:| Factor | Impact |
|---|---|
| Relevance | Documents that match the topic’s subject produce better results than loosely related files |
| Text quality | Clean text extracts more accurately than scanned images or heavily formatted PDFs |
| Coverage | If the answer is in a document you haven’t uploaded, the AI cannot retrieve it |
Next steps
Documents
Manage the documents that RAG searches during explorations.
Exploration
See RAG in action during a live conversation.