8000 Fix: Replace U+201C(“) and U+201D(”) with U+0022(") in XML and JSON (… · jk-codertech/openai-cookbook@bd2b08e · GitHub
[go: up one dir, main page]

Skip to content

Commit bd2b08e

Browse files
authored
Fix: Replace U+201C(“) and U+201D(”) with U+0022(") in XML and JSON (openai#1774)
1 parent 0a2c853 commit bd2b08e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/gpt4-1_prompting_guide.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,11 +577,11 @@
577577
"Guidance specifically for adding a large number of documents or files to input context:\n",
578578
"\n",
579579
"* XML performed well in our long context testing. \n",
580 79D4 -
" * Example: `<doc id=1 title=The Fox>The quick brown fox jumps over the lazy dog</doc>` \n",
580+
" * Example: `<doc id="1" title="The Fox">The quick brown fox jumps over the lazy dog</doc>` \n",
581581
"* This format, proposed by Lee et al. ([ref](https://arxiv.org/pdf/2406.13121)), also performed well in our long context testing. \n",
582582
" * Example: `ID: 1 | TITLE: The Fox | CONTENT: The quick brown fox jumps over the lazy dog` \n",
583-
"* JSON performed particularly poorly.\n",
584-
" * Example: `[{“id”: 1, title”: “The Fox”, “content”: “The quick brown fox jumped over the lazy dog}]`\n",
583+
"* JSON performed particularly poorly. \n",
584+
" * Example: `[{"id": 1, "title": "The Fox", "content": "The quick brown fox jumped over the lazy dog"}]`\n",
585585
"\n",
586586
"The model is trained to robustly understand structure in a variety of formats. Generally, use your judgement and think about what will provide clear information and “stand out” to the model. For example, if you’re retrieving documents that contain lots of XML, an XML-based delimiter will likely be less effective. \n",
587587
"\n",

0 commit comments

Comments
 (0)
0