adapter

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LangchainEmbedderAdapter

type LangchainEmbedderAdapter struct {
	Inner baseemb.Embedder
}

LangchainEmbedderAdapter adapts our base embedder to the older langchaingo-compatible method set expected by Embedius indexer. It intentionally does not import the langchaingo package; Go's structural typing ensures compatibility at the call site.

func (LangchainEmbedderAdapter) EmbedDocuments

func (a LangchainEmbedderAdapter) EmbedDocuments(ctx context.Context, texts []string) ([][]float32, error)

EmbedDocuments embeds multiple texts; returns only vectors.

func (LangchainEmbedderAdapter) EmbedQuery

func (a LangchainEmbedderAdapter) EmbedQuery(ctx context.Context, text string) ([]float32, error)

EmbedQuery embeds a single query string; returns a single vector.

Jump to

Keyboard shortcuts

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