Skip to main content
Knowledge Retrieval enables Retrieval-Augmented Generation (RAG) over your documents. Search using semantic understanding, not just keywords.

Key Features

  • Vector Embeddings - Semantic search over document content
  • RAG Integration - Automatically augment prompts with relevant context
  • Multiple Sources - Upload documents, web pages, structured data
  • Reranking - LLM-based result ranking for quality
  • Citation Tracking - Know which documents contributed to answers

How to Enable

For Agents

  1. Agents > Select Agent > Settings > Capabilities
  2. Attach Knowledge Retrieval
  3. Link to a Knowledge Base you’ve created

For MCP Gateways

  1. Gateways > Select Gateway > Capabilities
  2. Attach Knowledge Retrieval
  3. Link to a Knowledge Base

Creating a Knowledge Base

1

Create Knowledge Base

  1. Go to Knowledge > Create Knowledge Base
  2. Enter name and description
  3. Click Create
2

Upload Documents

  1. Open your knowledge base
  2. Click Upload Documents
  3. Choose files (PDF, DOCX, TXT, MD, JSON)
  4. Documents are processed automatically
3

Configure Search

  1. Click Settings
  2. Choose embedding model
  3. Set reranking preferences
  4. Save configuration
4

Test Search

  1. Click Test Search
  2. Try semantic queries
  3. Verify results quality

How It Works

  1. Document Upload - Documents processed into chunks with metadata
  2. Embeddings - Each chunk converted to vector representation
  3. Storage - Vectors stored in the vector database
  4. Query - User query converted to vector
  5. Search - Top matching documents retrieved via cosine similarity
  6. Reranking (optional) - LLM reranks results for relevance
  7. Augmentation - Top results injected into agent prompt

Usage Examples

Agent prompt:
Knowledge base automatically searched and top results injected into context.

Complex Question

Semantic search finds relevant troubleshooting guides, not keyword matches.

Document Analysis

Knowledge base finds Q4 report, summary extracted and provided.

Configuration

Search Settings

Document Types Supported

Embedding Models

Choose the embedding model based on your needs:

Search Examples

Keyword vs Semantic

Keyword search:
Semantic search:

Multi-document

If knowledge base has multiple documents, search returns top matches across all:

Reranking

Optional LLM-based reranking improves result quality:
  • Retrieves top 20 results
  • LLM evaluates each for relevance
  • Reorders by actual relevance
  • More accurate but slower
Enable in gateway specifications:

Cost

For current pricing details, see Pricing. Monitor in Account > Usage dashboard.

Rate Limits

  • 1000 searches per hour per knowledge base
  • 500 document uploads per day per account
  • 1M total embeddings per account

Best Practices

Document Preparation

  • Clean PDFs work better than scanned images
  • Use clear document structure
  • Include metadata and dates
  • Break large documents into sections

Search Queries

  • Be specific and descriptive
  • Use natural language
  • Ask complete questions
  • Avoid single-word searches

Knowledge Base Organization

  • Group related documents
  • Use consistent naming
  • Update documents regularly
  • Remove outdated content

Common Use Cases

Product Documentation

Upload product manual, FAQ, API docs for instant search.

Internal Knowledge

Store company policies, procedures, guidelines.

Research

Upload research papers, articles for analysis.

Troubleshooting

Poor Search Results

  • Verify documents uploaded correctly
  • Try more specific queries
  • Enable reranking for better results
  • Check similarity threshold
  • Reduce top_k value
  • Disable reranking for speed
  • Use smaller embedding model

Upload Failed

  • Check file format is supported
  • Verify file is valid (not corrupted)
  • Try smaller file size
  • Check account storage limit

Next Steps