Documentation
¶
Index ¶
- Constants
- type Config
- type Store
- func (s *Store) Close() error
- func (s *Store) DeleteCollection(ctx context.Context, collectionName string) error
- func (s *Store) DeleteVectors(ctx context.Context, collectionName string, ids []string) error
- func (s *Store) EnsureCollection(ctx context.Context, collectionName string, dimension int) error
- func (s *Store) Search(ctx context.Context, collectionName string, queryVector []float64, limit int, ...) ([]vectorstores.SearchResult, error)
- func (s *Store) UpsertVectors(ctx context.Context, collectionName string, ids []string, ...) error
Constants ¶
const ( // DefaultHost is the default Qdrant host. DefaultHost = "localhost" // DefaultPort is the default Qdrant gRPC port. DefaultPort = 6334 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string
Port int
// APIKey is optional (e.g. for Qdrant Cloud).
APIKey string
}
Config configures the Qdrant connection.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements knowledge.VectorStore using Qdrant. Collection name is passed per call; each knowledge base uses its own collection.
func (*Store) DeleteCollection ¶
DeleteCollection removes the entire collection.
func (*Store) DeleteVectors ¶
DeleteVectors removes specific vectors by ID.
func (*Store) EnsureCollection ¶
EnsureCollection creates the collection if it does not exist.