search
Retrieve relevant knowledge from your file-based knowledge base using ranked hybrid keyword and semantic matching. Get contextual snippets and know instantly when information is missing.
Instructions
Recall relevant knowledge by ranked keyword and semantic (hybrid) relevance. Returns ranked results with heading, snippet, matched terms, level, parent, and sectionType. Sections from the same document receive a sibling score boost when multiple sections match. Use multiple short keyword queries for best coverage. Use recall for full content. A retrieval_verdict of "unanswered" means kbdb does not have it: investigate, do not guess.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algo | No | Search algorithm (default: lexical) | |
| mode | No | Result granularity. Default "all" returns documents and sections together (documents boosted); "sections"/"documents" narrow to one kind; "stats" returns aggregates. | |
| docid | No | Filter results to a single document (its kbid). Composes with mode. | |
| limit | No | Maximum results (default: 20) | |
| query | Yes | Search query text | |
| offset | No | Number of results to skip for pagination (default: 0) | |
| relaxed | No | Use relaxed (OR) matching when the strict query returns no results | |
| sectionType | No | Partition to scope the operation to: default | skill | agent |