pixegami / rag-tutorial-v2

An Improved Langchain RAG Tutorial (v2) with local LLMs, database updates, and testing.
260 stars 162 forks source link

Problem: Check for Compatibility: Ensure that the version of langchain and langsmith you are using is compatible with the version of pydantic installed. Sometimes specific versions of these packages require specific versions of pydantic. #10

Open CoreyB84 opened 3 weeks ago

CoreyB84 commented 3 weeks ago

Haven't solved this yet but working on it.

C:\PycharmProjects\rag-tutorial-v2-main.venv\Scripts\python.exe C:/PyChar/plugins/python-ce/helpers/pycharm/_jb_pytest_runner.py --path C:\PycharmProjects\rag-tutorial-v2-main\test_rag.py Testing started at 12:10 a.m. ... Launching pytest with arguments C:\PycharmProjects\rag-tutorial-v2-main\test_rag.py --no-header --no-summary -q in C:\PycharmProjects\rag-tutorial-v2-main

============================= test session starts ============================= collecting ... test_rag.py:None (test_rag.py) test_rag.py:1: in from query_data import query_rag query_data.py:2: in from langchain.vectorstores.chroma import Chroma .venv\Lib\site-packages\langchain\vectorstores__init.py:23: in from langchain_core.vectorstores import VectorStore .venv\Lib\site-packages\langchain_core\vectorstores.py:44: in from langchain_core.retrievers import BaseRetriever .venv\Lib\site-packages\langchain_core\retrievers.py:29: in from langchain_core.documents import Document .venv\Lib\site-packages\langchain_core\documents__init.py:6: in from langchain_core.documents.compressor import BaseDocumentCompressor .venv\Lib\site-packages\langchain_core\documents\compressor.py:6: in from langchain_core.callbacks import Callbacks .venv\Lib\site-packages\langchain_core\callbacks__init__.py:22: in from langchain_core.callbacks.manager import ( .venv\Lib\site-packages\langchain_core\callbacks\manager.py:29: in from langsmith.run_helpers import get_run_tree_context .venv\Lib\site-packages\langsmith\run_helpers.py:40: in from langsmith import client as ls_client .venv\Lib\site-packages\langsmith\client.py:52: in from langsmith import env as ls_env .venv\Lib\site-packages\langsmith\env\init.py:3: in from langsmith.env._runtime_env import ( .venv\Lib\site-packages\langsmith\env_runtime_env.py:10: in from langsmith.utils import get_docker_compose_command .venv\Lib\site-packages\langsmith\utils.py:31: in from langsmith import schemas as ls_schemas .venv\Lib\site-packages\langsmith\schemas.py:69: in class Example(ExampleBase): .venv\Lib\site-packages\pydantic\v1\main.py:286: in new cls.try_update_forward_refs() .venv\Lib\site-packages\pydantic\v1\main.py:807: in try_update_forward_refs__ update_model_forward_refs(cls, cls.fields.values(), cls.config__.json_encoders, localns, (NameError,)) .venv\Lib\site-packages\pydantic\v1\typing.py:554: in update_model_forward_refs update_field_forward_refs(f, globalns=globalns, localns=localns) .venv\Lib\site-packages\pydantic\v1\typing.py:520: in update_field_forwardrefs field.type = evaluateforwardref(field.type, globalns, localns or None) .venv\Lib\site-packages\pydantic\v1\typing.py:66: in evaluateforwardref return cast(Any, type)._evaluate(globalns, localns, set()) E TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard' collected 0 items / 1 error

!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! ============================== 1 error in 0.84s ===============================

Process finished with exit code 2

CoreyB84 commented 3 weeks ago

Been trying to fix this issue for about 4 hours still nothing...