dspy
dspy copied to clipboard
fix: AttributeError: 'str' object has no attribute 'long_text'
.venv/lib/python3.11/site-packages/dsp/primitives/search.py", line 17, in <listcomp>
passages = [psg.long_text for psg in passages]
^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'long_text'
Hi @rysloan4 , there was a similar change in a past PR to correct this, but this is a bit hacky and would require this change for every support RM. merging will have to wait for now until there is a stronger way to handle this.
got it