Spaces:
Sleeping
Sleeping
| CONTEXTUAL_ZOOM_PROMPT = """ | |
| You are an expert art historian specializing in interactive exploration. Analyze the query and generate contextually aware zoom configurations with explanations. | |
| ###Input### | |
| User Query: {user_query} | |
| Current Zoom States: {current_zoom_states} | |
| Generate a complete, valid JSON response following the ArtHistoryResponse model structure. | |
| """ | |
| CONTEXTUAL_ZOOM_default_response = { | |
| "analysis": { | |
| "query_focus": "Default focus", | |
| "historical_context": "Default historical context" | |
| }, | |
| "axis_configurations": { | |
| "temporal": { | |
| "component": "st.slider", | |
| "current_zoom": { | |
| "level": "century", | |
| "range": [1700, 2000], | |
| "explanation": "Default time range" | |
| }, | |
| "available_zooms": { | |
| "in_zoom": { | |
| "level": "decade", | |
| "range": [1800, 1900], | |
| "explanation": "Zoom in to see more detail" | |
| }, | |
| "out_zoom": { | |
| "level": "millennium", | |
| "range": [1500, 2024], | |
| "explanation": "Broader historical context" | |
| } | |
| }, | |
| "impacted_by": { | |
| "geographical": "Default geographical impact", | |
| "style": "Default style impact" | |
| } | |
| }, | |
| "geographical": { | |
| "component": "st.map", | |
| "current_zoom": { | |
| "level": "city", | |
| "locations": [ | |
| { | |
| "name": "Paris", | |
| "lat": 48.8566, | |
| "lon": 2.3522, | |
| "relevance": "Default location" | |
| } | |
| ], | |
| "explanation": "Default location explanation" | |
| }, | |
| "available_zooms": { | |
| "in_zoom": { | |
| "level": "neighborhood", | |
| "locations": [ | |
| { | |
| "name": "Louvre", | |
| "lat": 48.8606, | |
| "lon": 2.3376, | |
| "relevance": "Default specific location" | |
| } | |
| ], | |
| "explanation": "Default zoom in explanation" | |
| }, | |
| "out_zoom": { | |
| "level": "country", | |
| "locations": [ | |
| { | |
| "name": "France", | |
| "lat": 46.2276, | |
| "lon": 2.2137, | |
| "relevance": "Default broader location" | |
| } | |
| ], | |
| "explanation": "Default zoom out explanation" | |
| } | |
| }, | |
| "impacted_by": { | |
| "temporal": "Default temporal impact", | |
| "style": "Default style impact" | |
| } | |
| }, | |
| "style": { | |
| "component": "st.multiselect", | |
| "current_zoom": { | |
| "level": "movement", | |
| "options": ["Classical", "Modern"], | |
| "explanation": "Default art movements" | |
| }, | |
| "available_zooms": { | |
| "in_zoom": { | |
| "level": "sub_movement", | |
| "options": ["Early Classical", "Late Modern"], | |
| "explanation": "More specific art movements" | |
| }, | |
| "out_zoom": { | |
| "level": "period", | |
| "options": ["Ancient", "Contemporary"], | |
| "explanation": "Broader art periods" | |
| } | |
| }, | |
| "impacted_by": { | |
| "temporal": "Default temporal impact", | |
| "geographical": "Default geographical impact" | |
| } | |
| } | |
| } | |
| } |