What defines the mode we're in?

it’s often somewhat ambiguous, and frankly a lot of the stuff in the database would be better analyzed in major. Typically you would use the mode if there’s an unambiguous chord that feels like home base (and in this case you would choose the mode that make this chord the ‘one’ )