fromDocuments(
_docs: DocumentInterface<Record<string, any>>[],
_embeddings: EmbeddingsInterface,
| Name | Type | Description |
|---|---|---|
_docs* | DocumentInterface<Record<string, any>>[] | |
_embeddings* | EmbeddingsInterface | |
_dbConfig* | Record<string, any> |
Creates a VectorStore instance from an array of documents, using the specified
embeddings and database configuration.
Subclasses must implement this method to define how documents are embedded and stored. Throws an error if not overridden.
Array of DocumentInterface instances representing the documents to be stored.
Instance of EmbeddingsInterface to embed the documents.
Database configuration settings.