Versions in this module Expand all Collapse all v0 v0.3.0 Aug 24, 2026 Changes in this version + var ErrDimensionMismatch = errors.New("sqlite: embedding length does not match configured dimension") + var ErrDimensionRequired = errors.New("sqlite: embedding dimension is required (WithEmbeddingDimension)") + var ErrNotFound = errors.New("sqlite: not found") + type DistanceMetric string + const DistanceCosine + const DistanceL2 + type Option func(*options) + func WithDistanceMetric(m DistanceMetric) Option + func WithEmbeddingDimension(n int) Option + type Store struct + func Open(dbPath string, opts ...Option) (*Store, error) + func (s *Store) Close() error + func (s *Store) GetLinkedSignals(ctx context.Context, rootCauseID string) ([]string, error) + func (s *Store) GetRootCause(ctx context.Context, id string) (rootcause.RootCause, error) + func (s *Store) GetSignal(ctx context.Context, id string) (signal.Signal, error) + func (s *Store) LinkSignal(ctx context.Context, signalID, rootCauseID string) error + func (s *Store) ListRootCauses(ctx context.Context, filter consolidate.RootCauseFilter) ([]rootcause.RootCause, error) + func (s *Store) NearestRootCauses(ctx context.Context, embedding []float32, topK int) ([]rootcause.RootCause, error) + func (s *Store) SaveRootCause(ctx context.Context, rc rootcause.RootCause) error + func (s *Store) SaveSignal(ctx context.Context, sig signal.Signal) error