I am obviously an amateur, but what does it mean, “sweat”?
It’s frying, with a lid on the pan, to trap the liquids (and resulting condensation on the pan) that come out of the food. Onions, for instance, are properly sweated when they’re soft and see-through, but not browned.
Cook until clear at a low heat, don’t brown.