Module embedding

Module embedding 

Source
Expand description

Embedding generation with local and OpenAI support

By default, uses local embeddings (all-MiniLM-L6-v2 via ONNX) for self-sufficiency. OpenAI embeddings are optional and can be enabled via OPENAI_API_KEY.

Enums§

EmbeddingProvider
Embedding provider type

Functions§

embed_batch
Embed multiple text strings
embed_text
Embed a single text string
embedding_dimension
Get the embedding dimension (based on current provider)
embedding_model
Get the embedding model name (based on current provider)