chroma-core / chroma

the AI-native open-source embedding database
https://www.trychroma.com/
Apache License 2.0
14.56k stars 1.21k forks source link

[Bug]: chromadb releases 1.5.7 and 1.5.8 add dependency that breaks langchain install #1104

Open nipunn1313 opened 1 year ago

nipunn1313 commented 1 year ago

What happened?

Check out https://github.com/langchain-ai/langchain/issues/10274 for details.

Repro

mkdir testproject && cd testproject && npm init -y && npm add langchain
npm add langchain
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: testproject@1.0.0
npm ERR! Found: cohere-ai@6.2.2
npm ERR! node_modules/cohere-ai
npm ERR!   peerOptional cohere-ai@"^6.0.0" from chromadb@1.5.8
npm ERR!   node_modules/chromadb
npm ERR!     chromadb@"^1.5.6" from the root project
npm ERR!     peerOptional chromadb@"^1.5.3" from langchain@0.0.144
npm ERR!     node_modules/langchain
npm ERR!       langchain@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional cohere-ai@"^5.0.2" from langchain@0.0.144
npm ERR! node_modules/langchain
npm ERR!   langchain@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Versions

chroma 1.5.7 and 1.5.8 (released today)

Relevant log output

No response

elvisun commented 1 year ago

+1

npm ERR! While resolving: @application/source@0.0.0
npm ERR! Found: cohere-ai@6.2.2
npm ERR! node_modules/cohere-ai
npm ERR!   peerOptional cohere-ai@"^6.0.0" from chromadb@1.5.8
npm ERR!   node_modules/chromadb
npm ERR!     peerOptional chromadb@"^1.5.3" from langchain@0.0.124
npm ERR!     node_modules/langchain
npm ERR!       langchain@"0.0.124" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional cohere-ai@"^5.0.2" from langchain@0.0.124
npm ERR! node_modules/langchain
npm ERR!   langchain@"0.0.124" from the root project
npm ERR! 

My solution was to pin a version of chromadb:

    "chromadb": "1.5.3",
jeffchuber commented 1 year ago

sorry about this everyone - will try to fix this up tonight

dreamstony commented 1 year ago

Waiting for repair, make a mark