Find answers from the community

Updated last year

Structured Output

At a glance

The post asks if it is possible to only output JSON from the Index. The first comment suggests that the community member can use the Structured output documentation to output the query_engine response in JSON format. The second comment asks if this can be used with VecstoreIndex, and the third comment confirms that yes, it can be used with VecstoreIndex as well.

Useful resources
Hello, can I only output JSON from Index?
W
o
3 comments
Hey! I'm assuming you want your query_engine response in JSON format only. You can take a look at Structured output documentation here for the same: https://gpt-index.readthedocs.io/en/latest/core_modules/query_modules/structured_outputs/root.html
can I use that with VecstoreIndex?
Add a reply
Sign up and join the conversation on Discord