Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PluginFlags ¶
PluginFlags returns CLI flags contributed by all registered embedder plugins.
Types ¶
type Embedder ¶
type Embedder interface {
// EmbedTexts returns a vector embedding for each input text, in the same order.
EmbedTexts(ctx context.Context, texts []string) ([][]float32, error)
// ModelName returns the model identifier used for embedding.
ModelName() string
// Dimension returns the dimensionality of the embeddings.
Dimension() int
}
Embedder produces vector embeddings from text.
Click to show internal directories.
Click to hide internal directories.