
Answer-first summary for fast verification
Answer: Create prompts for each product category that highlight the key features. Include the desired output format and length for each prompt response.
The optimal prompt engineering technique for generating concise, feature-specific product descriptions with an LLM is **B: Create prompts for each product category that highlight the key features. Include the desired output format and length for each prompt response.** **Why Option B is Correct:** 1. **Category-Specific Focus**: By creating prompts tailored to product categories (e.g., electronics, apparel, home goods), the LLM can generate descriptions that emphasize the most relevant features for each type of product. This ensures the output is feature-specific without being overly broad. 2. **Explicit Output Constraints**: Including desired format and length (e.g., "Generate a 2-3 sentence description highlighting durability and battery life") directly addresses the requirement for conciseness. LLMs perform better with clear instructions on structure and brevity. 3. **Efficiency and Consistency**: This approach balances customization with scalability. It avoids the inefficiency of creating unique prompts for every single product while still producing consistent, high-quality descriptions across similar items. 4. **Alignment with LLM Capabilities**: LLMs excel at following structured prompts with specific guidelines. Providing category context with key features and output specifications leverages the model's ability to generate targeted content. **Why Other Options Are Less Suitable:** - **Option A**: Creating one generic prompt for all products would likely result in vague or inconsistent descriptions. Editing responses afterward adds manual effort and defeats the purpose of automated generation. - **Option C**: Including a diverse range of features in each prompt risks making descriptions unfocused and lengthy, contradicting the requirement for conciseness and feature-specificity. - **Option D**: While detailed, product-specific prompts could yield precise descriptions, they are inefficient for large product catalogs and may not inherently enforce conciseness unless explicitly specified (which Option B does more systematically). In summary, Option B provides the best balance of specificity, conciseness, and scalability for enterprise use of LLMs in product description generation.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Which prompt engineering technique should a company use to generate brief, feature-focused product descriptions with a large language model (LLM)?
A
Create one prompt that covers all products. Edit the responses to make the responses more specific, concise, and tailored to each product.
B
Create prompts for each product category that highlight the key features. Include the desired output format and length for each prompt response.
C
Include a diverse range of product features in each prompt to generate creative and unique descriptions.
D
Provide detailed, product-specific prompts to ensure precise and customized descriptions.