Find answers from the community

Updated 6 months ago

Outputs

At a glance

The community member is asking if the Llama Index is capable of handling the OpenAI update with structured output, as mentioned in the provided link. Another community member responds with a code snippet suggesting that the Llama Index can be updated to work with the OpenAI structured output feature by installing the llama-index-llms-openaillm package and configuring the OpenAI client with the strict=True parameter.

Useful resources
So is llama index capable of handling open ai update with structured output? https://openai.com/index/introducing-structured-outputs-in-the-api/
L
c
2 comments
Yea

pip install -U llama-index-llms-openai

llm = OpenAI(..., strict=True)
Hot damn, thanks @Logan M !
Add a reply
Sign up and join the conversation on Discord