Creates an instance of AnalyticDBVectorStore from an array of
Document instances. The documents are added to the collection.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: AnalyticDBArgs
): Promise<AnalyticDBVectorStore>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | Array of Document instances to be added to the collection. |
embeddings* | EmbeddingsInterface | Embeddings instance used to convert the documents to vectors. |
dbConfig* | AnalyticDBArgs | Configuration for the AnalyticDB. |