search_documents
Search for documents across a knowledge base using keywords or phrases. Perform full-text searches to locate information, filter results by collection, and retrieve relevant content snippets for quick reference.
Instructions
Searches for documents using keywords or phrases across your knowledge
base.
IMPORTANT: The search performs full-text search across all document
content and titles. Results are ranked by relevance, with exact
matches
and title matches typically ranked higher. The search will return
snippets of content (context) where the search terms appear in the
document. You can limit the search to a specific collection by
providing
the collection_id.
Use this tool when you need to:
- Find documents containing specific terms or topics
- Locate information across multiple documents
- Search within a specific collection using collection_id
- Discover content based on keywords
Args:
query: Search terms (e.g., "vacation policy" or "project plan")
collection_id: Optional collection to limit the search to
Returns:
Formatted string containing search results with document titles
and
contexts
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection_id | No | ||
query | Yes |
Input Schema (JSON Schema)
{
"properties": {
"collection_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Collection Id"
},
"query": {
"title": "Query",
"type": "string"
}
},
"required": [
"query"
],
"title": "search_documentsArguments",
"type": "object"
}