Knowledge Assist
Knowledge Assist enables CX Assistants to retrieve and use information from curated knowledge bases to answer questions. By connecting Assistants to knowledge bases, you can ensure responses are grounded in accurate, up-to-date information rather than relying solely on the LLM's training data.
Overview
Knowledge Assist combines multiple search techniques to find the most relevant information:
- Text Search: Traditional keyword-based matching for exact terms
- Semantic Search: Vector-based similarity search to find conceptually related content
- Hybrid Ranking: Reciprocal Rank Fusion combines results from both methods for optimal relevance
How It Works
1. Knowledge Base Setup
Create a knowledge base with URLs to crawl (web pages, help articles, documentation) and/or files (PDFs, documents). The web crawler extracts content and stores it in a searchable index.
2. Connect Assistant to Knowledge Base
Configure an Assistant with a knowledge_base_code. This automatically:
- Adds the
retrieve_knowledgetool to the Assistant - Injects instructions for using the knowledge base
- Enables grounded responses based on retrieved content
3. Retrieval During Evaluation
When the Assistant receives a question:
- The LLM calls the
retrieve_knowledgetool with a search query - The tool performs hybrid search (text + semantic) on the knowledge base
- Results are ranked using Reciprocal Rank Fusion
- Relevant documents are returned to the LLM as context
- The LLM generates a response based on the retrieved content
Key Features
Hybrid Search
Combines text search (BM25) and semantic search (vector embeddings) for comprehensive retrieval:
- Text search excels at finding exact matches and specific terminology
- Semantic search finds conceptually similar content even with different wording
Context-Aware Retrieval
The tool automatically:
- Limits results to fit within the model's context window
- Deduplicates overlapping content
- Preserves document metadata (title, source URL) for citations
Web Crawling
The built-in web crawler:
- Extracts content from configured URLs
- Processes linked pages (configurable depth)
- Handles PDF files and other document types
- Tracks crawl status and notifies on completion
Use Cases
Customer Support
Connect support Assistants to your help center articles:
- Agents get accurate answers from official documentation
- Responses include links to source articles
- Knowledge stays current with automatic re-crawling
Internal Knowledge Base
Ground Assistants in internal policies and procedures:
- HR policy lookups
- Technical documentation
- Standard operating procedures
Product Information
Connect sales or support Assistants to product documentation:
- Feature explanations
- Pricing information
- Troubleshooting guides
Prerequisites
Before setting up Knowledge Assist:
- Account Configuration: Knowledge Assist must be enabled for your account (
deploy_knowledge_assistflag) - Content Sources: Have URLs or files ready to add to the knowledge base
- Assistant Configuration: Create or identify the Assistant to connect
Next Steps
- User Guide: Step-by-step configuration instructions
- Developer Guide: Technical implementation details and API reference