Overview
The Knowledge Base is your agent’s memory. It stores information about your business - FAQs, services, pricing, policies - that agents reference when answering questions. Using RAG (Retrieval Augmented Generation), agents can provide accurate, contextual responses based on your actual content rather than making things up.How It Works
Vector Search Technology
Magpipe uses pgvector for semantic search:-
Content Ingestion
- You add a URL or document
- Content is fetched and cleaned
- Text is split into chunks (~500 tokens each)
-
Embedding Generation
- Each chunk is converted to a vector embedding
- Embeddings capture semantic meaning
- Stored in PostgreSQL with pgvector
-
Runtime Retrieval
- When a caller asks a question
- Question is converted to an embedding
- Similar chunks are found via cosine similarity
- Top 3-5 most relevant chunks are retrieved
-
Context Injection
- Retrieved chunks are added to the agent’s context
- Agent uses this information to answer accurately
- Responses cite actual content from your knowledge base
Why RAG?
Without knowledge base:“What are your business hours?” “I don’t have that information.” ❌With knowledge base:
“What are your business hours?” “We’re open Monday through Friday, 9 AM to 5 PM, and Saturday from 10 AM to 2 PM.” ✓
Adding Knowledge Sources
From URL
Add content from any public webpage:Set Sync Schedule
Choose how often to re-fetch content:
- Every 24 hours
- Every 7 days
- Every month
- Every 3 months
Protected Pages
For pages behind authentication: Bearer Token / API Key:- Check “Requires authentication”
- Select “Bearer Token”
- Enter your token:
your-api-key-here
- Check “Requires authentication”
- Select “Basic Auth”
- Enter username and password
Supported Content Types
| Type | Support |
|---|---|
| HTML pages | ✓ Full support |
| Plain text | ✓ Full support |
| PDF documents | ✓ Text extracted |
| Markdown | ✓ Full support |
| JSON/XML | ✓ Parsed as text |
| Images | ✗ Not supported |
| Video | ✗ Not supported |
Managing Sources
Source Dashboard
Each knowledge source displays:| Field | Description |
|---|---|
| Title | Extracted page title or custom name |
| URL | Source location |
| Status | syncing, completed, failed |
| Chunks | Number of text chunks created |
| Last Synced | Timestamp of last successful sync |
| Next Sync | When automatic re-sync will occur |
Source Statuses
- Syncing - Content is being fetched and processed
- Completed - Successfully processed and indexed
- Failed - Error occurred (click to see details)
Editing Sources
Click a source to:- Change the sync schedule
- Update authentication credentials
- Force an immediate re-sync
- View processing logs
Deleting Sources
To remove a knowledge source:- Click the source to expand
- Click Delete Source
- Confirm deletion
Content Best Practices
What to Add
FAQ Pages
FAQ Pages
Your FAQ page is ideal - it contains pre-written Q&A pairs that translate perfectly to agent responses.
Services & Pricing
Services & Pricing
Add pages describing what you offer and pricing. Agents can accurately quote prices and explain services.
About Us & Company Info
About Us & Company Info
Include your story, mission, and team info. Agents can answer “tell me about your company” naturally.
Contact & Location
Contact & Location
Add pages with address, hours, directions, parking info. Critical for “where are you located?” questions.
Policies
Policies
Include return policies, cancellation policies, terms. Agents can explain policies accurately.
Product Catalogs
Product Catalogs
Add product pages. Agents can describe features and specifications to callers.
What NOT to Add
- Entire websites - Too much noise, dilutes relevance
- Login-protected portals - Customer-specific data
- Frequently changing content - Will become stale
- Competitor information - Could confuse the agent
- Internal documents - Security risk
Content Quality Tips
- Keep it factual - Agents repeat what’s in the knowledge base
- Use clear language - Avoid jargon unless your customers use it
- Structure with headings - Helps chunking algorithm
- Include common variations - “hours” and “business hours” both work
- Update regularly - Re-sync when your content changes
Automatic Sync
How Sync Works
- At the scheduled interval, Magpipe re-fetches your URL
- Content is compared to existing version
- If changed, new chunks are generated
- Old chunks are replaced atomically
- Agent immediately uses new content
Sync Schedules
| Schedule | Best For |
|---|---|
| Every 24 hours | Frequently updated content |
| Every 7 days | Weekly-changing information |
| Every month | Relatively stable content |
| Every 3 months | Static content (policies, about) |
Manual Re-sync
Force an immediate re-sync:- Click the knowledge source
- Click Sync Now
- Wait for processing to complete
Agent Integration
Per-Agent Knowledge
Each agent can access:- All knowledge sources you’ve added
- Relevant chunks are retrieved per-question
- No configuration needed - automatic
Prompt Integration
Knowledge context is automatically injected:Knowledge Limitations
- 3-5 chunks retrieved per question (most relevant)
- ~2000 tokens max knowledge context per response
- Chunks prioritized by relevance score
- Less relevant chunks truncated if limit exceeded
Monitoring & Analytics
Knowledge Usage
Track how your knowledge base is being used:- Which sources are accessed most
- Common questions by topic
- Retrieval success rate
- Gaps in knowledge (unanswered questions)
Retrieval Logs
View what knowledge was used in each conversation:- Open a conversation in Inbox
- View the transcript
- See which knowledge chunks were retrieved
Limits
| Resource | Limit |
|---|---|
| Knowledge sources | 50 per account |
| Maximum page size | 1 MB |
| Chunks per source | ~500 |
| Total chunks | 10,000 per account |
| Sync frequency | Minimum 24 hours |
Troubleshooting
Source Shows “Failed”
Common causes:- URL is not accessible
- Page requires JavaScript to render
- Authentication credentials incorrect
- Content exceeds size limit
Agent Not Using Knowledge
Check:- Source status is “completed”
- Content was successfully chunked (count > 0)
- Question is related to the content
- Try asking a direct question from the content
Outdated Information
If agent gives old information:- Check when source last synced
- Force a manual re-sync
- Verify the source URL shows current content