Help us shape the future of Go! Take the 2026 Go Developer Survey

embedstore

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbedStore

type EmbedStore struct {
	types.UnimplementedTGenerator
}

func NewEmbedStore

func NewEmbedStore() (*EmbedStore, error)

func (*EmbedStore) AddEmbeddingDocument

func (idx *EmbedStore) AddEmbeddingDocument(ctx context.Context, docID string, embedding [1536]float32, metadata types.Metadata) error

func (*EmbedStore) AddEmbeddingDocuments

func (idx *EmbedStore) AddEmbeddingDocuments(ctx context.Context, vectors []types.Vector) (int, error)

func (*EmbedStore) DeleteEmbeddingDocument

func (idx *EmbedStore) DeleteEmbeddingDocument(ctx context.Context, docID string) error

func (*EmbedStore) DeleteEmbeddingDocuments

func (idx *EmbedStore) DeleteEmbeddingDocuments(ctx context.Context, docIDs []string) error

func (*EmbedStore) GetEmbeddingDocument

func (idx *EmbedStore) GetEmbeddingDocument(ctx context.Context, docID string) (types.Vector, bool, error)

func (*EmbedStore) ListAllEmbeddingsIds

func (idx *EmbedStore) ListAllEmbeddingsIds(ctx context.Context) (types.SearchResults, error)

func (*EmbedStore) SearchWithEmbedding

func (idx *EmbedStore) SearchWithEmbedding(ctx context.Context, embedding types.QueryFilter, k int) (types.SearchResults, error)

Jump to

Keyboard shortcuts

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