fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface| Name | Type | Description |
|---|---|---|
texts* | string[] | The texts to convert into Documents. |
metadatas* | object | object[] | The metadata to associate with each Document. If an array is provided, each element is associated with the corresponding Document. If an object is provided, it is associated with all Documents. |
embeddings* | EmbeddingsInterface | Pass FakeEmbeddings, Zep Cloud will handle text embedding for you. |
zepConfig* | IZepCloudConfig |
Creates a new ZepVectorStore instance from an array of texts. Each text is converted into a Document and added to the collection.
The configuration object for the Zep API.