sqlitevec

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 vec1 extension.

func New

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

New creates or opens a SQLite database and initializes the vec1 tables.

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