What it does
The Search Knowledge Base tool allows agents to search through your organization’s knowledge bases to find relevant information. It uses AI-powered semantic search combined with traditional text search for comprehensive results.For complete information about Knowledge Bases, including setup, file upload, and management, see Knowledge Bases.
Key features
- Semantic Search: AI understands context and meaning, not just keywords
- Hybrid Results: Combines vector similarity with traditional text search
- File Filtering: Include or exclude specific documents from search
- Ranked Results: Results ordered by relevance with similarity scores
- Multi-Format Support: Search across PDFs, Word docs, spreadsheets, and text files
- High Performance: Executes in JavaScript with direct database access for optimal speed
Parameters
Common use cases
Find policy information
Research financial data
Search specific documents
Exclude outdated content
Technical documentation lookup
Best practices
- Use specific, descriptive queries for better results
- Start with broader searches, then use file filtering to narrow down
- Monitor similarity scores to gauge result quality
- Organize knowledge bases by topic for more focused searches
- Regularly update knowledge bases by removing outdated documents
Troubleshooting
“No results found”- Try broader or alternative search terms
- Check that the knowledge base contains relevant documents
- Verify the knowledge base ID is correct
- Confirm the knowledge base ID exists in your organization
- Check that you have access to the specified knowledge base
- Ensure the knowledge base has been successfully created
- Try rephrasing your query with different keywords
- Use more specific terms related to your content
- Check that your documents contain the information you’re searching for
- Verify that the file IDs exist in the knowledge base
- Check that include/exclude file ID arrays are properly formatted
- Ensure files haven’t been deleted from the knowledge base
Companion tools
Search returns matching passages, not whole documents — so enabling it automatically enables two readers alongside it:- Read File — opens a full KB document with
kb:<file-id>once search surfaces a hit list_kb_files— lists what’s in a knowledge base without spinning up a sandbox
search_knowledge_base is
enabled, and the same happens for list_kb_files when write_to_knowledge_base is enabled.
read_kb_file was the previous reader. It still works for agents that already have it, but
it’s no longer offered in the tool picker or auto-attached — Read File replaces it.Related tools
- Call API - Fetch external data to supplement knowledge base searches
- Run Code - Process and analyze search results
- Send Email - Share search results with team members