Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

import error ContextualCompressionRetriever #37

Open
mikelval82 opened this issue Apr 26, 2023 · 0 comments
Open

import error ContextualCompressionRetriever #37

mikelval82 opened this issue Apr 26, 2023 · 0 comments

Comments

@mikelval82
Copy link

Hi,

I have installed langchain-0.0.149 using pip. When trying to run the folloging code I get an import error.

from langchain.retrievers import ContextualCompressionRetriever

Traceback (most recent call last):
File ".../lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3460, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
from langchain.retrievers import ContextualCompressionRetriever
ImportError: cannot import name 'ContextualCompressionRetriever' from 'langchain.retrievers' (.../lib/python3.10/site-packages/langchain/retrievers/init.py)

Thanks in advance,
Mikel.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant