Documentation
¶
Index ¶
- func Register(prefixes []string, creator Creator)
- type Creator
- type Database
- type Distance
- type Milvus
- func (db *Milvus) AddCollection(ctx context.Context, name string, dimensions int, distance Distance) error
- func (db *Milvus) AddVectors(ctx context.Context, collection string, vectors []Vector) error
- func (db *Milvus) Close() error
- func (db *Milvus) DeleteCollection(ctx context.Context, name string) error
- func (db *Milvus) DeleteVectors(ctx context.Context, collection string, timestamp time.Time) error
- func (db *Milvus) Init() error
- func (db *Milvus) ListCollections(ctx context.Context) ([]string, error)
- func (db *Milvus) Optimize() error
- func (db *Milvus) QueryVectors(ctx context.Context, collection string, q []float32, categories []string, ...) ([]Vector, error)
- type ProxyClient
- func (p ProxyClient) AddCollection(ctx context.Context, name string, dimensions int, distance Distance) error
- func (p ProxyClient) AddVectors(ctx context.Context, collection string, vectors []Vector) error
- func (p ProxyClient) Close() error
- func (p ProxyClient) DeleteCollection(ctx context.Context, name string) error
- func (p ProxyClient) DeleteVectors(ctx context.Context, collection string, timestamp time.Time) error
- func (p ProxyClient) Init() error
- func (p ProxyClient) ListCollections(ctx context.Context) ([]string, error)
- func (p ProxyClient) Optimize() error
- func (p ProxyClient) QueryVectors(ctx context.Context, collection string, q []float32, categories []string, ...) ([]Vector, error)
- type ProxyServer
- func (p *ProxyServer) AddCollection(ctx context.Context, request *protocol.AddCollectionRequest) (*protocol.AddCollectionResponse, error)
- func (p *ProxyServer) AddVectors(ctx context.Context, request *protocol.AddVectorsRequest) (*protocol.AddVectorsResponse, error)
- func (p *ProxyServer) DeleteCollection(ctx context.Context, request *protocol.DeleteCollectionRequest) (*protocol.DeleteCollectionResponse, error)
- func (p *ProxyServer) DeleteVectors(ctx context.Context, request *protocol.DeleteVectorsRequest) (*protocol.DeleteVectorsResponse, error)
- func (p *ProxyServer) ListCollections(ctx context.Context, _ *protocol.ListCollectionsRequest) (*protocol.ListCollectionsResponse, error)
- func (p *ProxyServer) QueryVectors(ctx context.Context, request *protocol.QueryVectorsRequest) (*protocol.QueryVectorsResponse, error)
- func (p *ProxyServer) Serve(lis net.Listener) error
- func (p *ProxyServer) Stop()
- type Qdrant
- func (db *Qdrant) AddCollection(ctx context.Context, name string, dimensions int, distance Distance) error
- func (db *Qdrant) AddVectors(ctx context.Context, collection string, vectors []Vector) error
- func (db *Qdrant) Close() error
- func (db *Qdrant) DeleteCollection(ctx context.Context, name string) error
- func (db *Qdrant) DeleteVectors(ctx context.Context, collection string, timestamp time.Time) error
- func (db *Qdrant) Init() error
- func (db *Qdrant) ListCollections(ctx context.Context) ([]string, error)
- func (db *Qdrant) Optimize() error
- func (db *Qdrant) QueryVectors(ctx context.Context, collection string, q []float32, categories []string, ...) ([]Vector, error)
- type SQLite
- func (db *SQLite) AddCollection(ctx context.Context, name string, dimensions int, distance Distance) error
- func (db *SQLite) AddVectors(ctx context.Context, collection string, vectors []Vector) error
- func (db *SQLite) Close() error
- func (db *SQLite) DeleteCollection(ctx context.Context, name string) error
- func (db *SQLite) DeleteVectors(ctx context.Context, collection string, timestamp time.Time) error
- func (db *SQLite) Init() error
- func (db *SQLite) ListCollections(ctx context.Context) ([]string, error)
- func (db *SQLite) Optimize() error
- func (db *SQLite) QueryVectors(ctx context.Context, collection string, q []float32, categories []string, ...) ([]Vector, error)
- type Vector
- type Weaviate
- func (db *Weaviate) AddCollection(ctx context.Context, name string, dimensions int, distance Distance) error
- func (db *Weaviate) AddVectors(ctx context.Context, collection string, vectors []Vector) error
- func (db *Weaviate) Close() error
- func (db *Weaviate) DeleteCollection(ctx context.Context, name string) error
- func (db *Weaviate) DeleteVectors(ctx context.Context, collection string, timestamp time.Time) error
- func (db *Weaviate) Init() error
- func (db *Weaviate) ListCollections(ctx context.Context) ([]string, error)
- func (db *Weaviate) Optimize() error
- func (db *Weaviate) QueryVectors(ctx context.Context, collection string, q []float32, categories []string, ...) ([]Vector, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database interface {
Init() error
Optimize() error
Close() error
ListCollections(ctx context.Context) ([]string, error)
AddCollection(ctx context.Context, name string, dimensions int, distance Distance) error
DeleteCollection(ctx context.Context, name string) error
AddVectors(ctx context.Context, collection string, vectors []Vector) error
DeleteVectors(ctx context.Context, collection string, timestamp time.Time) error
QueryVectors(ctx context.Context, collection string, q []float32, categories []string, topK int) ([]Vector, error)
}
type Milvus ¶
type Milvus struct {
// contains filtered or unexported fields
}
func (*Milvus) AddCollection ¶
func (*Milvus) AddVectors ¶
func (*Milvus) DeleteCollection ¶
func (*Milvus) DeleteVectors ¶
func (*Milvus) ListCollections ¶
type ProxyClient ¶
type ProxyClient struct {
protocol.VectorStoreClient
}
func NewProxyClient ¶
func NewProxyClient(conn *grpc.ClientConn) *ProxyClient
func (ProxyClient) AddCollection ¶
func (ProxyClient) AddVectors ¶
func (ProxyClient) Close ¶
func (p ProxyClient) Close() error
func (ProxyClient) DeleteCollection ¶
func (p ProxyClient) DeleteCollection(ctx context.Context, name string) error
func (ProxyClient) DeleteVectors ¶
func (ProxyClient) Init ¶
func (p ProxyClient) Init() error
func (ProxyClient) ListCollections ¶
func (p ProxyClient) ListCollections(ctx context.Context) ([]string, error)
func (ProxyClient) Optimize ¶
func (p ProxyClient) Optimize() error
type ProxyServer ¶
type ProxyServer struct {
protocol.UnimplementedVectorStoreServer
// contains filtered or unexported fields
}
func NewProxyServer ¶
func NewProxyServer(database Database) *ProxyServer
func (*ProxyServer) AddCollection ¶
func (p *ProxyServer) AddCollection(ctx context.Context, request *protocol.AddCollectionRequest) (*protocol.AddCollectionResponse, error)
func (*ProxyServer) AddVectors ¶
func (p *ProxyServer) AddVectors(ctx context.Context, request *protocol.AddVectorsRequest) (*protocol.AddVectorsResponse, error)
func (*ProxyServer) DeleteCollection ¶
func (p *ProxyServer) DeleteCollection(ctx context.Context, request *protocol.DeleteCollectionRequest) (*protocol.DeleteCollectionResponse, error)
func (*ProxyServer) DeleteVectors ¶
func (p *ProxyServer) DeleteVectors(ctx context.Context, request *protocol.DeleteVectorsRequest) (*protocol.DeleteVectorsResponse, error)
func (*ProxyServer) ListCollections ¶
func (p *ProxyServer) ListCollections(ctx context.Context, _ *protocol.ListCollectionsRequest) (*protocol.ListCollectionsResponse, error)
func (*ProxyServer) QueryVectors ¶
func (p *ProxyServer) QueryVectors(ctx context.Context, request *protocol.QueryVectorsRequest) (*protocol.QueryVectorsResponse, error)
func (*ProxyServer) Stop ¶
func (p *ProxyServer) Stop()
type Qdrant ¶
type Qdrant struct {
// contains filtered or unexported fields
}
func (*Qdrant) AddCollection ¶
func (*Qdrant) AddVectors ¶
func (*Qdrant) DeleteCollection ¶
func (*Qdrant) DeleteVectors ¶
func (*Qdrant) ListCollections ¶
type SQLite ¶
type SQLite struct {
// contains filtered or unexported fields
}
func (*SQLite) AddCollection ¶
func (*SQLite) AddVectors ¶
func (*SQLite) DeleteCollection ¶
func (*SQLite) DeleteVectors ¶
func (*SQLite) ListCollections ¶
type Weaviate ¶
type Weaviate struct {
// contains filtered or unexported fields
}
func (*Weaviate) AddCollection ¶
func (*Weaviate) AddVectors ¶
func (*Weaviate) DeleteCollection ¶
func (*Weaviate) DeleteVectors ¶
func (*Weaviate) ListCollections ¶
Click to show internal directories.
Click to hide internal directories.