Creates an instance of AnalyticDBVectorStore from an array of texts
and corresponding metadata. The texts are first converted to Document
instances before being added to the collection.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
dbConfig: AnalyticDBArgs
): Promise<AnalyticDBVectorStore>| Name | Type | Description |
|---|---|---|
texts* | string[] | Array of texts to be added to the collection. |
metadatas* | object | object[] | Array or object of metadata corresponding to the texts. |
embeddings* | EmbeddingsInterface | Embeddings instance used to convert the texts to vectors. |
dbConfig* | AnalyticDBArgs | Configuration for the AnalyticDB. |