File size: 1,139 Bytes
951d8ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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"