Stores the documents in the index.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: MomentoVectorIndexLibArgs,
documentProps: DocumentProps
): Promise<MomentoVectorIndex>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | The documents 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. |