-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Description:
I encountered a ModuleNotFoundError while working with the BaseRetriever class in the base.py file. The error message indicates that the module langchain.docstore cannot be found, which is causing issues when trying to import necessary components for vector retrieval.
Steps to Reproduce:
- Attempt to run the code in base.py.
- Observe the error message:
ModuleNotFoundError: No module named 'langchain.docstore'.
Expected Behavior:
The code should run without import errors, allowing for the proper functionality of the BaseRetriever class.
Actual Behavior:
The code fails to execute due to the missing module, preventing any further operations that depend on this class.
Proposed Solution:
Review and update the import statements in base.py to ensure compatibility with the current structure of the langchain library. This may involve checking the latest documentation for langchain and adjusting the imports accordingly.
Additional Information:
- The issue seems to be related to recent changes in the
langchainlibrary structure. - Please let me know if further information is needed to assist in resolving this issue.