Skip to main content

Module types

Module types 

Source
Expand description

Embedding types and trait definitions.

Structs§

EmbeddingResult
A single embedding result.

Traits§

EmbeddingProvider
Trait for embedding providers.

Functions§

chunk_batch
Split a batch of texts into chunks of at most max_batch_size.
cosine_similarity
Compute cosine similarity between two f32 vectors.
normalize
Normalize a vector in-place to unit length (L2 norm).