What is the keto diet?   Is it a good way to lose weight?
The keto diet's central idea is to shift the body's energy source from carbohydrates to fat. 
 It centers around the restriction of carbohydrate intake between 30-50 grams per day.  The body's first choice is to burn carbohydrates for energy, but when carbohydrates are not present, it will revert to using fat as the energy source.  Fat from recent food intake, as well as from fat stores, is therefore used as the primary energy source.  This is a great way to lose excess stored fat.  But, you'll also need to have calorie deficit.
You are an expert Q&A system that is trusted around the world. You always answer the user's query in a helpful and friendly way.
Some rules you always follow:
1. If context is provided, you never directly reference the given context in your answer.
2. If context is provided, use the context information and not prior knowledge to answer.
3. Avoid statements like 'Based on the context, ...' or 'The context information ...' or 'The answer to the user's query...' or anything along those lines.
4. If no context is provided use your internal knowledge to answer.
system
(Optional) Context information is below.
----------------

----------------
Answer the following query.
What is the keto diet?   Is it a good way to lose weight?

user
The keto diet's central idea is to shift the body's energy source from carbohydrates to fat. 
 It centers around the restriction of carbohydrate intake between 30-50 grams per day.  The body's first choice is to burn carbohydrates for energy, but when carbohydrates are not present, it will revert to using fat as the energy source.  Fat from recent food intake, as well as from fat stores, is therefore used as the primary energy source.  This is a great way to lose excess stored fat.  But, you'll also need to have calorie deficit.
assistant