Documentation
¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) DeleteMemoryVectors(ctx context.Context, memoryID uuid.UUID) error
- func (c *Client) SearchMemoryVectors(ctx context.Context, namespacePrefix string, embedding []float32, ...) ([]registryepisodic.MemoryVectorSearch, error)
- func (c *Client) UpsertMemoryVectors(ctx context.Context, items []registryepisodic.MemoryVectorUpsert) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements episodic vector operations against Qdrant.
func New ¶
func New(cfg *config.Config, tp trace.TracerProvider, prop propagation.TextMapPropagator) (*Client, error)
New creates a Qdrant-backed episodic vector client using the given TracerProvider. Pass nil to fall back to a noop provider. New creates a Qdrant-backed episodic vector client. Pass nil for tp to fall back to a noop provider. Pass nil for prop to fall back to a W3C TraceContext-only participating propagator.
func NewEpisodicQdrantClientForTest ¶ added in v0.2.2
func NewEpisodicQdrantClientForTest(conn *grpc.ClientConn, collectionName string) *Client
NewEpisodicQdrantClientForTest constructs a Client using an already-dialed *grpc.ClientConn. Only for use in tests.
func (*Client) DeleteMemoryVectors ¶
DeleteMemoryVectors removes all vectors for the given memory ID.
func (*Client) SearchMemoryVectors ¶
func (c *Client) SearchMemoryVectors(ctx context.Context, namespacePrefix string, embedding []float32, filter registryepisodic.AttributeFilter, memoryKind string, limit int, archived registryepisodic.ArchiveFilter) ([]registryepisodic.MemoryVectorSearch, error)
SearchMemoryVectors searches vectors using namespace_ancestors + attribute filter.
func (*Client) UpsertMemoryVectors ¶
func (c *Client) UpsertMemoryVectors(ctx context.Context, items []registryepisodic.MemoryVectorUpsert) error
UpsertMemoryVectors writes memory vectors to Qdrant.