Documentation
¶
Overview ¶
Package vectorstore provides functionality for storing and managing vector embeddings.
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 (*Pinecone) AddDocuments ¶ added in v0.0.12
type PineconeOptions ¶ added in v0.0.12
type Weaviate ¶ added in v0.0.40
type Weaviate struct {
// contains filtered or unexported fields
}
Weaviate represents a Weaviate vector store.
func NewWeaviate ¶ added in v0.0.40
func NewWeaviate(client *weaviate.Client, embedder schema.Embedder, indexName string, optFns ...func(*WeaviateOptions)) *Weaviate
NewWeaviate creates a new Weaviate vector store with the given Weaviate client, embedder, index name, and optional configuration options.
func (*Weaviate) AddDocuments ¶ added in v0.0.40
AddDocuments adds a batch of documents to the Weaviate vector store.
type WeaviateOptions ¶ added in v0.0.40
type WeaviateOptions struct {
// TextKey is the name of the property in the Weaviate objects where the text content is stored.
TextKey string
// TopK is the number of documents to retrieve in similarity search.
TopK int
}
WeaviateOptions contains options for configuring the Weaviate vector store.
Click to show internal directories.
Click to hide internal directories.