Stores the documents in the index.
Converts the documents to vectors using the Embeddings instance passed.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
dbConfig: MomentoVectorIndexLibArgs,
documentProps: DocumentProps
): Promise<MomentoVectorIndex>| Name | Type | Description |
|---|---|---|
texts* | string[] | The texts to store in the index. |
metadatas* | object | object[] | The metadata to store in the index. |
embeddings* | EmbeddingsInterface | The embeddings instance to use to generate embeddings from the documents. |
dbConfig* | MomentoVectorIndexLibArgs | The configuration to use to instantiate the vector store. |
documentProps | DocumentProps | The properties of the documents to add to the index, specifically the ids. |