Creates a new VoyVectorStore instance from an array of Document instances.
The documents are added to the Voy database.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
client: VoyClient
): Promise<VoyVectorStore>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | An array of |
embeddings* | EmbeddingsInterface | An |
client* | VoyClient | An instance of Voy client to use in the underlying operations. |