AI Agents

Knowledge base (RAG), what is a 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 Connect your website to start adding content to the knowledge base.

3.1. Connect your website

Connect your website to Eloquent so we can automatically discover and index your content. This enables your agents to learn directly from your website, without any manual setup.

Under the hood, Eloquent uses your website’s sitemap to find and keep pages up to date. This is the most reliable and efficient way to ensure your knowledge stays current.

Why this works well:

  • Clean, well-structured data

  • Cost-efficient indexing

  • Automatic updates when your website changes

No action is required in most cases. Eloquent will automatically look for a sitemap (commonly found at /sitemap.xml, /sitemap, or /sitemap_index.xml). If needed, you can still validate your sitemap using free tools like the XML Sitemaps Validator.

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.

3.2. Add a single URL

Use this if you only want to add information from a single web page.