mistralai/cookbook

basic RAG example

silvacarl2 opened this issue · 1 comments

I get this error and i cannot figure out how to get rid of it for the llama-index part of the example:


ImportError Traceback (most recent call last)
in <cell line: 3>()
1 import os
2 from llama_index.core import Settings, SimpleDirectoryReader, VectorStoreIndex
----> 3 from llama_index.llms.mistralai import MistralAI
4 from llama_index.embeddings.mistralai import MistralAIEmbedding
5

2 frames
/usr/local/lib/python3.10/dist-packages/mistralai/async_client.py in
21 MistralException,
22 )
---> 23 from mistralai.files import FilesAsyncClient
24 from mistralai.jobs import JobsAsyncClient
25 from mistralai.models.chat_completion import (

ImportError: cannot import name 'FilesAsyncClient' from 'mistralai.files' (/usr/local/lib/python3.10/dist-packages/mistralai/files.py)