simplevectorindex

package
v0.0.10-beta1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

func New

func New(name string, outputPath string, embedder index.Embedder) *Index

func (*Index) IsEmpty

func (s *Index) IsEmpty() (bool, error)

func (*Index) LoadFromDocuments

func (s *Index) LoadFromDocuments(ctx context.Context, documents []document.Document) error

func (*Index) SimilaritySearch

func (s *Index) SimilaritySearch(ctx context.Context, query string, opts ...option.Option) (index.SearchResponses, error)

type SimpleVectorIndexFilterFn

type SimpleVectorIndexFilterFn func([]index.SearchResponse) []index.SearchResponse

Jump to

Keyboard shortcuts

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