-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Closed as not planned
Description
Checked other resources
- This is a bug, not a usage question.
- I added a clear and descriptive title that summarizes this issue.
- I used the GitHub search to find a similar question and didn't find it.
- I am sure that this is a bug in LangChain rather than my code.
- The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
- This is not related to the langchain-community package.
- I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
- I posted a self-contained, minimal, reproducible example. A maintainer can copy it and run it AS IS.
Example Code
from langchain.retrievers.contextual_compression import ContextualCompressionRetriever
from langchain_core.retrievers.contextual_compression import ContextualCompressionRetrieverError Message and Stack Trace (if applicable)
ModuleNotFoundError: No module named 'langchain.retrievers'
ModuleNotFoundError: No module named 'langchain_core.retrievers.contextual_compression'; 'langchain_core.retrievers' is not a package
Description
As per the v1.0 alpha doc Link, I can't find the ContextualCompressionRetriever in langchain and langchain_core.
System Info
System Information
OS: Windows
OS Version: 10.0.26100
Python Version: 3.12.11 (main, Jun 12 2025, 12:44:17) [MSC v.1943 64 bit (AMD64)]
Package Information
langchain_core: 1.0.0a6
langchain: 1.0.0a10
langchain_community: 0.3.30
langsmith: 0.4.32
langchain_mongodb: 0.7.0
langchain_ollama: 1.0.0a1
langchain_openai: 1.0.0a3
langchain_qdrant: 1.0.0a1
langchain_text_splitters: 1.0.0a1
langgraph_sdk: 0.2.9
Metadata
Metadata
Assignees
Labels
No labels