Creates a new VoyVectorStore instance from an array of text strings. The text
strings are converted to Document instances and added to the Voy
database.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
client: VoyClient
): Promise<VoyVectorStore>| Name | Type | Description |
|---|---|---|
texts* | string[] | An array of text strings. |
metadatas* | object | object[] | An array of metadata objects or a single metadata object. If an array is provided, it must have the same length as the |
embeddings* | EmbeddingsInterface | An |
client* | VoyClient | An instance of Voy client to use in the underlying operations. |