Versions in this module Expand all Collapse all v2 v2.0.0 Mar 18, 2026 Changes in this version + const GroupLockShards + const ResultL1Hit + const ResultL2Hit + const ResultL3Hit + const ResultMatch + const ResultNew + var AttrGroup = attribute.Key("group") + var AttrResult = attribute.Key("result") + var ErrInvalidConfig = errors.New("invalid LSH config") + var ErrSignatureTooShort = errors.New("signature too short") + func ComputeBands(signature []uint64, bands, rows int) ([]string, error) + func GroupShard(group string) uint32 + func HashVersion(group string, configFields ...any) (string, error) + func NewSignaturePool(sigSize int) *sync.Pool + func PrefixKeys(prefix string, keys []string) []string + type Config struct + Bands int + MaxBucketSize int + MaxTotalCandidates int + ResolvedCacheSize int + Rows int + Seed int64 + func (c *Config) SignatureSize() int + type Instruments struct + BucketRepsReturned metric.Int64Histogram + CandidateCount metric.Int64Histogram + ExactCompareCount metric.Int64Histogram + NewIDTotal metric.Int64Counter + UpsertDuration metric.Float64Histogram + UpsertTotal metric.Int64Counter + func NewInstruments(m metric.Meter, prefix string) (*Instruments, error) Other modules containing this package github.com/FrogoAI/lsh