StructuredRAG: JSON Response Formatting with Large Language Models
arxiv.org
arxiv.org
For practitioners, using a framework like Guidance which forces the models to write valid JSON as they generate text solves this trivially (https://github.com/guidance-ai/guidance)
For json in particular these frameworks have functions that take in json schemas or pydantic schemas https://guidance.readthedocs.io/en/latest/generated/guidance...
1. https://openai.com/index/introducing-structured-outputs-in-t... 2. https://github.com/amoffat/manifest
For most of my prompts I want CoT.