providers

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbeddingProvider

type EmbeddingProvider interface {
	Embed(ctx context.Context, texts []string) ([][]float32, error)
	Dimension() int
	ModelName() string
}

EmbeddingProvider generates vector embeddings for text.

func NewEmbedding

NewEmbedding creates an EmbeddingProvider for an OpenAI-compatible /v1/embeddings endpoint.

type RerankProvider added in v0.2.0

type RerankProvider interface {
	Rerank(ctx context.Context, query string, passages []string) ([]float64, error)
	ModelName() string
}

RerankProvider scores candidate passages for relevance to a query.

func NewRerank added in v0.2.0

NewRerank creates a RerankProvider for a rerank API endpoint.

Jump to

Keyboard shortcuts

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