Description
Checked other resources
- I added a very descriptive title to this issue.
- I searched the LangChain documentation with the integrated search.
- 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).
Example Code
def retriever_tool():
"""
Consult the company policies to check whether certain options are permitted.
"""
vectorstore = Chroma(
embedding_function=AzureOpenAIEmbeddings(deployment=os.environ["EMBEDDING_DEPLOYMENT_NAME"], chunk_size=1),
collection_name="local-rag",
persist_directory=os.environ["DATA_STORAGE"],
client_settings=Settings(anonymized_telemetry=False, is_persistent=True),
)
retriever = vectorstore.as_retriever(search_type="similarity", search_kwargs={"k": 3})
return create_retriever_tool(
retriever,
"docs_retriever",
"Get information about pcfc roles and responsibilities policy and regulations",
)
Error Message and Stack Trace (if applicable)
No response
Description
The current version of langchain-chroma (0.2.2) specifies a dependency on numpy>=1.26.2,<2.0.0. This constraint conflicts with other packages that require numpy>=2.0.0 or higher, causing version resolution failures in projects that depend on both. For example, a project using langchain-chroma (>=0.2.2,<0.3.0) alongside another package needing a newer numpy version cannot resolve dependencies. Could the upper bound on numpy be relaxed to >=2.0.2 in a future release to improve compatibility?
System Info
System Information
OS: Darwin
OS Version: Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000
Python Version: 3.12.9 (main, Feb 4 2025, 14:38:38) [Clang 16.0.0 (clang-1600.0.26.6)]
Package Information
langchain_core: 0.3.49
langchain: 0.3.21
langchain_community: 0.3.20
langsmith: 0.3.19
langchain_chroma: 0.2.2
langchain_experimental: 0.3.4
langchain_google_community: 2.0.7
langchain_openai: 0.3.11
langchain_text_splitters: 0.3.7
langchainhub: 0.1.21
langgraph_sdk: 0.1.60
Optional packages not installed
langserve