Creates a new FaissStore from an array of Document objects and an Embeddings object.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: __type
): Promise<FaissStore>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | An array of Document objects. |
embeddings* | EmbeddingsInterface | An Embeddings object. |
dbConfig | __type | An optional configuration object for the document store. |