Ketogenic diets won't work if the amount of carbohydrates is high. So you must avoid high-carbohydrate-sourced foods.