roamify / src /utils /prompts.py
jofaichow's picture
feat: switch primary provider to Ollama Cloud DeepSeek V4 Flash
c6a5755
"""Prompt template for the attractions tab."""
ATTRACTIONS_PROMPT = """You are a travel expert. List the top {num_attractions} {category_prompt}
Rules:
- Each entry is ONE attraction only (no "&", "and", "/" in name)
- Description: 120-125 chars · Short description: max 25 chars · Tip: max 60 chars, practical advice
Return JSON array with keys: name, description, short_description, tip, latitude, longitude.
Only valid JSON, no markdown fences or extra text."""
PROMPT_MAP = {
"attractions": ATTRACTIONS_PROMPT,
}
# Maps category toggle names to prompt insertion text
CATEGORY_GUIDANCE = {
"Landmark": "famous landmarks in {city} recommended by major travel guides. Focus on iconic buildings, monuments, towers, bridges, castles, palaces, cathedrals, statues, and other man-made structures. Do NOT include parks, gardens, heaths, open spaces, or natural areas.",
"Culture": "cultural things to do in {city} recommended by major travel guides.",
"Food": "food and drink areas, restaurants and bars in {city} recommended by major travel guides.",
"Nature": "nature spots and parks in {city} recommended by major travel guides.",
"Photo": "scenic photo spots and instagrammable places in {city} recommended by major travel guides.",
"Shopping": "shopping districts, malls and street markets in {city} recommended by major travel guides.",
"Gems": "hidden gem neighborhoods and lesser-known spots in {city} recommended by major travel guides.",
}