Skip to content

Commit 1f6e8eb

Browse files
Msingh emre gpt 5.2 (#2288)
minor updates
1 parent b769062 commit 1f6e8eb

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

examples/gpt-5/gpt-5-2_prompting_guide.ipynb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"source": [
88
"# GPT-5.2 Prompting Guide\n",
99
"\n",
10-
"### 1. Introduction\n",
10+
"## 1. Introduction\n",
1111
"\n",
1212
"GPT-5.2 is our newest flagship model for enterprise and agentic workloads, designed to deliver higher accuracy, stronger instruction following, and more disciplined execution across complex workflows. Building on GPT-5.1, GPT-5.2 improves token efficiency on medium-to-complex tasks, produces cleaner formatting with less unnecessary verbosity, and shows clear gains in structured reasoning, tool grounding, and multimodal understanding.\n",
1313
"\n",
@@ -21,7 +21,7 @@
2121
"id": "4023c2a4",
2222
"metadata": {},
2323
"source": [
24-
"### 2. Key behavioral differences \n",
24+
"## 2. Key behavioral differences \n",
2525
"\n",
2626
"**Compared with previous generation models (e.g. GPT-5 and GPT-5.1), GPT-5.2 delivers:**\n",
2727
"\n",
@@ -45,11 +45,11 @@
4545
"id": "e2d4ba92",
4646
"metadata": {},
4747
"source": [
48-
"### 3. Prompting patterns \n",
48+
"## 3. Prompting patterns \n",
4949
"\n",
5050
"Adapt following themes into your prompts for better steer on GPT-5.2\n",
5151
"\n",
52-
"#### 3.1 Controlling verbosity and output shape\n",
52+
"### 3.1 Controlling verbosity and output shape\n",
5353
"\n",
5454
"Give **clear and concrete length constraints** especially in enterprise and coding agents. \n",
5555
"\n",
@@ -74,7 +74,7 @@
7474
"id": "3ccfe408",
7575
"metadata": {},
7676
"source": [
77-
"#### 3.2 Preventing Scope drift (e.g., UX / design in frontend tasks) \n",
77+
"### 3.2 Preventing Scope drift (e.g., UX / design in frontend tasks) \n",
7878
"\n",
7979
"GPT-5.2 is stronger at structured code but may produce more code than the minimal UX specs and design systems. To stay within the scope, explicitly forbid extra features and uncontrolled styling. \n",
8080
"\n",
@@ -97,7 +97,7 @@
9797
"id": "ea6b2164",
9898
"metadata": {},
9999
"source": [
100-
"#### 3.3 Long-context and recall \n",
100+
"### 3.3 Long-context and recall \n",
101101
"\n",
102102
"For long-context tasks, the prompt may benefit from **force summarization and re-grounding**. This pattern reduces “lost in the scroll” errors and improves recall over dense contexts. \n",
103103
"\n",
@@ -117,7 +117,7 @@
117117
"id": "9fe53c96",
118118
"metadata": {},
119119
"source": [
120-
"#### 3.4 Handling ambiguity & hallucination risk\n",
120+
"### 3.4 Handling ambiguity & hallucination risk\n",
121121
"\n",
122122
"Configure the prompt for overconfident hallucinations on ambiguous queries (e.g., unclear requirements, missing constraints, or questions that need fresh data but no tools are called). \n",
123123
"\n",
@@ -154,7 +154,7 @@
154154
"id": "79bd0a69",
155155
"metadata": {},
156156
"source": [
157-
"### 4. Compaction (Extending Effective Context)\n",
157+
"## 4. Compaction (Extending Effective Context)\n",
158158
"\n",
159159
"For long-running, tool-heavy workflows that exceed the standard context window, GPT-5.2 with Reasoning supports response compaction via the /responses/compact endpoint. Compaction performs a loss-aware compression pass over prior conversation state, returning encrypted, opaque items that preserve task-relevant information while dramatically reducing token footprint. This allows the model to continue reasoning across extended workflows without hitting context limits.\n",
160160
"\n",
@@ -248,7 +248,7 @@
248248
"id": "c0266672",
249249
"metadata": {},
250250
"source": [
251-
"### 5. Agentic steerability & user updates \n",
251+
"## 5. Agentic steerability & user updates \n",
252252
"\n",
253253
"GPT-5.2 is strong on agentic scaffolding and multi-step execution when prompted well. You can reuse your GPT-5.1 <user_updates_spec> and <solution_persistence> blocks. \n",
254254
"\n",
@@ -275,7 +275,7 @@
275275
"id": "2d6e012e",
276276
"metadata": {},
277277
"source": [
278-
"### 6. Tool-calling and parallelism\n",
278+
"## 6. Tool-calling and parallelism\n",
279279
"\n",
280280
"GPT-5.2 improves on 5.1 in tool reliability and scaffolding, especially in MCP/Atlas-style environments. \n",
281281
"Best practices as applicable to GPT-5 / 5.1: \n",
@@ -304,7 +304,7 @@
304304
"id": "cf1e3959",
305305
"metadata": {},
306306
"source": [
307-
"### 7. Structured extraction, PDF, and Office workflows\n",
307+
"## 7. Structured extraction, PDF, and Office workflows\n",
308308
"\n",
309309
"This is an area where GPT-5.2 clearly shows strong improvements. To get the most out of it:\n",
310310
"\n",
@@ -339,7 +339,7 @@
339339
"id": "83d5d135",
340340
"metadata": {},
341341
"source": [
342-
"### 8. Prompt Migration Guide to GPT 5.2 \n",
342+
"## 8. Prompt Migration Guide to GPT 5.2 \n",
343343
"\n",
344344
"This section helps you migrate prompts and model configs to GPT-5.2 while keeping behavior stable and cost/latency predictable. GPT-5-class models support a reasoning_effort knob (e.g., none|minimal|low|medium|high|xhigh) that trades off speed/cost vs. deeper reasoning. \n",
345345
"\n",
@@ -375,7 +375,7 @@
375375
"id": "61375ad3",
376376
"metadata": {},
377377
"source": [
378-
"### 9. Web search and research\n",
378+
"## 9. Web search and research\n",
379379
"\n",
380380
"GPT-5.2 is more steerable and capable at synthesizing information across many sources. \n",
381381
"\n",
@@ -442,7 +442,7 @@
442442
"id": "bb16d1b9",
443443
"metadata": {},
444444
"source": [
445-
"### 10. Conclusion \n",
445+
"## 10. Conclusion \n",
446446
"\n",
447447
"GPT-5.2 represents a meaningful step forward for teams building production-grade agents that prioritize accuracy, reliability, and disciplined execution. It delivers stronger instruction following, cleaner output, and more consistent behavior across complex, tool-heavy workflows. Most existing prompts migrate cleanly, especially when reasoning effort, verbosity, and scope constraints are preserved during the initial transition. Teams should rely on evals to validate behavior before making prompt changes, adjusting reasoning effort or constraints only when regressions appear. With explicit prompting and measured iteration, GPT-5.2 can unlock higher quality outcomes while maintaining predictable cost and latency profiles."
448448
]

registry.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,6 +2698,6 @@
26982698
date: 2025-12-11
26992699
authors:
27002700
- msingh-openai
2701-
- emre-openai
2701+
- emreokcular
27022702
tags:
2703-
- gpt-5.2
2703+
- gpt-5.2

0 commit comments

Comments
 (0)