Skip to main content

Module embedding_index

Module embedding_index 

Source
Expand description

Embedding index: mmap-backed pre-computed embedding vectors.

Format: [u32 block_count][u32 dim][u32 max_depth][f32 × dim × embedded_count] Only blocks at depth 0..max_depth are embedded.

Structs§

EmbeddingIndex
Mmap-backed embedding index for fast semantic lookup.

Functions§

build_embedding_index
Build embedding index file from a provider and reader. Only embeds blocks at depth 0..=max_depth.