Let the onions cook for 10 minute, caramelizing. Keep a cup of water beside the cooktop so that if the onions start to scorch or stick, you can sprinkle a little water into the pan.
When the onions have been cooking for a total of 17-20 minutes, and the water has mostly cooked off, scrape the tadka into the soup and mix it in.