-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-added updated chat_with_website test pipeline
- Loading branch information
1 parent
425f0ae
commit 296fd6f
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
components: | ||
converter: | ||
type: haystack.components.converters.html.HTMLToDocument | ||
init_parameters: | ||
extraction_kwargs: null | ||
|
||
fetcher: | ||
init_parameters: | ||
raise_on_failure: true | ||
retry_attempts: 2 | ||
timeout: 3 | ||
user_agents: | ||
- haystack/LinkContentFetcher/2.0.0b8 | ||
type: haystack.components.fetchers.link_content.LinkContentFetcher | ||
|
||
llm: | ||
init_parameters: | ||
api_base_url: null | ||
api_key: | ||
env_vars: | ||
- OPENAI_API_KEY | ||
strict: true | ||
type: env_var | ||
generation_kwargs: {} | ||
model: gpt-4o-mini | ||
streaming_callback: null | ||
system_prompt: null | ||
type: haystack.components.generators.openai.OpenAIGenerator | ||
|
||
prompt: | ||
init_parameters: | ||
template: | | ||
"According to the contents of this website: | ||
{% for document in documents %} | ||
{{document.content}} | ||
{% endfor %} | ||
Answer the given question: {{query}} | ||
Answer: | ||
" | ||
type: haystack.components.builders.prompt_builder.PromptBuilder | ||
|
||
connections: | ||
- receiver: converter.sources | ||
sender: fetcher.streams | ||
- receiver: prompt.documents | ||
sender: converter.documents | ||
- receiver: llm.prompt | ||
sender: prompt.prompt | ||
|
||
metadata: {} |