Static method to create an instance of AzureAISearchVectorStore from a list of texts. It first converts the texts to vectors and then adds them to the collection.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
config: AzureAISearchConfig
): Promise<AzureAISearchVectorStore>| Name | Type | Description |
|---|---|---|
texts* | string[] | List of texts to be converted to vectors. |
metadatas* | object | object[] | Metadata for the texts. |
embeddings* | EmbeddingsInterface | Embeddings to be used for conversion. |
config* | AzureAISearchConfig | Database configuration for Azure AI Search. |