llama_index icon indicating copy to clipboard operation
llama_index copied to clipboard

[Feature Request]: Update DSPy integration

Open tituslhy opened this issue 7 months ago • 0 comments

Feature Description

DSPy's update to 2.4.12 causes the LlamaIndex integration to break. The biggest change in 2.4.12 is that ChainOfThought is now taken to be a module. The DSPyComponent class (from dspy.predict.llamaindex import DSPyComponent) therefore breaks pydantic now expects a different type of input.

Reason

LlamaIndex has already supported DSPy integration and I'm very grateful. I hope that LlamaIndex will continue to support DSPy integration!

Value of Feature

Prompt optimization is valuable in improving the performance of RAG and LLM systems. This was also raised as an issue under the DSPy repo: https://github.com/stanfordnlp/dspy/issues/1300#issuecomment-2241464882

tituslhy avatar Jul 22 '24 23:07 tituslhy