Here is the idea of the proposed solution :
https://image.ibb.co/eNJCHS/Solution_propos_e.jpg
You can find that block diagram in every ac drive manufacturers literature, it’s been the standard configuration for thirty plus years in industry and there are billions in exsistance. More importantly, there is a huge amount of knowledge and information absent between a block diagram and a functional drive.
I am in total agreement with Leo as you are dealing with absolutely lethal voltages and there are no valid reasons to do so from an educational perspective. Perhaps if you are doing your final year or graduate work in power electronics but you could learn all the same concepts using 24 volts dc.