service

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(vectorStore core.VectorStore, embedder core.Embedder, opts ...Option) core.Retriever

New creates a new retriever.

Types

type Option

type Option func(*retriever)

Option configures a retriever instance.

func WithCollector

func WithCollector(c observability.Collector) Option

WithCollector sets an observability collector.

func WithLogger

func WithLogger(l logging.Logger) Option

WithLogger sets a structured logger.

func WithTopK

func WithTopK(k int) Option

WithTopK sets the default top-K.

Jump to

Keyboard shortcuts

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