AIF-C01 · Question #123
A company wants to use large language models (LLMs) to produce code from natural language code comments. Which LLM feature meets these requirements?
The correct answer is B. Text generation. The LLM feature that produces code from natural language descriptions is a specific application of text generation.
Question
A company wants to use large language models (LLMs) to produce code from natural language code comments. Which LLM feature meets these requirements?
Options
- AText summarization
- BText generation
- CText completion
- DText classification
How the community answered
(25 responses)- A4% (1)
- B88% (22)
- C8% (2)
Why each option
The LLM feature that produces code from natural language descriptions is a specific application of text generation.
Text summarization involves condensing a longer piece of text into a shorter, coherent summary, which is not the process of generating code.
Text generation is the broad capability of large language models to produce coherent and relevant text based on a given input prompt. Generating code from natural language descriptions falls under this category, as the model is creating new textual content (code) guided by the input (comments).
Text completion is typically about finishing an incomplete sentence or phrase; however, generating entire code blocks from natural language comments is better described by the broader term 'text generation' as it involves creating new structured content.
Text classification involves categorizing text into predefined classes or labels, which is unrelated to producing code.
Concept tested: LLM capabilities, code generation, text generation
Source: https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#code-models
Topics
Community Discussion
No community discussion yet for this question.