You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import dspy
from dspy.retrieve.pgvector_rm import PgVectorRM
causes this error message when executing:
File "/lib/python3.11/site-packages/dspy/retrieve/pgvector_rm.py", line 7, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/c/Ubuntu/postgres.py", line 2, in <module>
from dspy.retrieve.pgvector_rm import PgVectorRM
File "/lib/python3.11/site-packages/dspy/retrieve/pgvector_rm.py", line 11, in <module>
raise ImportError(
ImportError: The 'pgvector' extra is required to use PgVectorRM. Install it with pip install dspy-ai[pgvector]
Pip install fails both for dspy and dspy-ai:
pip install dspy-ai[pgvector]
Requirement already satisfied: dspy-ai[pgvector] in /home/wsl/micromamba/envs/GenQA/lib/python3.11/site-packages (2.5.3)
WARNING: dspy-ai 2.5.3 does not provide the extra 'pgvector'
pip install dspy[pgvector]
Requirement already satisfied: dspy[pgvector] in /home/wsl/micromamba/envs/GenQA/lib/python3.11/site-packages (2.5.6)
WARNING: dspy 2.5.6 does not provide the extra 'pgvector'
The text was updated successfully, but these errors were encountered:
causes this error message when executing:
Pip install fails both for dspy and dspy-ai:
The text was updated successfully, but these errors were encountered: