Before you start
- Make sure you have access to your Workspace.
- You can either use documents that already exist in your File Library or upload new ones.
(PDF, DOCX, TXT, HTML, or Markdown).
How to Use Structured RAG in AI21 Studio
Show Content

Show Content





Show Content

Show Content

Show Content
.png?fit=max&auto=format&n=8WEteHv7aTOfZ7fY&q=85&s=a2430662a443d05426e5264f87c3d95a)

Show Content

Show Content
YYYY-MM-DD) in the schema and source docs, then re-create the schema.Show Content
["low", "medium", "high"]).➤ You must define at least one value. This is a mandatory constraint.bool: A true/false value.➤ No constraint is needed, just indicate the type. Use for clear yes/no distinctions.datetime: A specific date.➤ You can optionally define a date range (e.g., from 2025-01-01 to 2025-12-31).string: Any text value.➤ You can optionally define a regex pattern to restrict the format (e.g., for emails or IDs).Was this page helpful?