Find answers from the community

Updated 4 months ago

Does llamaindex support structured

Does llamaindex support structured outputs with OpenAI (was released 8/6) or have any plans to?
L
m
2 comments
its supported πŸ‘

https://docs.llamaindex.ai/en/stable/examples/llm/openai/#structured-prediction

The specific thing they introduced was the forced part.

Plain Text
llm = OpenAI(...., strict=True)


I've noticed that this doesn't always work perfectly with every schema though, seems to raise errors for very nested output classes
Oh awesome! Thank you
Add a reply
Sign up and join the conversation on Discord