embedder

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package embedder constructs core.Embedder implementations from configuration.

Embeddings are produced by omnillm-core's embedding providers; this package adapts an omnillm-core EmbeddingProvider to omnimemory's core.Embedder interface. Any provider omnillm-core registers (openai today, more over time) is selectable via core.EmbedderConfig.Provider, so omnimemory does not maintain its own per-vendor embedding integrations.

Index

Constants

View Source
const DefaultModel = "text-embedding-3-small"

DefaultModel is used when core.EmbedderConfig.Model is empty.

Variables

This section is empty.

Functions

func NewFromConfig

func NewFromConfig(cfg core.EmbedderConfig) (core.Embedder, error)

NewFromConfig constructs a core.Embedder backed by an omnillm-core embedding provider selected by cfg.Provider (e.g. "openai"). cfg.Endpoint overrides the provider base URL when set, and cfg.Dimension, when > 0, requests a specific output dimension (only supported by some models).

Types

This section is empty.

Jump to

Keyboard shortcuts

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