QuestionQ75

VerifiedImplement generative AI and agentic solutions

You are developing prompts for a Microsoft Foundry project that classifies incoming support tickets by category.

You need to improve accuracy by showing the model examples of correct classifications, without retraining the model or storing knowledge permanently.

Which prompt engineering approach should you use?

Explanation

Few-shot learning involves embedding a small number of example input-output pairs directly within the prompt so the model can infer the desired pattern for the current task, without any model retraining or external knowledge storage. This directly satisfies the requirement of demonstrating correct classifications in-context while keeping the model and its weights unchanged and without persisting data outside the prompt. Zero-shot learning provides no examples, chain-of-thought focuses on eliciting step-by-step reasoning rather than demonstrating labeled examples, and RAG relies on retrieving and injecting external stored knowledge at query time, which conflicts with the 'no permanent knowledge storage' requirement.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!