store

package
v0.0.0-...-e686d8b Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocStoreInterface

type DocStoreInterface interface {
	CreateDocument(ctx context.Context, doc *doc.Document) error
	UpdateTokens(ctx context.Context, doc *doc.Document) error
	UpdateDocument(ctx context.Context, doc *doc.Document) error
	GetDocument(ctx context.Context, entryId int64) (*doc.Document, error)
	FilterDocuments(ctx context.Context, filter *doc.DocumentFilter) ([]*doc.Document, error)
	DeleteDocument(ctx context.Context, docId int64) error
}

type VectorStore

type VectorStore interface {
	Store(ctx context.Context, element *vector.Element, extra map[string]any) error
	Search(ctx context.Context, query vector.VectorDocQuery, vectors []float32, k int) ([]*vector.Doc, error)
	Get(ctx context.Context, oid int64, name string, group int) (*vector.Element, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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