Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -406,17 +406,16 @@ def query_mistral(prompt: str, context: str, max_retries: int = 3) -> str:
|
|
406 |
REQUIREMENTS:
|
407 |
- Source Query: {prompt}
|
408 |
- Current Context: {context}
|
409 |
-
|
410 |
DETAILED INSTRUCTIONS:
|
411 |
1. Write the min, max latitude and min, max longitude in the beginning taking from the query
|
412 |
2. Curate a comprehensive list of 15 locations inside of these coordinates and strictly relevant to place.
|
413 |
3. Take STRICTLY ONLY relevant places to Source Query.
|
414 |
4. Add a short description about the place (2-3 sentences)
|
415 |
-
5. Add coordinates (lat and long).
|
416 |
-
6.
|
417 |
-
7.
|
418 |
-
8.
|
419 |
-
|
420 |
|
421 |
CRITICAL: Do NOT use placeholder. Quick and fast response required
|
422 |
"""
|
|
|
406 |
REQUIREMENTS:
|
407 |
- Source Query: {prompt}
|
408 |
- Current Context: {context}
|
|
|
409 |
DETAILED INSTRUCTIONS:
|
410 |
1. Write the min, max latitude and min, max longitude in the beginning taking from the query
|
411 |
2. Curate a comprehensive list of 15 locations inside of these coordinates and strictly relevant to place.
|
412 |
3. Take STRICTLY ONLY relevant places to Source Query.
|
413 |
4. Add a short description about the place (2-3 sentences)
|
414 |
+
5. Add coordinates (lat and long) if there are in the Current Context.
|
415 |
+
6. If no coordinates in the Current Context, then give only name and description
|
416 |
+
7. Add address for the place
|
417 |
+
8. Remove any duplicate entries in the list
|
418 |
+
9. If places > 10, quick generation a new places relevant to Source Query and inside of the coordinates
|
419 |
|
420 |
CRITICAL: Do NOT use placeholder. Quick and fast response required
|
421 |
"""
|