Versions in this module Expand all Collapse all v0 v0.2.19 Jul 5, 2026 Changes in this version + func Register(name string, c Constructor) + type Config struct + DBPath string + type Constructor func(Config) (Store, error) type Store + func Open(name string, cfg Config) (Store, error) + Shared func() bool v0.2.17 Jun 27, 2026 v0.2.16 Jun 27, 2026 Changes in this version type Store + DropCollection func(ctx context.Context, tenant, name string) (int, error) + ListCollections func(ctx context.Context, tenant string) ([]Collection, error) + ListIDs func(ctx context.Context, tenant, collection string) ([]string, error) v0.2.15 Jun 26, 2026 Changes in this version + type CodedError interface + Code func() string + type Collection struct + Dimensions int + EmbeddingModel string + Metric Metric + Name string + type CollectionConflictError struct + Collection string + Existing string + Field string + Requested string + func (e *CollectionConflictError) Code() string + func (e *CollectionConflictError) Error() string + type CollectionNotFoundError struct + Collection string + Tenant string + func (e *CollectionNotFoundError) Code() string + func (e *CollectionNotFoundError) Error() string + type Condition struct + Field string + Op Op + Value any + type DimensionMismatchError struct + Collection string + Got int + Want int + func (e *DimensionMismatchError) Code() string + func (e *DimensionMismatchError) Error() string + type Filter struct + Conditions []Condition + type InvalidArgError struct + Reason string + func (e *InvalidArgError) Code() string + func (e *InvalidArgError) Error() string + type Item struct + ID string + Metadata map[string]any + Text string + Vector []float32 + type Match struct + Distance float64 + ID string + Metadata map[string]any + Score float64 + Text string + type Metric string + const MetricCosine + type Op string + const OpEq + const OpGt + const OpGte + const OpIn + const OpLt + const OpLte + const OpNotIn + type Store interface + Close func() error + Delete func(ctx context.Context, tenant, collection string, ids []string) (int, error) + DescribeCollection func(ctx context.Context, tenant, name string) (c Collection, found bool, err error) + EnsureCollection func(ctx context.Context, tenant string, c Collection) error + Search func(ctx context.Context, tenant, collection string, query []float32, limit int, ...) ([]Match, error) + Upsert func(ctx context.Context, tenant, collection string, items []Item) (int, error)