index = VectorStoreIndex.from_documents(
documents=documents, embed_model=embed_model)
The vector store index (in-memory) is working; however, I am unable to load the data and re-create the storage context using storage_context = StorageContext.from_defaults(persist_dir
Would anybody be able to help with the configuration for Cohere? I understand that I can then load the indexusing the following fucntion: index = load_index_from_storage(storage_context) Many thanks!
Thanks Logan! It works now. I was previously unable to load because the load_index_from_storage() function was calling the OpenAI API instead of the CohereEmbedding. Passing in the additional embed_model argument made the difference.