-
Notifications
You must be signed in to change notification settings - Fork 21k
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 posted a self-contained, minimal, reproducible example. A maintainer can copy it and run it AS IS.
Package (Required)
- langchain
- langchain-openai
- langchain-anthropic
- langchain-classic
- langchain-core
- langchain-model-profiles
- langchain-tests
- langchain-text-splitters
- langchain-chroma
- langchain-deepseek
- langchain-exa
- langchain-fireworks
- langchain-groq
- langchain-huggingface
- langchain-mistralai
- langchain-nomic
- langchain-ollama
- langchain-openrouter
- langchain-perplexity
- langchain-qdrant
- langchain-xai
- Other / not sure / general
Related Issues / PRs
No response
Reproduction Steps / Example Code (Python)
# Install the dependency "pip install -U ragatouille"
# And try:
from ragatouille import RAGPretrainedModel
RAG = RAGPretrainedModel.from_pretrained("colbert-ir/colbertv2.0")Error Message and Stack Trace (if applicable)
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[20], line 1
----> 1 from ragatouille import RAGPretrainedModel
3 RAG = RAGPretrainedModel.from_pretrained("colbert-ir/colbertv2.0")
File ~/Desktop/learning/learning-RAG/venv/lib/python3.11/site-packages/ragatouille/__init__.py:21
14 warnings.warn(
15 _FUTURE_MIGRATION_WARNING_MESSAGE,
16 UserWarning,
17 stacklevel=2 # Ensures the warning points to the user's import line
18 )
20 __version__ = "0.0.9post2"
---> 21 from .RAGPretrainedModel import RAGPretrainedModel
22 from .RAGTrainer import RAGTrainer
24 __all__ = ["RAGPretrainedModel", "RAGTrainer"]
File ~/Desktop/learning/learning-RAG/venv/lib/python3.11/site-packages/ragatouille/RAGPretrainedModel.py:5
2 from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, TypeVar, Union
3 from uuid import uuid4
----> 5 from langchain.retrievers.document_compressors.base import BaseDocumentCompressor
6 from langchain_core.retrievers import BaseRetriever
8 from ragatouille.data.corpus_processor import CorpusProcessor
ModuleNotFoundError: No module named 'langchain.retrievers'Description
Checking on this notice from Ragatouille repo. The maintenance of Ragatouille was moved to pylate backend. This causes a crash when one wants to integrate ColBERT into their RAG pipeline.
An improvement for ColBERT integration is needed, and the documentation for pylate retrieval can serve as a guide.
Thank you
System Info
System Information
OS: Darwin
OS Version: Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:55 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T8103
Python Version: 3.11.9 (v3.11.9:de54cf5be3, Apr 2 2024, 07:12:50) [Clang 13.0.0 (clang-1300.0.29.30)]
Package Information
langchain_core: 1.2.9
langchain: 1.2.9
langchain_community: 0.4.1
langsmith: 0.6.9
langchain_chroma: 1.1.0
langchain_classic: 1.0.1
langchain_deepseek: 1.0.1
langchain_ollama: 1.0.1
langchain_openai: 1.1.8
langchain_text_splitters: 1.1.0
langchainhub: 0.1.21
langgraph_sdk: 0.3.4
Optional packages not installed
langserve
Other Dependencies
aiohttp: 3.13.3
chromadb: 1.4.1
dataclasses-json: 0.6.7
httpx: 0.28.1
httpx-sse: 0.4.3
jsonpatch: 1.33
langgraph: 1.0.8
numpy: 2.3.5
ollama: 0.6.1
openai: 2.17.0
opentelemetry-api: 1.39.1
opentelemetry-sdk: 1.39.1
orjson: 3.11.7
packaging: 24.2
pydantic: 2.12.5
pydantic-settings: 2.12.0
pyyaml: 6.0.3
PyYAML: 6.0.3
requests: 2.32.5
requests-toolbelt: 1.0.0
rich: 14.3.2
SQLAlchemy: 2.0.46
sqlalchemy: 2.0.46
tenacity: 9.1.4
tiktoken: 0.12.0
types-requests: 2.32.4.20260107
typing-extensions: 4.15.0
uuid-utils: 0.14.0
xxhash: 3.6.0
zstandard: 0.25.0