pinecone

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Store)

Option configures the Pinecone store

func WithDimension

func WithDimension(dim int) Option

WithDimension sets the vector dimension

func WithEnvironment

func WithEnvironment(env string) Option

WithEnvironment sets the Pinecone environment

func WithIndex

func WithIndex(name string) Option

WithIndex sets the index name

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store implements a vector store using Pinecone

func NewStore

func NewStore(apiKey string, opts ...Option) (*Store, error)

NewStore creates a new Pinecone vector store

func (*Store) Add

func (s *Store) Add(ctx context.Context, chunks []vectorstore.Chunk, embeddings [][]float32) error

Add adds chunks to the Pinecone store

func (*Store) Close

func (s *Store) Close() error

Close closes the Pinecone client

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, ids []string) error

Delete removes chunks from the Pinecone store

func (*Store) Search

func (s *Store) Search(ctx context.Context, query []float32, opts vectorstore.SearchOptions) ([]vectorstore.Result, error)

Search performs similarity search in Pinecone

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL