Static method that creates a new instance of the CloudflareVectorizeStore class from texts.
fromTexts(
texts: string[],
metadatas: Record<string, VectorizeVectorMetadata> | Record<string, VectorizeVectorMetadata>[],
embeddings: EmbeddingsInterface,
dbConfig: VectorizeLibArgs
): Promise<CloudflareVectorizeStore>| Name | Type | Description |
|---|---|---|
texts* | string[] | Array of texts to add to the Vectorize database. |
metadatas* | Record<string, VectorizeVectorMetadata> | Record<string, VectorizeVectorMetadata>[] | Metadata associated with the texts. |
embeddings* | EmbeddingsInterface | Embeddings to use for the texts. |
dbConfig* | VectorizeLibArgs | Configuration for the Vectorize database. |