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.
fromDocuments(
_docs: DocumentInterface<Record<string, any>>[],
_embeddings: EmbeddingsInterface,
_dbConfig: Record<string, any>
): Promise<VectorStore>| Name | Type | Description |
|---|---|---|
_docs* | DocumentInterface<Record<string, any>>[] | Array of |
_embeddings* | EmbeddingsInterface | Instance of |
_dbConfig* | Record<string, any> | Database configuration settings. |