Static method to create a FakeVectorStore instance from an array of
Document instances. It adds the documents to the store.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: FakeVectorStoreArgs
): Promise<FakeVectorStore>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | Array of |
embeddings* | EmbeddingsInterface |
|
dbConfig | FakeVectorStoreArgs | Optional |