Documentation
¶
Index ¶
- type QdrantClient
- func (c *QdrantClient) Close() error
- func (c *QdrantClient) CollectionExists(ctx context.Context, name string) (bool, error)
- func (c *QdrantClient) CreateCollection(ctx context.Context, name string, dimension int) error
- func (c *QdrantClient) Delete(ctx context.Context, id string) error
- func (c *QdrantClient) DeleteByFilter(ctx context.Context, key, value string) error
- func (c *QdrantClient) DeleteCollection(ctx context.Context, name string) error
- func (c *QdrantClient) GetCollectionPointCount(ctx context.Context, name string) (uint64, error)
- func (c *QdrantClient) Search(ctx context.Context, vector []float64, limit int) ([]SearchResult, error)
- func (c *QdrantClient) Upsert(ctx context.Context, id string, vector []float64, ...) error
- type QdrantConfig
- type QdrantLongTermMemory
- func (m *QdrantLongTermMemory) Clear(ctx context.Context) error
- func (m *QdrantLongTermMemory) CollectionExists(ctx context.Context, collectionName string) (bool, error)
- func (m *QdrantLongTermMemory) Delete(ctx context.Context, id string) error
- func (m *QdrantLongTermMemory) DeleteByMetadata(ctx context.Context, key, value string) error
- func (m *QdrantLongTermMemory) GetCollectionPointCount(ctx context.Context, collectionName string) (uint64, error)
- func (m *QdrantLongTermMemory) Search(ctx context.Context, query []float64, limit int) ([]memory.Document, error)
- func (m *QdrantLongTermMemory) Store(ctx context.Context, doc memory.Document) error
- type SearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QdrantClient ¶
type QdrantClient struct {
// contains filtered or unexported fields
}
QdrantClient provides access to Qdrant vector database
func NewQdrantClient ¶
func NewQdrantClient(config QdrantConfig) (*QdrantClient, error)
NewQdrantClient creates a new Qdrant client
func (*QdrantClient) Close ¶
func (c *QdrantClient) Close() error
Close closes the Qdrant client connection
func (*QdrantClient) CollectionExists ¶
CollectionExists checks if a collection exists in Qdrant
func (*QdrantClient) CreateCollection ¶
CreateCollection creates a new collection
func (*QdrantClient) Delete ¶
func (c *QdrantClient) Delete(ctx context.Context, id string) error
Delete deletes a vector by ID
func (*QdrantClient) DeleteByFilter ¶
func (c *QdrantClient) DeleteByFilter(ctx context.Context, key, value string) error
DeleteByFilter deletes vectors matching a filter
func (*QdrantClient) DeleteCollection ¶
func (c *QdrantClient) DeleteCollection(ctx context.Context, name string) error
DeleteCollection deletes an entire collection (DANGEROUS: removes all points)
func (*QdrantClient) GetCollectionPointCount ¶
GetCollectionPointCount returns the number of points (documents) in a collection
func (*QdrantClient) Search ¶
func (c *QdrantClient) Search(ctx context.Context, vector []float64, limit int) ([]SearchResult, error)
Search searches for similar vectors
type QdrantConfig ¶
QdrantConfig contains Qdrant-specific configuration
type QdrantLongTermMemory ¶
type QdrantLongTermMemory struct {
// contains filtered or unexported fields
}
QdrantLongTermMemory implements memory.LongTermMemory using Qdrant
func NewQdrantLongTermMemory ¶
func NewQdrantLongTermMemory(client *QdrantClient) *QdrantLongTermMemory
NewQdrantLongTermMemory creates a new Qdrant-backed long-term memory
func (*QdrantLongTermMemory) Clear ¶
func (m *QdrantLongTermMemory) Clear(ctx context.Context) error
Clear clears all documents (not implemented for safety - use with caution)
func (*QdrantLongTermMemory) CollectionExists ¶
func (m *QdrantLongTermMemory) CollectionExists(ctx context.Context, collectionName string) (bool, error)
CollectionExists checks if the collection exists
func (*QdrantLongTermMemory) Delete ¶
func (m *QdrantLongTermMemory) Delete(ctx context.Context, id string) error
Delete deletes a document by ID
func (*QdrantLongTermMemory) DeleteByMetadata ¶
func (m *QdrantLongTermMemory) DeleteByMetadata(ctx context.Context, key, value string) error
DeleteByMetadata deletes documents matching a metadata key-value pair
func (*QdrantLongTermMemory) GetCollectionPointCount ¶
func (m *QdrantLongTermMemory) GetCollectionPointCount(ctx context.Context, collectionName string) (uint64, error)
GetCollectionPointCount returns the number of points (documents) in a collection
type SearchResult ¶
SearchResult represents a search result