llm-tools / embedJs

A NodeJS RAG framework to easily work with LLMs and embeddings
https://llm-tools.mintlify.app/get-started/introduction
Apache License 2.0
334 stars 40 forks source link

Dependency issue when attempting to use vectordb (LanceDB) #101

Closed lucastimmons closed 3 months ago

lucastimmons commented 3 months ago

After running npm i @llm-tools/embedjs and then trying to run npm install vectordb I get this error:

code ERESOLVE ERESOLVE could not resolve

While resolving: @llm-tools/embedjs@0.0.94 Found: vectordb@0.9.0 node_modules/vectordb vectordb@"*" from the root project

Could not resolve dependency: peerOptional vectordb@"^0.8.0" from @llm-tools/embedjs@0.0.94 node_modules/@llm-tools/embedjs @llm-tools/embedjs@"^0.0.94" from the root project

Conflicting peer dependency: vectordb@0.8.0 node_modules/vectordb peerOptional vectordb@"^0.8.0" from @llm-tools/embedjs@0.0.94 node_modules/@llm-tools/embedjs @llm-tools/embedjs@"^0.0.94" from the root project

Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.

adhityan-kv-shift commented 3 months ago

The library (on version 0.0.94) required vectordb version 0.0.8 and you are installing vectordb version 0.0.9 and hence the error. The new version of the library 0.0.95 requires and works with vectordb version 0.0.9.

So you have two options -

  1. Use library version 0.0.94 with vectordb version 0.0.8
  2. Use library version 0.0.95 with vectordb version 0.0.9