postgres

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTableName = "agentflow_knowledge_embeddings"

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Store) error

func WithTableName

func WithTableName(name string) Option

type Store

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

func NewStore

func NewStore(db *sql.DB, opts ...Option) (*Store, error)

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, req knowledge.DeleteRequest) error

func (*Store) HybridQuery added in v0.1.5

func (s *Store) HybridQuery(ctx context.Context, query knowledge.Query) ([]knowledge.SearchResult, error)

HybridQuery combines vector and full-text search with reciprocal rank fusion.

func (*Store) Query

func (s *Store) Query(ctx context.Context, query knowledge.Query) ([]knowledge.SearchResult, error)

func (*Store) Upsert

func (s *Store) Upsert(ctx context.Context, documents []knowledge.DocumentEmbedding) error

Jump to

Keyboard shortcuts

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