Prompting an LLM for an e-commerce task and filtering bad outputs
MediumML design25 minREMLESWEPro outline
The question
You use an LLM to extract product attributes from listings. Design the prompt, the output format and how you catch and handle outputs that are malformed or wrong.
What the interviewer is looking for
- Defines a strict output schema
- Uses examples and constraints in the prompt
- Validates outputs with code
- Retries or falls back on failure
- Measures accuracy on a labelled sample
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported ByteDance Seed question type: prompt design for an e-commerce task and filtering badly formatted outputs.
Reported in: nowcoder.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official ByteDance Seed question.