Skip to content

Commit 0745bee

Browse files
authored
Tut 29: fix for new ChatMessage - MERGE AFTER 2.9.0 (#375)
* simplify tut 29 * improvements * progress * rm unused code * more progress * small fix
1 parent 23491e6 commit 0745bee

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

tutorials/29_Serializing_Pipelines.ipynb

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,17 @@
213213
" init_parameters:\n",
214214
" required_variables: null\n",
215215
" template:\n",
216-
" - content: '\n",
216+
" - _content:\n",
217+
" - text: '\n",
217218
"\n",
218219
" Please create a summary about the following topic:\n",
219220
"\n",
220221
" {{ topic }}\n",
221222
"\n",
222223
" '\n",
223-
" meta: {}\n",
224-
" name: null\n",
225-
" role: user\n",
224+
" _meta: {}\n",
225+
" _name: null\n",
226+
" _role: user\n",
226227
" variables: null\n",
227228
" type: haystack.components.builders.chat_prompt_builder.ChatPromptBuilder\n",
228229
" llm:\n",
@@ -271,16 +272,17 @@
271272
" init_parameters:\n",
272273
" required_variables: null\n",
273274
" template:\n",
274-
" - content: '\n",
275+
" - _content:\n",
276+
" - text: '\n",
275277
"\n",
276-
" Please create a summary about the following topic:\n",
278+
" Please create a summary about the following topic:\n",
277279
"\n",
278-
" {{ topic }}\n",
280+
" {{ topic }}\n",
279281
"\n",
280-
" '\n",
281-
" meta: {}\n",
282-
" name: null\n",
283-
" role: user\n",
282+
" '\n",
283+
" _meta: {}\n",
284+
" _name: null\n",
285+
" _role: user\n",
284286
" variables: null\n",
285287
" type: haystack.components.builders.chat_prompt_builder.ChatPromptBuilder\n",
286288
" llm:\n",
@@ -334,10 +336,11 @@
334336
" builder:\n",
335337
" init_parameters:\n",
336338
" template:\n",
337-
" - content: 'Please translate the following to French: \\n{{ sentence }}\\n'\n",
338-
" meta: {}\n",
339-
" name: null\n",
340-
" role: user\n",
339+
" - _content:\n",
340+
" - text: 'Please translate the following to French: \\n{{ sentence }}\\n'\n",
341+
" _meta: {}\n",
342+
" _name: null\n",
343+
" _role: user\n",
341344
" variables: null\n",
342345
" type: haystack.components.builders.chat_prompt_builder.ChatPromptBuilder\n",
343346
" llm:\n",
@@ -431,7 +434,7 @@
431434
"source": [
432435
"## What's next\n",
433436
"\n",
434-
"🎉 Congratulations! You've serialzed a pipeline into YAML, edited it and ran it again!\n",
437+
"🎉 Congratulations! You've serialized a pipeline into YAML, edited it and ran it again!\n",
435438
"\n",
436439
"If you liked this tutorial, you may also enjoy:\n",
437440
"- [Creating Your First QA Pipeline with Retrieval-Augmentation](https://haystack.deepset.ai/tutorials/27_first_rag_pipeline)\n",
@@ -458,7 +461,7 @@
458461
"name": "python",
459462
"nbconvert_exporter": "python",
460463
"pygments_lexer": "ipython3",
461-
"version": "3.9.6"
464+
"version": "3.10.12"
462465
}
463466
},
464467
"nbformat": 4,

0 commit comments

Comments
 (0)