fromTexts
and searchfromTexts
method to instantiate the vector store and index documents.
If the index does not exist, then it will be created. If the index already exists, then the documents will be
added to the existing index.
The ids
are optional; if you omit them, then Momento will generate UUIDs for you.
fromDocuments
and searchfromDocuments
method to instantiate the vector store and index documents.
If the index does not exist, then it will be created. If the index already exists, then the documents will be
added to the existing index.
Using fromDocuments
allows you to seamlessly chain the various document loaders with indexing.