You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gen AI libraries, such as OpenAI, LangChain and LlamaIndex are evolving rapidly and keep introducing breaking changes in the APIs.
The code that is based on the "latest" or unpinned libraries can work today, but will throw unexpected errors tomorrow, just because one of the latest libraries introduced a breaking change.
Identify and pin known working combinations of versions of libraries for all the notebooks.
The target platform for all the tests is Google Colab!!! It might have a different set of base libraries loaded compared to your local/hosted notebook environments. Always make sure Google Colab works. If any other environment works too - that's a nice bonus, but Google Colab is the absolute requirement.
Here are the steps:
Remove all the pins from the pip install cell
Test, if needed make changes to the code so it works with the latest libraries, or identify the working version such as !pip -q install "openai==0.28"
Remove the -q flag from !pip -q install and rerun the cell - at the end of the output you'll see the line like: Successfully installed accelerate-0.25.0 backoff-2.2.1 cohere-4.39 ...
Pin the library versions to these in the line above.
Add back -q flag to !pip -q install , and retest the entire notebook.
The text was updated successfully, but these errors were encountered:
Gen AI libraries, such as OpenAI, LangChain and LlamaIndex are evolving rapidly and keep introducing breaking changes in the APIs.
The code that is based on the "latest" or unpinned libraries can work today, but will throw unexpected errors tomorrow, just because one of the latest libraries introduced a breaking change.
Identify and pin known working combinations of versions of libraries for all the notebooks.
The target platform for all the tests is Google Colab!!! It might have a different set of base libraries loaded compared to your local/hosted notebook environments. Always make sure Google Colab works. If any other environment works too - that's a nice bonus, but Google Colab is the absolute requirement.
Here are the steps:
!pip -q install "openai==0.28"
-q
flag from!pip -q install
and rerun the cell - at the end of the output you'll see the line like:Successfully installed accelerate-0.25.0 backoff-2.2.1 cohere-4.39 ...
-q
flag to!pip -q install
, and retest the entire notebook.The text was updated successfully, but these errors were encountered: