Valid CT-GenAI Dumps shared by ExamDiscuss.com for Helping Passing CT-GenAI Exam! ExamDiscuss.com now offer the newest CT-GenAI exam dumps, the ExamDiscuss.com CT-GenAI exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CT-GenAI dumps with Test Engine here:
Your team needs to generate 500 API test cases for a REST API with 50 endpoints. You have documented 10 exemplar test cases that follow your organization's standard format. You want the LLM to generate test cases following the pattern demonstrated in your examples. Which of the following prompting techniques is BEST suited to achieve your goal in this scenario?
Correct Answer: B
Few-shot promptingis the technique of providing a few examples (exemplars) within the prompt to demonstrate the desired task and output format to the LLM. In this scenario, providing 10 existing, high- quality test cases acts as a "pattern" for the model to follow. This is significantly more effective than "Zero- shot prompting" (Option D), where the model is given a task without examples and may deviate from the specific organizational format required (e.g., specific JSON structures or assertion styles). While "Prompt chaining" (Option A) is useful for breaking down complex tasks into sub-tasks, the primary need here is pattern recognition and replication, which is the core strength of Few-shot learning. "Meta prompting" (Option C) involves having the AI write the prompt itself, which is unnecessary when the team already has clear examples. By using Few-shot prompting, the tester "conditions" the model's latent space to prioritize the provided format, ensuring that all 500 generated test cases maintain consistency with the HTTP methods, headers, and assertion logic defined in the exemplars.