embedder

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = internalembedder.Config

func FromEnv added in v1.1.0

func FromEnv() *Config

FromEnv reads embedding configuration from RAG_EMBEDDING_URL / RAG_EMBEDDING_MODEL / RAG_EMBEDDING_API_KEY / RAG_EMBEDDING_PROVIDER.

type Embedder

type Embedder = internalembedder.Embedder

func New

func New(cfg *Config) *Embedder

func NewFromEnv added in v1.1.0

func NewFromEnv() *Embedder

NewFromEnv creates an Embedder from environment variables (see FromEnv). Returns nil if the required variables aren't set - check with Config.IsConfigured() before calling if you need to distinguish "not configured" from a construction failure.

type Provider

type Provider = internalembedder.Provider

func DetectProviderPublic

func DetectProviderPublic(baseURL string) Provider

Jump to

Keyboard shortcuts

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