Search
Once documents are ingested, you can search them via the Web UI or MCP tools.
Web UI search
Open http://127.0.0.1:3235/ui/search and use the search bar. The Web UI supports:
- Document search and code search with separate tabs
- Real-time search with debounced queries
- Collection and source filters
- Expanded chunk view (click any result to see the full passage)
- Copy-to-clipboard for source paths
MCP search
Use the search_documents and search_code MCP tools from any connected client:
// Search documents
{
"tool": "search_documents",
"input": {
"query": "HIPAA data handling procedures",
"limit": 5
}
}
// Search code
{
"tool": "search_code",
"input": {
"query": "authentication middleware",
"limit": 5
}
}
Result format
Each result includes:
- Rank and similarity score (cosine similarity, 0–100%)
- Source path and page/line number
- Matched text chunk
Search parameters
| Parameter | Default | Description |
|---|---|---|
| query | (required) | The search query in natural language |
| limit | 10 | Number of results to return (max 50) |
| threshold | 0.6 | Minimum similarity score (0–1) |