Whenever you're ready, walk me through how you'd approach this.
You are augmenting a small Text-to-SQL dataset with a paraphrasing API that rephrases the English sentence while the SQL stays unchanged, but after 30-40 requests it sometimes returns the original sentence, risking an infinite loop. How would you design the request handling?
Asked in Technical round 1. The candidate proposed a queue, and the interviewer suggested a multi-level queue. Focus on how you would prevent loops, control retries, and keep augmentation throughput predictable.