pinecone

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package pinecone provides a Pinecone-backed VectorStore adapter for Chronos.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store implements storage.VectorStore using Pinecone's REST API.

func New

func New(host, apiKey string) *Store

New creates a Pinecone vector store. host is the index endpoint, e.g. "https://my-index-abc123.svc.pinecone.io".

func (*Store) Close

func (s *Store) Close() error

func (*Store) CreateCollection

func (s *Store) CreateCollection(_ context.Context, _ string, _ int) error

func (*Store) Delete

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

func (*Store) Search

func (s *Store) Search(ctx context.Context, _ string, query []float32, topK int, opts ...storage.SearchOption) ([]storage.SearchResult, error)

func (*Store) Upsert

func (s *Store) Upsert(ctx context.Context, _ string, embeddings []storage.Embedding) error

Jump to

Keyboard shortcuts

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