Documentation
¶
Index ¶
- type PgvectorStore
- func (s *PgvectorStore) Close() error
- func (s *PgvectorStore) Delete(ctx context.Context, id string) error
- func (s *PgvectorStore) Get(ctx context.Context, id string) (*memory.Memory, error)
- func (s *PgvectorStore) GetByHash(ctx context.Context, contentHash string, filter *memory.SearchFilter) (*memory.Memory, error)
- func (s *PgvectorStore) Insert(ctx context.Context, mem *memory.Memory) error
- func (s *PgvectorStore) List(ctx context.Context, filter *memory.SearchFilter, limit, offset int) ([]*memory.Memory, int, error)
- func (s *PgvectorStore) Search(ctx context.Context, vector []float32, k int, filter *memory.SearchFilter) ([]memory.SearchResult, error)
- func (s *PgvectorStore) Stats(ctx context.Context, filter *memory.SearchFilter) (*memory.Stats, error)
- func (s *PgvectorStore) Update(ctx context.Context, mem *memory.Memory) error
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 (*PgvectorStore) Close ¶
func (s *PgvectorStore) Close() error
func (*PgvectorStore) GetByHash ¶
func (s *PgvectorStore) GetByHash(ctx context.Context, contentHash string, filter *memory.SearchFilter) (*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)
Click to show internal directories.
Click to hide internal directories.