File size: 922 Bytes
82b9374
 
 
 
 
 
 
 
798fa73
82b9374
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
798fa73
 
 
 
 
 
 
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
name: "ChatAtomic_Flow_with_Demonstrations"
description: "A sequential flow that answers questions with demonstrations"

subflows_config:
  demonstration_flow:
    _target_: aiflows.ChatWithDemonstrationsFlowModule.DemonstrationsAtomicFlow.instantiate_from_default_config
    
  chat_flow:
    _target_: aiflows.ChatFlowModule.ChatAtomicFlow.instantiate_from_default_config

topology:
  - goal: Get Demonstrations
    input_interface:
      _target_: flows.interfaces.KeyInterface
    flow: demonstration_flow
    output_interface:
      _target_: flows.interfaces.KeyInterface

  - goal: Answer the question
    input_interface:
      _target_: flows.interfaces.KeyInterface
    flow: chat_flow
    output_interface:
      _target_: flows.interfaces.KeyInterface
      keys_to_rename:
        api_output: answer  # Rename the api_output to answer


input_interface_initialized:
  - "query"

output_interface:
  - "answer"