vector

package
v0.0.0-...-c4bc94e Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB exposes an API to index/find notes using SQLite vector search.

func New

func New(ctx context.Context, path string) (*DB, error)

New returns an initialized db.

func (*DB) Close

func (d *DB) Close() error

Close frees resources used by the database.

func (*DB) Find

func (d *DB) Find(ctx context.Context, n *note.Note) ([]*note.Note, error)

Find some similar notes to the one provided.

func (*DB) Upsert

func (d *DB) Upsert(ctx context.Context, n *note.Note) error

Upsert adds the given note to the database (or updates it).

Jump to

Keyboard shortcuts

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