sqlitevec

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpsertEmbeddingSQL = `` /* 227-byte string literal not displayed */

	DeleteEmbeddingSQL = `
DELETE FROM memory_embeddings
WHERE tenant_id = ? AND memory_id = ?
`

	ListEmbeddingsByTenantSQL = `
SELECT memory_id, embedding_json
FROM memory_embeddings
WHERE tenant_id = ?
`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(db *sql.DB) *Store

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, tenantID, memoryID string) error

func (*Store) Search

func (s *Store) Search(ctx context.Context, tenantID string, embedding []float32, topK int) ([]domain.VectorstoreCandidate, error)

func (*Store) Upsert

func (s *Store) Upsert(ctx context.Context, tenantID, memoryID string, embedding []float32) error

func (*Store) UpsertBatch

func (s *Store) UpsertBatch(ctx context.Context, upserts []domain.VectorUpsert) error

Jump to

Keyboard shortcuts

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