Constructing a Final Prompt from a Template
A developer is building a grammar-checking feature that uses the following template to structure its requests: Is the sentence grammatically correct? Sentence: "{*text*}". A user provides the sentence "The cats sleeps on the mat." for checking. What is the complete, final text that the system must construct, and briefly explain why this substitution process is necessary?
0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
An automated grammar-checking tool uses a predefined template to structure its requests. The template is:
Please evaluate the grammaticality of the following sentence: {*text_input*}. A user submits the sentence 'The book are on the table.' for evaluation. Which option below shows the correctly constructed final request after the user's sentence is inserted into the template?A system uses the template
Analyze the following sentence for grammatical errors: "{*user_sentence*}". If a user provides the sentenceThe childrens plays in the park., the complete input sent for analysis would be: ____.Constructing a Final Prompt from a Template
Example of LLM Output Generation for Grammaticality Judgment