Expand description
Embedding provider trait and cosine similarity for semantic memory recall.
Traits§
- Embedding
Provider - Provider for text embeddings.
Functions§
- bytes_
to_ embedding - Decode little-endian bytes back into a
Vec<f32>. - cosine_
similarity - Compute cosine similarity between two vectors.
- embedding_
to_ bytes - Encode a
Vec<f32>as little-endian bytes (for SQLite BLOB storage).