Skip to main content

Module retrieval

Module retrieval 

Source
Expand description

Retrieval operations: local embedding generation and hybrid search with RRF fusion.

Structs§

DocumentEmbeddingOutcome
What the embedding service actually received for one document.
EmbeddingTruncationReport
Aggregate truncation accounting for one logical write or reindex batch.
SearchHit
A unified search result combining vector and text signals.

Enums§

SearchSource
Which retrieval path(s) contributed to a hit.

Constants§

EMBEDDING_INPUT_TRUNCATED_WARNING
Advisory emitted by write verbs when only the embedding input was bounded.

Functions§

bounded_embedding_input
Return the longest UTF-8-safe prefix of text within max_bytes and whether it was shortened.
document_embedding_budget
Maximum document bytes accepted before the embedding service adds its model prefix.