Unverified Commit bdd2827a authored by Lianmin Zheng's avatar Lianmin Zheng Committed by GitHub
Browse files

Update structured_outputs.ipynb (#2666)

parent 8c3b420e
...@@ -4,14 +4,13 @@ ...@@ -4,14 +4,13 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"# Constrained Decoding" "# Structured Outputs (JSON, Regex, EBNF)"
] ]
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## Structured Outputs (JSON, Regex, EBNF)\n",
"You can specify a JSON schema, [regular expression](https://en.wikipedia.org/wiki/Regular_expression) or [EBNF](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) to constrain the model output. The model output will be guaranteed to follow the given constraints. Only one constraint parameter (`json_schema`, `regex`, or `ebnf`) can be specified for a request.\n", "You can specify a JSON schema, [regular expression](https://en.wikipedia.org/wiki/Regular_expression) or [EBNF](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) to constrain the model output. The model output will be guaranteed to follow the given constraints. Only one constraint parameter (`json_schema`, `regex`, or `ebnf`) can be specified for a request.\n",
"\n", "\n",
"SGLang supports two grammar backends:\n", "SGLang supports two grammar backends:\n",
......
...@@ -28,8 +28,8 @@ The core features include: ...@@ -28,8 +28,8 @@ The core features include:
backend/openai_api_embeddings.ipynb backend/openai_api_embeddings.ipynb
backend/native_api.ipynb backend/native_api.ipynb
backend/offline_engine_api.ipynb backend/offline_engine_api.ipynb
backend/structured_outputs.ipynb
backend/backend.md backend/backend.md
backend/constrained_decoding.ipynb
.. toctree:: .. toctree::
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment