nerdexam
SAP

C_AIG_2412 · Question #65

You want to use the orchestration service through SAP's generative-Al-hub-sdk. What does the following code do? from gen_ai_hub.orchestration.models.11m import LLM 11m = LLM(name="gpt-40"…

The correct answer is A. Define the LLM. Option A is correct because the code is purely defining (instantiating) an LLM object - it sets the model name (gpt-4o), version, and inference parameters like max_tokens and temperature, but does nothing with it yet. This is the configuration step that says "here is the model…

Large Language Models (LLMs)

Question

You want to use the orchestration service through SAP's generative-Al-hub-sdk. What does the following code do? from gen_ai_hub.orchestration.models.11m import LLM 11m = LLM(name="gpt-40", version="latest", parameters={"max_tokens": 256, "temperature": 0.2})

Options

  • ADefine the LLM
  • BRun the Orchestration Request
  • CCreate the Orchestration Configuration
  • DDefine the Template and Default Input Values

How the community answered

(33 responses)
  • A
    76% (25)
  • B
    3% (1)
  • C
    15% (5)
  • D
    6% (2)

Explanation

Option A is correct because the code is purely defining (instantiating) an LLM object - it sets the model name (gpt-4o), version, and inference parameters like max_tokens and temperature, but does nothing with it yet. This is the configuration step that says "here is the model I want to use."

Why the distractors are wrong:

  • B (Run the Orchestration Request) - actually executing a request requires calling something like .run() or invoking a pipeline with input; no such call exists here.
  • C (Create the Orchestration Configuration) - the orchestration config is a higher-level object (e.g., OrchestrationConfig) that combines the LLM, template, and other modules together; defining the LLM alone is just one piece of that.
  • D (Define the Template and Default Input Values) - templates are separate objects (e.g., Template or PromptTemplate) that define the prompt structure and variables; this code contains no prompt or input values at all.

Memory tip: Think of it as a job application - LLM(name=..., parameters=...) is writing the job description for which model to hire. You still need to assemble the full team (config), give them instructions (template), and then send them to work (run the request).

Topics

#generative-ai-hub-sdk#LLM configuration#orchestration#Python SDK

Community Discussion

No community discussion yet for this question.

Full C_AIG_2412 Practice