Addforce while compensating others

Hello.
I’m having troubles with a basic problem, I want my character to be able to jump in the same way whether he is on the ground or on air (he could possibly fall) using AddForce.
Basically when the player is falling his velocity (Y axis) is negative, I would have to manage to compensate for this strength.
Any ideas ?

wll the best solution is to set the velocity to 0 before you add the force somethig like this

yourRigidbody.velocity = Vector3.zero;
yourRigidbody.AddForce(...);