Documentation
¶
Index ¶
- Variables
- type Embedder
- type Option
- type Pinecone
- func (p *Pinecone) IsEmpty(ctx context.Context) (bool, error)
- func (p *Pinecone) LoadFromDocuments(ctx context.Context, documents []document.Document) error
- func (p *Pinecone) SimilaritySearch(ctx context.Context, query string, opts ...Option) (SearchResponses, error)
- func (p *Pinecone) WithAPIKeyAndEnvironment(apiKey, environment string) *Pinecone
- type PineconeCreateIndexOptions
- type PineconeOptions
- type SearchResponse
- type SearchResponses
- type SimpleVectorIndex
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInternal = "internal index error"
)
Functions ¶
This section is empty.
Types ¶
type Pinecone ¶
type Pinecone struct {
// contains filtered or unexported fields
}
func NewPinecone ¶
func NewPinecone(options PineconeOptions, embedder Embedder) *Pinecone
func (*Pinecone) LoadFromDocuments ¶
func (*Pinecone) SimilaritySearch ¶
func (*Pinecone) WithAPIKeyAndEnvironment ¶ added in v0.0.5
type PineconeCreateIndexOptions ¶ added in v0.0.5
type PineconeOptions ¶ added in v0.0.4
type PineconeOptions struct { IndexName string Namespace string IncludeContent bool BatchUpsertSize *int CreateIndex *PineconeCreateIndexOptions }
type SearchResponse ¶
type SearchResponses ¶ added in v0.0.5
type SearchResponses []SearchResponse
func (SearchResponses) ToDocuments ¶ added in v0.0.5
func (s SearchResponses) ToDocuments() []document.Document
type SimpleVectorIndex ¶
type SimpleVectorIndex struct {
// contains filtered or unexported fields
}
func NewSimpleVectorIndex ¶
func NewSimpleVectorIndex(name string, outputPath string, embedder Embedder) *SimpleVectorIndex
func (*SimpleVectorIndex) IsEmpty ¶ added in v0.0.5
func (s *SimpleVectorIndex) IsEmpty() (bool, error)
func (*SimpleVectorIndex) LoadFromDocuments ¶
func (*SimpleVectorIndex) SimilaritySearch ¶
func (s *SimpleVectorIndex) SimilaritySearch(ctx context.Context, query string, opts ...Option) (SearchResponses, error)
Click to show internal directories.
Click to hide internal directories.