dspy icon indicating copy to clipboard operation
dspy copied to clipboard

fix: AttributeError: 'str' object has no attribute 'long_text'

Open rysloan4 opened this issue 4 months ago • 1 comments

.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'

rysloan4 avatar Apr 24 '24 14:04 rysloan4

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.

arnavsinghvi11 avatar Apr 28 '24 00:04 arnavsinghvi11

got it

rysloan4 avatar Apr 29 '24 13:04 rysloan4