Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Dec 19, 2024
1 parent a28b1dd commit cf962d9
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tutorials/29_Serializing_Pipelines.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -271,16 +271,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 +335,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 @@ -386,8 +388,6 @@
"outputs": [],
"source": [
"from haystack import Pipeline\n",
"from haystack.components.builders import ChatPromptBuilder\n",
"from haystack.components.generators.chat import HuggingFaceLocalChatGenerator\n",
"\n",
"new_pipeline = Pipeline.loads(yaml_pipeline)"
]
Expand Down Expand Up @@ -460,7 +460,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 cf962d9

Please sign in to comment.