Creates a new ZepVectorStore instance from an array of texts. Each text is converted into a Document and added to the collection.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
zepConfig: IZepConfig
): Promise<ZepVectorStore>| 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 | The embeddings to use for vectorizing the texts. |
zepConfig* | IZepConfig | The configuration object for the Zep API. |