Structs§
Functions§
- bytes_
to_ embedding - Convert bytes back to f32 embedding
- chunk_
text - Chunk text into segments of approximately
max_tokenstokens withoverlaptoken overlap. - cosine_
similarity - Cosine similarity between two embeddings
- embedding_
to_ bytes - Convert f32 embedding to bytes for storage