|
name: "ReAct_Flow" |
|
verbose: True |
|
description: "Flow that implements ReAct logic" |
|
|
|
model_name: "gpt-4" |
|
generation_parameters: |
|
n: 1 |
|
max_tokens: 3000 |
|
temperature: 0.3 |
|
|
|
model_kwargs: |
|
top_p: 0.2 |
|
frequency_penalty: 0 |
|
presence_penalty: 0 |
|
|
|
max_iterations: 3 |
|
keep_raw_response: True |
|
clear_flow_namespace_on_run_end: False |
|
|
|
input_data_transformations: [] |
|
input_keys: |
|
- "input" |
|
|
|
output_data_transformations: [] |
|
output_keys: |
|
- "answer" |
|
|
|
prompt_config: |
|
suffix: "Begin! Remember to answer succinctly. The response should include the prefix 'Final Answer: <response>'.\n\nQuestion: {input}\n{agent_scratchpad}" |
|
|
|
subflows_config: |
|
- _target_: flows.base_flows.GenericLCTool.instantiate_from_config |
|
config: |
|
name: "Search" |
|
verbose: True |
|
description: "useful when you need to answer questions about current events" |
|
|
|
tool_type: "wikipedia" |
|
return_direct: False |
|
|
|
keep_raw_response: True |
|
clear_flow_namespace_on_run_end: False |
|
|
|
input_data_transformations: [] |
|
input_keys: |
|
- "tool_input" |
|
|
|
output_data_transformations: [] |
|
output_keys: |
|
- "observation" |
|
|