Query & retrieval runtime
How one query runtime fuses graph traversal, vector ANN, and full-text search — the .gq surface, the search functions, RRF fusion, embeddings, and the executor underneath.
Functions
| Function | Purpose | Backing index |
|---|---|---|
nearest($x.vec, $q) |
k-NN vector search (cosine) | vector index (IVF / HNSW) |
search(field, q) |
Generic full-text search | inverted (FTS) index |
fuzzy(field, q [, max_edits]) |
Levenshtein-tolerant text search | inverted index |
match_text(field, q) |
Pattern match | inverted index |
bm25(field, q) |
BM25 relevance scoring | inverted index |
rrf(rank_a, rank_b [, k]) |
Reciprocal Rank Fusion of two rankings (default k=60) |
fuses scored rankings |
nearest()requires alimit. The query vector is resolved from the param map, or embedded from a text input at runtime via the configured embedding client.- Scores and ranks propagate as ordinary columns, so you can
returna score andorderby it.