sqlitevec

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: Apache-2.0 Imports: 6 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
}

Index implements index.Indexer using SQLite and sqlite-vec.

func New

func New(dbPath string, dimensions int) (*Index, error)

New creates or opens a SQLite database and initializes the vector table.

func (*Index) Close

func (idx *Index) Close() error

func (*Index) DeleteVector

func (idx *Index) DeleteVector(id string) error

func (*Index) InsertVector

func (idx *Index) InsertVector(id string, vector []float32) error

func (*Index) ListIDs

func (idx *Index) ListIDs() (ids []string, err error)

func (*Index) LookupVector

func (idx *Index) LookupVector(id string) ([]float32, bool)

func (*Index) Search

func (idx *Index) Search(target []float32, k int) (results []index.SearchResult, err error)

Jump to

Keyboard shortcuts

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