Hi!
I faced the following error when running cell 42
Does anybody know how to fix this?
did you encounter this error in course provided environment?
I think he was running the notebooks on his own machine and not on the server. You probably downloaded a more recent OpenAI package with the pip package manager. The deeplearning.ai servers currently use the version shown in the image. Check which one you have installed on your computer.
You can install this particular version as follows and it will be compatible with the lessons shown in the videos:
pip install openai==0.27.7
I ran the notebook on the lab’s environment, not on my local machine and still I am facing this issue!
please tell which lesson is this from so I can have look myself at those codes @balgheh
Course “Langchain for Application Development”, module “Estimation”, cell 42
There is no module called estimation in the lesson. And the evaluation module does not have as many executable cells.
I’m sorry for my mistake.
Yes the module name is “Evaluation” and the code related to that is cell which contains the code below
new_examples = example_gen_chain.apply_and_parse(
[{“doc”: t} for t in data[:5]]
)
Have you modified anything in the cells before it?
are you stating when you run down the new_example code you got that error?? @balgheh
You also haven’t shared screenshot of the complete error?
i suspect you missed running one the cell before this code not run down successfully especially the llm one. But I would like to see the complete error log before confirming what could be the issue.