chromem

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotADirectory = errors.New("db folder is not a directory")
)

Functions

func New

Types

type Option

type Option func(*storageOptions)

func WithCollection

func WithCollection(collName string) Option

func WithDBPath

func WithDBPath(dbPath string) Option

func WithLogger

func WithLogger(logger *slog.Logger) Option

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func (*Storage) AddDocuments

func (s *Storage) AddDocuments(ctx context.Context, docs []schema.Document, options ...vectorstores.Option) ([]string, error)

func (*Storage) SimilaritySearch

func (s *Storage) SimilaritySearch(ctx context.Context, query string, numDocuments int, options ...vectorstores.Option) ([]schema.Document, error)

Jump to

Keyboard shortcuts

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