Static method to create a new instance of TigrisVectorStore from an array of texts.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
dbConfig: TigrisLibArgs
): Promise<TigrisVectorStore>| Name | Type | Description |
|---|---|---|
texts* | string[] | An array of texts to be converted into Document instances and added to the Tigris database. |
metadatas* | object | object[] | Either an array of metadata objects or a single metadata object to be associated with the texts. |
embeddings* | EmbeddingsInterface | An instance of Embeddings to be used for embedding the texts. |
dbConfig* | TigrisLibArgs | An instance of TigrisLibArgs to be used for configuring the Tigris database. |