pinecone

package
v0.0.12-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 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
	Replicas  int
	Metric    string
	PodType   string
}

type DB

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

func New

func New(options Options) *DB

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) WithAPIKeyAndEnvironment

func (d *DB) WithAPIKeyAndEnvironment(apiKey, environment string) *DB

type Options

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

Jump to

Keyboard shortcuts

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