datn-fastapi / chatbot /knowledge /field_requirement.py
truglpk3's picture
Fix Flow Ask More Info
a8461eb
raw
history blame contribute delete
903 Bytes
TOPIC_REQUIREMENTS = {
"meal_suggestion": [
["weight", "height", "age", "gender", "activity", "target_goal"],
["targetcalories", "protein", "totalfat", "carbohydrate"]
],
"food_suggestion": [
["weight", "height", "age", "gender", "activity", "target_goal"],
["targetcalories", "protein", "totalfat", "carbohydrate"]
],
"food_query": [],
"general_chat": [],
"policy": []
}
FIELD_NAMES_VN = {
"weight": "Cân nặng (kg)",
"height": "Chiều cao (cm)",
"age": "Tuổi",
"gender": "Giới tính",
"activity": "Mức độ vận động",
"target_goal": "Mục tiêu (giảm cân / tăng cơ / giữ cân)",
"targetcalories": "Mức calo mục tiêu (kcal/ngày)",
"protein": "Protein (gram/ngày)",
"totalfat": "Chất béo / Fat (gram/ngày)",
"carbohydrate": "Carbohydrate / Tinh bột (gram/ngày)",
}