dspy icon indicating copy to clipboard operation
dspy copied to clipboard

[Bug] Unable to import deduplicate from dsp.utils

Open paul028 opened this issue 9 months ago • 1 comments

What happened?

ImportError: cannot import name 'deduplicate' from 'dspy.utils' (/Users/paul.nonat/.pyenv/versions/3.11.5/lib/python3.11/site-packages/dspy/utils/init.py)

Steps to reproduce

dspy==2.6.11

DSPy version

2.6.11

paul028 avatar Mar 12 '25 08:03 paul028

@paul028 Thanks for reporting the issue! I don't remember we ever support this import, where did you get the code?

It's not a function intended for public usage, but you can import it as from dspy.dsp.utils import deduplicate

chenmoneygithub avatar Mar 12 '25 20:03 chenmoneygithub

@paul028 Thanks for reporting the issue! I don't remember we ever support this import, where did you get the code?

It's not a function intended for public usage, but you can import it as from dspy.dsp.utils import deduplicate

Thanks it worked!

Raja-pc123 avatar Nov 08 '25 08:11 Raja-pc123