store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgvectorStore

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

func NewPgvector

func NewPgvector(ctx context.Context, dsn, table string, dims int) (*PgvectorStore, error)

func (*PgvectorStore) Close

func (s *PgvectorStore) Close() error

func (*PgvectorStore) Delete

func (s *PgvectorStore) Delete(ctx context.Context, id string) error

func (*PgvectorStore) Get

func (s *PgvectorStore) Get(ctx context.Context, id string) (*memory.Memory, error)

func (*PgvectorStore) GetByHash

func (s *PgvectorStore) GetByHash(ctx context.Context, contentHash string, filter *memory.SearchFilter) (*memory.Memory, error)

func (*PgvectorStore) Insert

func (s *PgvectorStore) Insert(ctx context.Context, mem *memory.Memory) error

func (*PgvectorStore) List

func (s *PgvectorStore) List(ctx context.Context, filter *memory.SearchFilter, limit, offset int) ([]*memory.Memory, int, error)

func (*PgvectorStore) Search

func (s *PgvectorStore) Search(ctx context.Context, vector []float32, k int, filter *memory.SearchFilter) ([]memory.SearchResult, error)

func (*PgvectorStore) Stats

func (s *PgvectorStore) Stats(ctx context.Context, filter *memory.SearchFilter) (*memory.Stats, error)

func (*PgvectorStore) Update

func (s *PgvectorStore) Update(ctx context.Context, mem *memory.Memory) error

Jump to

Keyboard shortcuts

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