From 2cc76beacd3ab0abe5348f01f96ad2af65e0e528 Mon Sep 17 00:00:00 2001 From: Stefano Fiorucci Date: Wed, 25 Sep 2024 10:06:30 +0200 Subject: [PATCH] fix: fix `PredefinedPipeline.CHAT_WITH_WEBSITE` template (#8401) * fix pipeline template * reno * update to gpt-4o-mini --- .../core/pipeline/predefined/chat_with_website.yaml.jinja2 | 6 +++--- haystack/core/pipeline/predefined/generative_qa.yaml.jinja2 | 2 +- haystack/core/pipeline/predefined/rag.yaml.jinja2 | 2 +- .../notes/fix-chat-web-pipe-template-0b00144b1099cda3.yaml | 5 +++++ 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 releasenotes/notes/fix-chat-web-pipe-template-0b00144b1099cda3.yaml diff --git a/haystack/core/pipeline/predefined/chat_with_website.yaml.jinja2 b/haystack/core/pipeline/predefined/chat_with_website.yaml.jinja2 index ef2994748..c4ef14d49 100644 --- a/haystack/core/pipeline/predefined/chat_with_website.yaml.jinja2 +++ b/haystack/core/pipeline/predefined/chat_with_website.yaml.jinja2 @@ -1,8 +1,8 @@ components: converter: - init_parameters: - extractor_type: DefaultExtractor type: haystack.components.converters.html.HTMLToDocument + init_parameters: + extraction_kwargs: null fetcher: init_parameters: @@ -22,7 +22,7 @@ components: strict: true type: env_var generation_kwargs: {} - model: gpt-3.5-turbo + model: gpt-4o-mini streaming_callback: null system_prompt: null type: haystack.components.generators.openai.OpenAIGenerator diff --git a/haystack/core/pipeline/predefined/generative_qa.yaml.jinja2 b/haystack/core/pipeline/predefined/generative_qa.yaml.jinja2 index 83ffd588b..456689d75 100644 --- a/haystack/core/pipeline/predefined/generative_qa.yaml.jinja2 +++ b/haystack/core/pipeline/predefined/generative_qa.yaml.jinja2 @@ -7,7 +7,7 @@ components: env_vars: [ "OPENAI_API_KEY" ] strict: true type: "env_var" - model: "gpt-3.5-turbo" + model: "gpt-4o-mini" type: "haystack.components.generators.openai.OpenAIGenerator" prompt_builder: diff --git a/haystack/core/pipeline/predefined/rag.yaml.jinja2 b/haystack/core/pipeline/predefined/rag.yaml.jinja2 index 97b9ae76d..cff8bbb84 100644 --- a/haystack/core/pipeline/predefined/rag.yaml.jinja2 +++ b/haystack/core/pipeline/predefined/rag.yaml.jinja2 @@ -10,7 +10,7 @@ components: strict: true type: env_var generation_kwargs: {} - model: gpt-3.5-turbo + model: gpt-4o-mini streaming_callback: null system_prompt: null type: haystack.components.generators.openai.OpenAIGenerator diff --git a/releasenotes/notes/fix-chat-web-pipe-template-0b00144b1099cda3.yaml b/releasenotes/notes/fix-chat-web-pipe-template-0b00144b1099cda3.yaml new file mode 100644 index 000000000..60b2f90a4 --- /dev/null +++ b/releasenotes/notes/fix-chat-web-pipe-template-0b00144b1099cda3.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Update the `CHAT_WITH_WEBSITE` Pipeline template to reflect the changes in + the `HTMLToDocument` converter component.