Module vectors

Module vectors 

Source
Expand description

Vector storage operations

Stores embeddings as BLOBs and computes cosine similarity in Rust.

Enums§

CacheLookupResult
Result of looking up a cached embedding

Functions§

bytes_to_embedding
Convert bytes to f32 embedding
cosine_similarity
Compute cosine similarity between two embeddings
embedding_to_bytes
Convert f32 embedding to bytes (little-endian)