Take a look at this interview with Dr. Georgia Ede MD - she's is an expert on the usage of nutrition for the treatment of mental ilness. In the video (and the book below) she provides a lot of insights about how to start and maintain a medical grade ketogenic diet.
https://www.youtube.com/watch?v=M-iFdXiBObE&t=4s
https://a.co/d/bkDPNT7