vectorstore

package
v0.0.0-...-aa8845d Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VectorStore

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

func (*VectorStore) Delete

func (v *VectorStore) Delete(ctx context.Context, vendor string, sourceIDs ...string) error

func (*VectorStore) Init

func (v *VectorStore) Init(ctx appx.Context) error

func (*VectorStore) Query

func (v *VectorStore) Query(ctx context.Context, vendor string, vector []float64, topK int, minScore float64) (similarities []*api.Similarity, err error)

func (*VectorStore) Router

func (v *VectorStore) Router() chi.Router

func (*VectorStore) Upsert

func (v *VectorStore) Upsert(ctx context.Context, vendor string, documents []*api.Document) error

Directories

Path Synopsis
controller

Jump to

Keyboard shortcuts

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