dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Problem Importing Ensemble from teleprompt

Open yasho191 opened this issue 1 year ago • 2 comments
trafficstars

I'm encountering an issue when importing the Ensemble class from dspy.teleprompt. Upon inspecting the source code, I noticed that the __init__.py file inside the teleprompt folder does not include the import statement for the Ensemble class. This seems like a simple fix.

Screenshot 2024-03-02 at 5 17 47 PM

yasho191 avatar Mar 03 '24 01:03 yasho191

As a temporary fix, from dspy.teleprompt.ensemble import Ensemble should work. Creating #542 to resolve

isaacbmiller avatar Mar 04 '24 05:03 isaacbmiller

Thanks @isaacbmiller. I am using this workaround for now.

yasho191 avatar Mar 04 '24 09:03 yasho191