nerdexam
Microsoft

DP-100 · Question #561

You manage an Azure AI Foundry project. You develop a Prompt flow that includes a large language model (LLM) node and an upstream node with a single output. You need to link the LLM node input with th

The correct answer is D. ${upstream_node_name.output}. In Azure AI Foundry Prompt flow, YAML flow configurations use the syntax ${{node_name.output}} to reference the output of an upstream node and pass it as input to a downstream node such as an LLM node. This dollar-sign double-brace syntax is the standard Jinja2-like expression fo

Optimize language models for AI applications

Question

You manage an Azure AI Foundry project. You develop a Prompt flow that includes a large language model (LLM) node and an upstream node with a single output. You need to link the LLM node input with the output of the upstream node by using a YAML flow configuration. Which flow configuration should you use?

Options

  • A{% upstream_node_name.output %}
  • B{{upstream_node_name.output}}
  • C<#upstream_node_name.output#>
  • D${upstream_node_name.output}

How the community answered

(47 responses)
  • A
    2% (1)
  • B
    6% (3)
  • C
    2% (1)
  • D
    89% (42)

Explanation

In Azure AI Foundry Prompt flow, YAML flow configurations use the syntax ${{node_name.output}} to reference the output of an upstream node and pass it as input to a downstream node such as an LLM node. This dollar-sign double-brace syntax is the standard Jinja2-like expression format used in Prompt flow DAG YAML files. Option A uses percent signs (Jinja block syntax), Option B uses quadruple braces, and Option C uses hash signs - none of which are valid Prompt flow expression syntax.

Topics

#Azure AI Prompt Flow#LLM integration#YAML configuration#Node referencing

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice