|
|
input_interface: |
|
|
_target_: flows.interfaces.KeyInterface |
|
|
additional_transformations: |
|
|
- _target_: flows.data_transformations.KeyMatchInput |
|
|
|
|
|
output_interface: |
|
|
_target_: flows.interfaces.KeyInterface |
|
|
keys_to_rename: |
|
|
api_output: answer |
|
|
|
|
|
flow: |
|
|
_target_: aiflows.OpenAIChatAtomicFlowModule.OpenAIChatAtomicFlow.instantiate_from_default_config |
|
|
|
|
|
name: "SimpleQA_Flow" |
|
|
description: "A flow that answers questions." |
|
|
|
|
|
|
|
|
input_interface_non_initialized: |
|
|
- "question" |
|
|
|
|
|
|
|
|
model: "gpt-3.5-turbo" |
|
|
generation_parameters: |
|
|
n: 1 |
|
|
max_tokens: 3000 |
|
|
temperature: 0.3 |
|
|
|
|
|
model_kwargs: |
|
|
top_p: 0.2 |
|
|
frequency_penalty: 0 |
|
|
presence_penalty: 0 |
|
|
|
|
|
n_api_retries: 6 |
|
|
wait_time_between_retries: 20 |
|
|
|
|
|
|
|
|
system_message_prompt_template: |
|
|
_target_: langchain.PromptTemplate |
|
|
template: |2- |
|
|
You are a helpful chatbot that truthfully answers questions. |
|
|
input_variables: [] |
|
|
partial_variables: {} |
|
|
template_format: jinja2 |
|
|
|
|
|
init_human_message_prompt_template: |
|
|
_target_: langchain.PromptTemplate |
|
|
template: |2- |
|
|
Answer the following question: {{question}} |
|
|
input_variables: ["question"] |
|
|
partial_variables: {} |
|
|
template_format: jinja2 |
|
|
|