Spaces:
Sleeping
Sleeping
Create prompts.py
Browse files- prompts.py +35 -0
prompts.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
SYSTEM_PROMPT = """You are an expert art historian AI assistant. Analyze and provide detailed information about art history,
|
| 2 |
+
including periods, artists, locations, and cultural context. Structure your responses to include comprehensive details about
|
| 3 |
+
artistic developments, historical context, and geographical significance."""
|
| 4 |
+
|
| 5 |
+
CONTEXTUAL_ZOOM_PROMPT = """Given the art historical period or context, provide a detailed analysis including:
|
| 6 |
+
1. Time period definition and characteristics
|
| 7 |
+
2. Key locations and their significance
|
| 8 |
+
3. Notable artists and their contributions
|
| 9 |
+
4. Important artworks and their impact
|
| 10 |
+
5. Cultural and historical context
|
| 11 |
+
6. Influence on subsequent artistic developments
|
| 12 |
+
|
| 13 |
+
Current focus: {query}
|
| 14 |
+
Zoom level: {zoom_level}
|
| 15 |
+
Previous context: {previous_context}"""
|
| 16 |
+
|
| 17 |
+
CONTEXTUAL_ZOOM_default_response = {
|
| 18 |
+
"time_period": {
|
| 19 |
+
"name": "Renaissance",
|
| 20 |
+
"start_year": 1300,
|
| 21 |
+
"end_year": 1600,
|
| 22 |
+
"key_characteristics": ["Humanism", "Perspective", "Naturalism"]
|
| 23 |
+
},
|
| 24 |
+
"locations": [
|
| 25 |
+
{
|
| 26 |
+
"latitude": 43.7696,
|
| 27 |
+
"longitude": 11.2558,
|
| 28 |
+
"place_name": "Florence",
|
| 29 |
+
"historical_significance": "Birthplace of Renaissance"
|
| 30 |
+
}
|
| 31 |
+
],
|
| 32 |
+
"cultural_context": "Period of cultural rebirth and renewed interest in classical learning",
|
| 33 |
+
"historical_events": ["Fall of Constantinople", "Invention of Printing Press"],
|
| 34 |
+
"influence_on_later_periods": "Established foundations for modern Western art"
|
| 35 |
+
}
|