Documentation
¶
Index ¶
- Constants
- Variables
- type Option
- type ReindexRequiredError
- type Store
- func (s *Store) Delete(ctx context.Context, req knowledge.DeleteRequest) error
- func (s *Store) HybridQuery(ctx context.Context, query knowledge.Query) ([]knowledge.SearchResult, error)
- func (s *Store) Query(ctx context.Context, query knowledge.Query) ([]knowledge.SearchResult, error)
- func (s *Store) Upsert(ctx context.Context, documents []knowledge.DocumentEmbedding) error
Constants ¶
View Source
const DefaultTableName = "agentflow_knowledge_embeddings"
Variables ¶
View Source
var ErrDimensionMismatch = errors.New("postgres vector store: embedding dimension mismatch")
ErrDimensionMismatch is returned when an upsert vector length does not match the store's configured expected dimension.
Functions ¶
This section is empty.
Types ¶
type Option ¶
func WithExpectedDimension ¶ added in v0.3.0
WithExpectedDimension configures Upsert to reject vectors whose length does not match n. A non-positive n disables validation.
func WithTableName ¶
type ReindexRequiredError ¶ added in v0.3.0
ReindexRequiredError indicates stored/incoming embeddings use a different dimension than the store expects and the collection must be reindexed.
func (*ReindexRequiredError) Error ¶ added in v0.3.0
func (e *ReindexRequiredError) Error() string
func (*ReindexRequiredError) Is ¶ added in v0.3.0
func (e *ReindexRequiredError) Is(target error) bool
func (*ReindexRequiredError) Unwrap ¶ added in v0.3.0
func (e *ReindexRequiredError) Unwrap() error
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
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.
Click to show internal directories.
Click to hide internal directories.