Creates a new instance of LanceDB from documents.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: LanceDBArgs
): Promise<LanceDB>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | The documents to be added to the database. |
embeddings* | EmbeddingsInterface | The embeddings to be managed. |
dbConfig | LanceDBArgs | The configuration for the LanceDB instance. |