Skip to content

Commit 28e102f

Browse files
committed
updated cell outputs after refactor
1 parent bbe89e6 commit 28e102f

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

examples/Context_summarization_with_realtime_api.ipynb

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
{
6060
"cell_type": "code",
61-
"execution_count": 1,
61+
"execution_count": 51,
6262
"metadata": {},
6363
"outputs": [],
6464
"source": [
@@ -89,7 +89,7 @@
8989
},
9090
{
9191
"cell_type": "code",
92-
"execution_count": 2,
92+
"execution_count": 52,
9393
"metadata": {},
9494
"outputs": [],
9595
"source": [
@@ -154,7 +154,7 @@
154154
},
155155
{
156156
"cell_type": "code",
157-
"execution_count": 3,
157+
"execution_count": 53,
158158
"metadata": {},
159159
"outputs": [],
160160
"source": [
@@ -185,7 +185,7 @@
185185
},
186186
{
187187
"cell_type": "code",
188-
"execution_count": 4,
188+
"execution_count": 54,
189189
"metadata": {},
190190
"outputs": [],
191191
"source": [
@@ -222,15 +222,15 @@
222222
},
223223
{
224224
"cell_type": "code",
225-
"execution_count": 20,
225+
"execution_count": 67,
226226
"metadata": {},
227227
"outputs": [
228228
{
229229
"name": "stdout",
230230
"output_type": "stream",
231231
"text": [
232232
"📄 Text prompt tokens : 42\n",
233-
"🔊 Audio length (s) : 10.75\n"
233+
"🔊 Audio length (s) : 11.55\n"
234234
]
235235
}
236236
],
@@ -285,15 +285,15 @@
285285
},
286286
{
287287
"cell_type": "code",
288-
"execution_count": 21,
288+
"execution_count": 73,
289289
"metadata": {},
290290
"outputs": [
291291
{
292292
"name": "stdout",
293293
"output_type": "stream",
294294
"text": [
295-
"🎤 Audio input tokens : 105\n",
296-
"⚖️ Audio/Text ratio : 2.5×\n",
295+
"🎤 Audio input tokens : 112\n",
296+
"⚖️ Audio/Text ratio : 2.7×\n",
297297
"\n",
298298
"≈9 audio‑tokens / sec vs ≈1 token / word.\n"
299299
]
@@ -374,7 +374,7 @@
374374
},
375375
{
376376
"cell_type": "code",
377-
"execution_count": 35,
377+
"execution_count": 74,
378378
"metadata": {},
379379
"outputs": [],
380380
"source": [
@@ -426,7 +426,7 @@
426426
},
427427
{
428428
"cell_type": "code",
429-
"execution_count": 36,
429+
"execution_count": 75,
430430
"metadata": {},
431431
"outputs": [],
432432
"source": [
@@ -490,7 +490,7 @@
490490
},
491491
{
492492
"cell_type": "code",
493-
"execution_count": 37,
493+
"execution_count": 76,
494494
"metadata": {},
495495
"outputs": [],
496496
"source": [
@@ -511,7 +511,7 @@
511511
},
512512
{
513513
"cell_type": "code",
514-
"execution_count": 38,
514+
"execution_count": 77,
515515
"metadata": {},
516516
"outputs": [],
517517
"source": [
@@ -569,7 +569,7 @@
569569
},
570570
{
571571
"cell_type": "code",
572-
"execution_count": 44,
572+
"execution_count": 78,
573573
"metadata": {},
574574
"outputs": [],
575575
"source": [
@@ -619,7 +619,7 @@
619619
},
620620
{
621621
"cell_type": "code",
622-
"execution_count": 48,
622+
"execution_count": 79,
623623
"metadata": {},
624624
"outputs": [],
625625
"source": [
@@ -634,7 +634,7 @@
634634
},
635635
{
636636
"cell_type": "code",
637-
"execution_count": 49,
637+
"execution_count": 81,
638638
"metadata": {},
639639
"outputs": [],
640640
"source": [
@@ -865,7 +865,6 @@
865865
"| **A/B test summarisation**<br/>Run your eval suite with summarisation *on* vs *off*. | Whether trimming actually improves quality for your domain—and how it affects latency & cost. |\n",
866866
"| **Swap summary styles**<br/>Change the system prompt to bullet points, JSON, English vs French, etc. | Which format the downstream assistant absorbs best; how language choice influences follow‑up answers. |\n",
867867
"| **Vary thresholds**<br/>Play with `SUMMARY_TRIGGER_TOKENS` (2 k → 8 k). | The sweet spot between model drift and summarisation overhead. |\n",
868-
"| **Batch‑summary mode**<br/>Instead of every 4 000 tokens, summarise every *N* minutes. | Whether time‑based trimming feels more natural in certain UX flows. |\n",
869868
"| **Cost tracing**<br/>Log `usage.total_tokens` before/after summarisation. | Concrete ROI: token savings per hour of conversation. |\n",
870869
"\n",
871870
"\n",

0 commit comments

Comments
 (0)