pinecone

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateIndexOptions

type CreateIndexOptions struct {
	Dimension  int
	Metric     string
	Serverless *Serverless
	Pod        *Pod
}

type DB

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

func New

func New(options Options) *DB

func (*DB) Delete added in v0.1.0

func (d *DB) Delete(ctx context.Context, ids []string) error

func (*DB) Drop added in v0.1.0

func (d *DB) Drop(ctx context.Context) error

func (*DB) Insert

func (d *DB) Insert(ctx context.Context, datas []index.Data) error

func (*DB) IsEmpty

func (d *DB) IsEmpty(ctx context.Context) (bool, error)

func (*DB) Search

func (d *DB) Search(ctx context.Context, values []float64, options *option.Options) (index.SearchResults, error)

func (*DB) WithAPIKey added in v0.1.0

func (d *DB) WithAPIKey(apiKey string) *DB

type MetadataConfig added in v0.1.0

type MetadataConfig struct {
	Indexed []string
}

type Options

type Options struct {
	IndexName          string
	Namespace          string
	CreateIndexOptions *CreateIndexOptions
}

type Pod added in v0.1.0

type Pod struct {
	Environment      string
	Replicas         *int
	PodType          string
	Pods             *int
	Shards           *int
	MetadataConfig   *MetadataConfig
	SourceCollection *string
}

type Serverless added in v0.1.0

type Serverless struct {
	Cloud  ServerlessCloud
	Region string
}

type ServerlessCloud added in v0.1.0

type ServerlessCloud string
const (
	ServerlessCloudAWS   ServerlessCloud = "aws"
	ServerlessCloudGCP   ServerlessCloud = "gcp"
	ServerlessCloudAzure ServerlessCloud = "azure"
)

Jump to

Keyboard shortcuts

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