ChatWithDemonstrationsFlowModule / ChatWithDemonstrationsFlow.yaml
nbaldwin's picture
readme and demo
798fa73
raw
history blame
922 Bytes
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"