Static method that creates a new instance of the CloudflareVectorizeStore class from documents.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: VectorizeLibArgs
): Promise<CloudflareVectorizeStore>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | Array of documents to add to the Vectorize database. |
embeddings* | EmbeddingsInterface | Embeddings to use for the documents. |
dbConfig* | VectorizeLibArgs | Configuration for the Vectorize database. |