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