AI Agents
Knowledge base (RAG)
1. What is RAG?
Retrieval-Augmented Generation (RAG) allows your agent to connect to external knowledge sources. Instead of relying only on the AI model’s training data, the agent can fetch relevant information from your own documents, site content, or structured data. This makes responses more accurate, context-rich, and reliable.
Think of RAG as the memory of the agent — everything it can “look up” before answering.
Want to go deeper? Read more about contextual retrieval in this article by Anthropic.
2. Using the knowledge base in Eloquent
You can expand your agent’s knowledge base in multiple ways:
- Connect site content via a sitemap
- Upload documents (PDF)
- Link structured data through a connector (Soon)
- Connect with an MCP server (Soon)
The agent will use this content to generate precise answers which is ideal for:
- Support agents
- Product documentation
- Internal knowledge-sharing
3. How to connect site content
You can create a knowledge base by opening an agent and selecting Train your AI agent. From there, click Add page to start adding content to the knowledge base.
3.1. Add a single URL
Use this if you only want to add information from a single web page.
3.2. Web scraping
If the website doesn’t have a sitemap, scraping is possible — but not recommended.
- More expensive
- Less clean data
- Less reliable results
Only use this as a last resort.
3.3. Sitemap indexing (recommended)
Add a sitemap (often found at /sitemap.xml
, /sitemap
, or /sitemap_index.xml
). This is the most reliable and efficient method.
Cleaner data
Cheaper indexing
Keeps knowledge updated automatically
You can use free tools like XML-Sitemaps Validator to check if your sitemap is valid.
Automatic sitemap reanalysis
- Eloquent can fetch updates from your sitemap every 24 hours if you enable automatic reanalysis.
- Make sure your sitemap includes last-updated timestamps. Without it, automatic indexing can result in unexpected costs.
- ⚠️ Incorrect or incomplete sitemaps can lead to unnecessary costs. Always validate your sitemap.
Vorige
Agent promptingVolgende
Agent settings