index

package
v0.0.4-beta2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternal = "internal index error"
)

Functions

func NewPinecone

func NewPinecone(options PineconeOptions, embedder Embedder) (*pinecone, error)

func NewSimpleVectorIndex

func NewSimpleVectorIndex(name string, outputPath string, embedder Embedder) (*simpleVectorIndex, error)

Types

type Embedder

type Embedder interface {
	Embed(ctx context.Context, texts []string) ([]embedder.Embedding, error)
}

type PineconeOptions added in v0.0.4

type PineconeOptions struct {
	IndexName       string
	ProjectID       string
	Namespace       string
	IncludeContent  bool
	BatchUpsertSize *int
}

type SearchResponse

type SearchResponse struct {
	ID       string
	Document document.Document
	Score    float64
}

Jump to

Keyboard shortcuts

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