Documentation
¶
Index ¶
- func New() vdb.VDB
- type VDB
- func (m *VDB) Close() error
- func (m *VDB) Delete(_ context.Context, id string) error
- func (m *VDB) Search(_ context.Context, vector []float64, options ...vdb.SearchOption) ([]vdb.Document, error)
- func (m *VDB) SearchQuery(_ context.Context, query string, options ...vdb.SearchOption) ([]vdb.Document, error)
- func (m *VDB) Store(_ context.Context, id string, vector []float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VDB ¶
type VDB struct {
// contains filtered or unexported fields
}
VDB 实现基于内存的向量存储
func (*VDB) Search ¶
func (m *VDB) Search(_ context.Context, vector []float64, options ...vdb.SearchOption) ([]vdb.Document, error)
Search 搜索最相似的向量
Click to show internal directories.
Click to hide internal directories.