Find answers from the community

Updated 8 months ago

Tool

Hi, just tested a tool that returns JSON and bumped into this exception:
Can you please look at it? Maybe I should handle JSON returns in a specific way? Thanks!
LlamaIndex 0.10.28
Attachment
image.png
L
S
5 comments
If I had to guess, your tool did not expect to have a string input, and this error got raised
The tool worked and returned the value as normal, this exception was raised somewhere after.
Tomorrow, I will try to dig deeper to see where exactly this exception is thrown.
Hi, I think I found the bug! Here:
In my case, the documents were JSON, this is why the Documents were created from string (created from JSON). But instead "docs" it created a "doc" therefore the "docs" variable remains untouched and goes further as JSON.
Attachment
image.png
Oh interesting, that would definitely do it. Sneaky bug
Add a reply
Sign up and join the conversation on Discord