Closed andysingal closed 10 months ago
Perhaps you have v1 (instead of v2) of Pydantic installed? Were there any error/warning messages reported by pip? You can check which you have: pip show pydantic
Perhaps you have v1 (instead of v2) of Pydantic installed? Were there any error/warning messages reported by pip? You can check which you have: pip show pydantic
I am running on google colab,
Name: pydantic
Version: 1.10.13
Summary: Data validation and settings management using python type hints
Home-page: https://github.com/pydantic/pydantic
Author: Samuel Colvin
Author-email: [s@muelcolvin.com](mailto:s@muelcolvin.com)
License: MIT
Location: /usr/local/lib/python3.10/dist-packages
Requires: typing-extensions
Required-by: confection, inflect, lida, llmx, spacy, thinc
You should be able to update the package with something like:
%pip install -qU trulens_eval pydantic
I've run https://github.com/truera/trulens/blob/releases/rc-trulens-eval-0.3.0/trulens_eval/examples/vector-dbs/llama_index/llama_example.ipynb on Colab successfully by adding:
%pip install -qU trulens_eval pydantic fastapi kaleido python-multipart uvicorn cohere openai tiktoken "llama-index"
You can see it here: https://gist.github.com/jimwhite/ec3cb445b04a456f7ccc7ede4a14220e
There are some errors later having to do with leftover Pydantic V1 calls in the notebook because TruLens hasn't fully migrated everything to V2 yet.
You should be able to update the package with something like:
%pip install -qU trulens_eval pydantic
I've run https://github.com/truera/trulens/blob/releases/rc-trulens-eval-0.3.0/trulens_eval/examples/vector-dbs/llama_index/llama_example.ipynb on Colab successfully by adding:
%pip install -qU trulens_eval pydantic fastapi kaleido python-multipart uvicorn cohere openai tiktoken "llama-index"
You can see it here: https://gist.github.com/jimwhite/ec3cb445b04a456f7ccc7ede4a14220e
There are some errors later having to do with leftover Pydantic V1 calls in the notebook because TruLens hasn't fully migrated everything to V2 yet.
Thank you very much it works now :) . Will be adding to my medium article. Cheers :)
This issue still exists. Even after updating the packages I still get this error.
Ok I figured out why, i was trying to use an older version of LangChain and it was messing things up.
I tried :
ERROR: