embeddings

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package embeddings provides the interface for text embedding models.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Embedder

type Embedder interface {
	// EmbedDocuments embeds multiple texts.
	EmbedDocuments(ctx context.Context, texts []string) ([][]float64, error)

	// EmbedQuery embeds a single query text.
	// Some models distinguish between document and query embeddings.
	EmbedQuery(ctx context.Context, text string) ([]float64, error)
}

Embedder is the interface for text embedding models. Embeddings convert text into dense vector representations for similarity search, clustering, and retrieval.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL