Optional
namespaceMethod that adds documents to the Vectorize database.
Array of documents to add.
Optional
options: string[] | { Optional ids for the documents.
Promise that resolves with the ids of the added documents.
Method that adds vectors to the Vectorize database.
Array of vectors to add.
Array of documents associated with the vectors.
Optional
options: string[] | { Optional ids for the vectors.
Promise that resolves with the ids of the added vectors.
Method that deletes vectors from the Vectorize database.
Parameters for the delete operation.
Promise that resolves when the delete operation is complete.
Method that performs a similarity search in the Vectorize database and returns the results along with their scores.
Query vector for the similarity search.
Number of top results to return.
Optional
filter: VectorizeVectorMetadataFilterPromise that resolves with an array of documents and their scores.
Static
fromStatic method that creates a new instance of the CloudflareVectorizeStore class from documents.
Array of documents to add to the Vectorize database.
Embeddings to use for the documents.
Configuration for the Vectorize database.
Promise that resolves with a new instance of the CloudflareVectorizeStore class.
Static
fromStatic method that creates a new instance of the CloudflareVectorizeStore class from an existing index.
Embeddings to use for the documents.
Configuration for the Vectorize database.
Promise that resolves with a new instance of the CloudflareVectorizeStore class.
Static
fromStatic method that creates a new instance of the CloudflareVectorizeStore class from texts.
Array of texts to add to the Vectorize database.
Metadata associated with the texts.
Embeddings to use for the texts.
Configuration for the Vectorize database.
Promise that resolves with a new instance of the CloudflareVectorizeStore class.
Generated using TypeDoc
Class that extends the VectorStore class and provides methods to interact with the Cloudflare Vectorize vector database.