stanfordnlp / dspy

DSPy: The framework for programming—not prompting—foundation models
https://dspy-docs.vercel.app/
MIT License
18.22k stars 1.39k forks source link

ModuleNotFoundError: No module named 'dspy.predict.llamaindex' #1359

Closed simplexityware closed 1 month ago

simplexityware commented 2 months ago

ModuleNotFoundError Traceback (most recent call last) in <cell line: 2>() 1 from llama_index.core.query_pipeline import QueryPipeline as QP, InputComponent, FnComponent ----> 2 from dspy.predict.llamaindex import DSPyComponent, LlamaIndexModule 3 4 dspy_component = DSPyComponent( 5 dspy.ChainOfThought(GenerateAnswer)

ModuleNotFoundError: No module named 'dspy.predict.llamaindex'

arnavsinghvi11 commented 2 months ago

Hi @simplexityware , this import works for me, but there's a related issue with DSPyComponent