fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | |
embeddings* | EmbeddingsInterface | |
dbConfig* | VectorizeLibArgs |
Static 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.