Skip to content

Commit

Permalink
Tut 29: fix for new ChatMessage - MERGE AFTER 2.9.0 (#375)
Browse files Browse the repository at this point in the history
* simplify tut 29

* improvements

* progress

* rm unused code

* more progress

* small fix
  • Loading branch information
anakin87 authored Jan 15, 2025
1 parent 23491e6 commit 0745bee
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions tutorials/29_Serializing_Pipelines.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,17 @@
" init_parameters:\n",
" required_variables: null\n",
" template:\n",
" - content: '\n",
" - _content:\n",
" - text: '\n",
"\n",
" Please create a summary about the following topic:\n",
"\n",
" {{ topic }}\n",
"\n",
" '\n",
" meta: {}\n",
" name: null\n",
" role: user\n",
" _meta: {}\n",
" _name: null\n",
" _role: user\n",
" variables: null\n",
" type: haystack.components.builders.chat_prompt_builder.ChatPromptBuilder\n",
" llm:\n",
Expand Down Expand Up @@ -271,16 +272,17 @@
" init_parameters:\n",
" required_variables: null\n",
" template:\n",
" - content: '\n",
" - _content:\n",
" - text: '\n",
"\n",
" Please create a summary about the following topic:\n",
" Please create a summary about the following topic:\n",
"\n",
" {{ topic }}\n",
" {{ topic }}\n",
"\n",
" '\n",
" meta: {}\n",
" name: null\n",
" role: user\n",
" '\n",
" _meta: {}\n",
" _name: null\n",
" _role: user\n",
" variables: null\n",
" type: haystack.components.builders.chat_prompt_builder.ChatPromptBuilder\n",
" llm:\n",
Expand Down Expand Up @@ -334,10 +336,11 @@
" builder:\n",
" init_parameters:\n",
" template:\n",
" - content: 'Please translate the following to French: \\n{{ sentence }}\\n'\n",
" meta: {}\n",
" name: null\n",
" role: user\n",
" - _content:\n",
" - text: 'Please translate the following to French: \\n{{ sentence }}\\n'\n",
" _meta: {}\n",
" _name: null\n",
" _role: user\n",
" variables: null\n",
" type: haystack.components.builders.chat_prompt_builder.ChatPromptBuilder\n",
" llm:\n",
Expand Down Expand Up @@ -431,7 +434,7 @@
"source": [
"## What's next\n",
"\n",
"🎉 Congratulations! You've serialzed a pipeline into YAML, edited it and ran it again!\n",
"🎉 Congratulations! You've serialized a pipeline into YAML, edited it and ran it again!\n",
"\n",
"If you liked this tutorial, you may also enjoy:\n",
"- [Creating Your First QA Pipeline with Retrieval-Augmentation](https://haystack.deepset.ai/tutorials/27_first_rag_pipeline)\n",
Expand All @@ -458,7 +461,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.6"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 0745bee

Please sign in to comment.