Develop Flashcards

(23 cards)

1
Q

What is the ABAP AI SDK?

A

A reuse library providing access to generative AI via ISLM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you use the ABAP AI SDK in your code?

A

By calling released ABAP classes and interfaces via APIs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the Completion API in the ABAP AI SDK do?

A

It generates text from a prompt using an LLM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of the Prompt Library API?

A

To use ISLM-defined prompt templates to create prompts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can you debug issues when using the SDK APIs?

A

Use ABAP Cross Trace to inspect the call stack.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which class and method do you use to instantiate the Completion API?

A

Use CL_AIC_ISLM_COMPL_API_FACTORY=>GET( ) and then CREATE_INSTANCE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the interface IF_AIC_COMPLETION_PARAMETERS allow you to do?

A

Set model parameters like temperature, max tokens, or any custom parameter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the method SET_TEMPERATURE control?

A

How creative the LLM’s response should be (range 0 to 1).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does SET_MAXIMUM_TOKENS do?

A

Sets the max number of tokens for the generated response.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What should you watch out for when using SET_ANY_PARAMETER?

A

Ensure the parameter is supported by the LLM to avoid runtime errors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the two main methods provided by the Completion API to send prompts?

A

EXECUTE_FOR_STRING (prompt as a string) and EXECUTE_FOR_MESSAGES (prompt as a message list).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the system role message define?

A

The role or behavior of the LLM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Function Calling in the Completion API?

A

It allows you to expose external functions/tools to the LLM so it can request information it doesn’t have, enriching its capabilities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the LLM return when it needs a function call?

A

A response containing the function name and parameter values for the requested function call.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How are complex function results handled?

A

You can format complex results as JSON strings and explain the structure in the function definition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Do all large language models support function calling?

A

No, function calling is not supported by all LLMs.

17
Q

What is the main purpose of the Prompt Library API in the ABAP AI SDK?

A

To use prompt templates predefined in Intelligent Scenario Models to generate prompts with dynamic content for LLM interactions.

18
Q

What two pieces of information do you need to get a prompt template instance?

A

The intelligent scenario name and the prompt template ID.

19
Q

Why use prompt templates instead of hardcoding prompts?

A

To reuse recurring prompt texts efficiently and maintain consistency.

20
Q

What tool is used for tracing errors and inspecting the call stack when using the ABAP AI SDK?

A

The ABAP Cross Trace in ABAP Development Tools.

21
Q

How do you enable tracing for the ABAP AI SDK in the ABAP Cross Trace?

A

In the create configuration menu, check the entries ABAP Generative AI and SDK.

22
Q

Why would you use the ABAP Cross Trace with the ABAP AI SDK?

A

To find errors and track the entire program process when calling the SDK APIs.

23
Q

Where do you find the ABAP Cross Trace view in ABAP Development Tools?

A

Via Window > Show View > Other > ABAP Cross Trace.