ChatWithDemonstrationsFlowModule / ChatWithDemonstrationsFlow.yaml
nbaldwin's picture
chatwitDemV1
82b9374
raw
history blame
1.02 kB
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.OpenAIChatFlowModule.OpenAIChatAtomicFlow.instantiate_from_default_config
topology:
- goal: Get Demonstrations
input_interface:
_target_: flows.interfaces.KeyInterface
# circular flow as the orchestrator, prepare the correct input for the agent
flow: demonstration_flow
output_interface:
_target_: flows.interfaces.KeyInterface
- goal: Answer the question
input_interface:
_target_: flows.interfaces.KeyInterface
# circular flow as the orchestrator, prepare the correct input for the agent
flow: chat_flow
output_interface:
_target_: flows.interfaces.KeyInterface
keys_to_rename:
api_output: answer # Rename the api_output to answer