There's a mod that makes her just run away at 30% health so you don't have to fiddle with knocking her out. (I use AI for my companions so it would be annoying for me to try to do.)
However, it has not been updated since September 2023 and I'm afraid it will break my game. Has anyone had success with this mod after Patch 6?