Documentation
¶
Overview ¶
Package pinecone implements the vectorstore.Store interface for Pinecone.
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) Count(ctx context.Context, collection string) (int64, error)
- func (c *Client) DeleteCollection(ctx context.Context, name string) error
- func (c *Client) EnsureCollection(ctx context.Context, name string, dim int) error
- func (c *Client) Search(ctx context.Context, collection string, vector []float32, topK int) ([]vectorstore.Result, error)
- func (c *Client) Upsert(ctx context.Context, collection string, points []vectorstore.Point) 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 vectorstore.Store for Pinecone.
func New ¶
New creates a new Pinecone client. host should be the full Pinecone index host (from the Pinecone console). API key is read from PINECONE_API_KEY environment variable if not provided.
func (*Client) DeleteCollection ¶
DeleteCollection deletes all vectors in a namespace.
func (*Client) EnsureCollection ¶
EnsureCollection is a no-op for Pinecone (index must be created via console/API). Pinecone uses namespaces within an index, which are created automatically on upsert.
Click to show internal directories.
Click to hide internal directories.