Use LLamaindex's structured Output feature: https://docs.llamaindex.ai/en/stable/module_guides/querying/structured_outputs/structured_outputs.html