Search API
Search across all indexed sources with hybrid retrieval.Search
Search query
Comma-separated source IDs to filter (optional)
Maximum total tokens in results (default: 4000, max: 32000)
Maximum number of results (default: 10, max: 50)
Include stale results with warning (default: true)
Response Fields
SearchResult
| Field | Type | Description |
|---|---|---|
content | string | Chunk content |
score | float | Relevance score (0-1+) |
token_count | integer | Tokens in this result |
citation | Citation | Provenance information |
freshness_days | float | Days since source sync |
is_stale | boolean | Whether source is stale |
Citation
| Field | Type | Description |
|---|---|---|
chunk_id | string | Unique chunk ID |
source_id | string | Source ID |
source_name | string | Source name |
path | string | File path or URL |
symbol | string | Function/class/operation name |
start_line | integer | Start line (code only) |
end_line | integer | End line (code only) |
version_ref | string | Commit SHA or version |
language | string | Language/format |
chunk_type | string | code, docs, openapi |
EvidenceQuality
| Field | Type | Description |
|---|---|---|
score | float | Quality score (0-1) |
evidence_count | integer | Number of results |
avg_freshness_days | float | Average age |
has_conflicts | boolean | Conflicts detected |
confidence | string | high, medium, low, insufficient |
Conflict
| Field | Type | Description |
|---|---|---|
endpoint_key | string | Conflicting endpoint |
sources | string[] | Sources involved |
schema_hashes | string[] | Different schema hashes |
description | string | Human-readable description |