Skip to main content

embedding

Vector embedding providers for converting text into high-dimensional vectors. Supports multiple backends with configurable dimensions, batch sizes, and timeouts. Used by the memory system for semantic search.

Used by cmd/worker.

Usage

import "cruvero/internal/embedding"

Key Types / Interfaces

TypeSourceDescription
Embedderembedder.goInterface: Embed, EmbedBatch, Dimensions, Model, Provider
EmbeddingResultembedder.goSingle embedding result with vector, model, and token count
BatchResultembedder.goBatch embedding result with multiple vectors
Configconfig.goEmbedder configuration (provider, model, dimensions, batch size, timeout)
NoopEmbeddernoop.goNo-op implementation for testing (returns zero vectors)