vectorstore

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToRetriever

func ToRetriever(vectorStore schema.VectorStore) schema.Retriever

ToRetriever takes a vector store and returns a retriever

Types

type Pinecone added in v0.0.12

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

func NewPinecone added in v0.0.12

func NewPinecone(client pinecone.Client, embedder schema.Embedder, textKey string, optFns ...func(*PineconeOptions)) (*Pinecone, error)

func (*Pinecone) AddDocuments added in v0.0.12

func (vs *Pinecone) AddDocuments(ctx context.Context, docs []schema.Document) error

func (*Pinecone) SimilaritySearch added in v0.0.12

func (vs *Pinecone) SimilaritySearch(ctx context.Context, query string) ([]schema.Document, error)

type PineconeOptions added in v0.0.12

type PineconeOptions struct {
	Namespace string
}

Jump to

Keyboard shortcuts

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