Versions in this module Expand all Collapse all v0 v0.1.2 May 30, 2023 Changes in this version + type Match struct + Doc []byte + Score float32 + type Upsert struct + Doc []byte + type Vector struct + ID string + MD5 []byte + Meta map[string]string + Values []float32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Vector) Descriptor() ([]byte, []int) + func (*Vector) ProtoMessage() + func (m *Vector) GetID() string + func (m *Vector) GetMD5() []byte + func (m *Vector) GetMeta() map[string]string + func (m *Vector) GetValues() []float32 + func (m *Vector) Reset() + func (m *Vector) String() string + func (m *Vector) XXX_DiscardUnknown() + func (m *Vector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Vector) XXX_Merge(src proto.Message) + func (m *Vector) XXX_Size() int + func (m *Vector) XXX_Unmarshal(b []byte) error + type VectorDB interface + Delete func(ctx context.Context, repo string, id ...string) error + DeleteRepo func(ctx context.Context, repos string) error + ListRepos func(ctx context.Context) ([]string, error) + Range func(ctx context.Context, repo string, f func(*Vector)) error + Search func(ctx context.Context, repo string, v []float32, topK int) ([]*Match, error) + Upsert func(ctx context.Context, repo string, v *Upsert) error