Skip to content

ModuleNotFoundError: No module named 'langchain.docstore' #4765

@Yugsolanki

Description

@Yugsolanki

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:

  1. Attempt to run the code in base.py.
  2. 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 langchain library structure.
  • Please let me know if further information is needed to assist in resolving this issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions