stanfordnlp / dspy

DSPy: The framework for programming—not prompting—foundation models
https://dspy.ai
MIT License
18.76k stars 1.44k forks source link

Failed to install with optional extra such as dspy-ai[pinecone] #218

Closed kayue closed 1 year ago

kayue commented 1 year ago

I encountered an issue where the installation process returned an error and did not install the optional extra. This issue was consistent across two different environments, including Google Colab and Hex.tech and my local terminal.

The specific error message I received when I !pip install dspy-ai[pinecone] is as follows:

WARNING: dspy-ai 2.0.4 does not provide the extra 'pinecone'

I tried to install from source but still encounter other error related to dsp.utils import.

I would greatly appreciate any guidance or assistance you can provide to resolve this issue. Thank you in advance for your time.

okhat commented 1 year ago

Yeah we haven’t pushed the latest integrations to pypi (pip) yet

okhat commented 1 year ago

You can install with pip from github main though

kayue commented 1 year ago

@okhat Thank you, confirmed that !pip install git+https://github.com/stanfordnlp/dspy.git works.

I noticed ChromadbRM contain a type error chromadb.Collection type does not exist. I might submit a PR later after confirming everything is working.

Cheers!