Infinity-1995 commited on
Commit
bdaa8f3
·
verified ·
1 Parent(s): 635daa2

Update log.html

Browse files
Files changed (1) hide show
  1. log.html +19 -11
log.html CHANGED
@@ -121,20 +121,28 @@ async function runAI() {
121
 
122
  const distance = 5;
123
 
124
- const prompt = `
125
- You are an AI for food surplus redistribution in the UAE (NourishNet).
126
 
127
- Analyze the data:
128
 
129
- Meals: ${meals}
130
- Hours left: ${hours}
131
- Distance: ${distance}
132
- Food type: ${foodType}
 
133
 
134
- Return:
135
- Priority (HIGH / MEDIUM / LOW)
136
- Reason (short explanation)
137
- Action (what should be done)
 
 
 
 
 
 
 
138
  `;
139
 
140
  try {
 
121
 
122
  const distance = 5;
123
 
124
+ const prompt = `
125
+ You are NourishNet AI, a smart food redistribution assistant in the UAE.
126
 
127
+ Your job is to analyze surplus food and make intelligent decisions.
128
 
129
+ Rules:
130
+ - Be precise and structured
131
+ - Always explain WHY clearly
132
+ - Prioritize urgency and impact
133
+ - Think like a logistics coordinator
134
 
135
+ Input Data:
136
+ - Meals: ${meals}
137
+ - Hours until expiry: ${hours}
138
+ - Distance to nearest center: ${distance} km
139
+ - Food type: ${foodType}
140
+
141
+ Output format:
142
+
143
+ Priority: HIGH / MEDIUM / LOW
144
+ Reason: (2-3 lines, explain logic clearly)
145
+ Action: (specific next step, where to send food)
146
  `;
147
 
148
  try {