Short Course[Building Agentic RAG with Llamaindex]

More than a question its rather a solution to a proble.
While trying to implement the same in my own virtual environment , I found this issue.

Actually relates to

Settings.llm = OpenAI(model=“gpt-3.5-turbo”)

which throws the following error.

File “C:\Users\agenticRagLlamaIndex\mainApp.py”, line 14, in
client = OpenAI(api_key =“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”)
TypeError: Can’t instantiate abstract class OpenAI with abstract method _prepare_chat_with_tools

Found the following to solve my issue.

–pip install -U llama-index llama-index-llms-openai

which I found here …

May be very obvious , but spent few hours on it , hence I thought it could be a good excuse to turn up here.

Another reason is to suggest , this particulat course has been awesome. Showed me what I was trying was not going to work. Hence its very useful.

Thanks to DeepLearning , Andrew and Jeremy to bring this amazing initiative to us.

Kind Regards

Amitava