Sefaria Labs
Loading…
All Projects

Image generated by OpenAI gpt-image-1

EngineeringIn Progress
Vote:+1

Structured Source Outputs

Owner: Josh

Return LLM answers with embedded source datat objects to be rendered by the client.


Goal

Deliver answers with a structured sources[] payload (ref, title, url, span).

Scope

  • Canonicalize Sefaria refs
  • Provide offsets for highlighting
  • Validate response schema at the API boundary