Find answers from the community

Updated 9 months ago

Pydantic Extractor Allow Multiple - .dict() error

Hi, I'm trying the Pydantic Extractor example, when I set the allow_multiple=True, I got the below error::

site-packages\llama_index\core\extractors\metadata_extractors.py
", line 484, in _acall_program
return ret_object.dict()
^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'dict'
y
L
6 comments
Please advise thanks.
is it true that when allow_multiple is set to true, llamaIndex will try to break down the prompt into multiple sub-queries. each trying to extract one pydantic model and then later combine everything into a list?
Thats not what it does πŸ˜…
It just means to allow multiple tool calls
from a single LLM response. Sometimes openai will give multiple
Add a reply
Sign up and join the conversation on Discord