Skip to main contentModule vector
Source - EmbeddingCodec
- Codec for converting between
Vec<f32> and libSQL F32_BLOB byte vectors with dimension validation (§4.1). - HybridHit
- One fused result, with the evidence for its position.
- HybridSearch
- A hybrid search over one model’s vectors and the concept-text index (§5.9).
- ModelName
- A validated embedding-model name, and therefore a safe SQL identifier.
- VectorSearchResult
- Search result container for vector similarity or hybrid search (§5.9).
- RRF_K
- The
k in 1/(k + rank), from the paper and from §5.9.
- declared_dimension
- The dimension a registered model’s table declares, read from the schema.
- escape_fts5_query
- Turn arbitrary user text into an FTS5 MATCH expression that cannot be a
syntax error and cannot mean something the user did not write.
- keyword_search
- Keyword search over concept text, best match first (§5.9).
- reciprocal_rank_fusion
- Compute Reciprocal Rank Fusion (RRF) score fusion algorithm: RRF(d) = \sum \frac{1}{k + r(d)} with k=60 (§5.9).
- registered_models
- Every model registered in this database, in name order.
- search_vector
- Top-k nearest visible neighbours for
query_vec under model (§5.9).