AI AgentsIntermediate

Knowledge Base Setup for AI Agents

Set up a structured knowledge base that your AI agents can search and reference when answering customer questions.

4 min readUpdated May 2, 2025

How the knowledge base works

DMHub's knowledge base uses retrieval-augmented generation (RAG). When a customer asks a question:

  1. The agent converts the question to an embedding vector
  2. DMHub searches your knowledge documents for semantically similar content
  3. Relevant chunks are injected into the AI's context
  4. The AI answers using both its training and your specific content

This means your agent can answer product-specific questions it wasn't originally trained on.

Adding documents

Go to /agents → select your agent → Knowledge Base → Add Document.

Supported input types:

  • Plain text — paste directly
  • URL — DMHub fetches and indexes the page (great for docs sites and FAQs)
  • File upload — PDF, TXT, DOCX (max 10MB)

What makes a good knowledge document?

Do:

  • Use clear section headings
  • Write in the same language your customers use
  • Include question-answer pairs for FAQs
  • Keep documents focused on one topic

Don't:

  • Include irrelevant boilerplate (legal headers, navigation menus)
  • Mix multiple unrelated topics in one document
  • Use internal jargon without explanation

Example: good FAQ format

## Shipping

How long does shipping take?
Standard shipping takes 5–7 business days. Expedited shipping takes 2 business days.

Do you ship internationally?
Yes, we ship to 45 countries. International shipping takes 10–14 business days.

## Returns

What is your return policy?
We accept returns within 30 days of purchase. Items must be unused and in original packaging.

Managing your knowledge base

  • Update documents — click the pencil icon to edit any document. Changes apply immediately.
  • Delete documents — click the trash icon. The agent stops using that content within minutes.
  • Test retrieval — in the knowledge base panel, type a question to see which documents the agent would use.

Sync from a URL

If your help docs live at a public URL, you can set up automatic sync:

  1. Click Add Document → URL
  2. Enter the URL and check Auto-sync
  3. DMHub re-indexes the page every 24 hours

This keeps your agent current when you update your website content.

knowledge-baseaiagents

Was this article helpful?

Let us know if this answered your question or if you need more help.

Send feedback
Knowledge Base Setup for AI Agents | DMHub Help