Skip to content

Commit 703a0d8

Browse files
committed
bug fixes. 1. vqa notebook: answer didn't reference options col. 2. text-to-python: typo in prompt
1 parent 06f6c89 commit 703a0d8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

nemo/NeMo-Data-Designer/advanced/multimodal/visual-question-answering-using-vlm.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,16 +395,18 @@
395395
" )\n",
396396
")\n",
397397
"\n",
398+
"\n",
398399
"config_builder.add_column(\n",
399400
" C.LLMStructuredColumn(\n",
400401
" name=\"answer\",\n",
401-
" model_alias=model_alias,\n",
402-
" prompt=(\"Generate an answer for the question: {{ question }} based on the following context: {{ summary }}. \"\n",
403-
" \"The option you generate should match the difficulty of the generated question, {{ difficulty }}.\"),\n",
402+
" prompt=(\"Choose the correct answer for the question: {{ question }} based on the following context: {{ summary }}\"\n",
403+
" \"and options choices. The options are {{ options }}. Only select one of the options as the answer.\"),\n",
404404
" output_format=Answer,\n",
405+
" model_alias=model_alias,\n",
405406
" )\n",
406407
")\n",
407408
"\n",
409+
"\n",
408410
"config_builder.add_column(\n",
409411
" C.LLMStructuredColumn(\n",
410412
" name=\"topic\",\n",

nemo/NeMo-Data-Designer/advanced/text-to-code/text-to-python.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
" system_prompt=(\n",
279279
" \"You are an expert at generating clear and specific programming tasks.\"\n",
280280
" ),\n",
281-
" prompt=(zz\n",
281+
" prompt=(\n",
282282
" \"Generate an instruction to create Python code that solves a specific problem.\\n\"\n",
283283
" \"Each instruction should begin with one of the following phrases: {{instruction_phrase}}.\\n\\n\"\n",
284284
" \"Important Guidelines:\\n\"\n",

0 commit comments

Comments
 (0)