Technologic101 commited on
Commit
857f21a
·
1 Parent(s): 09f7b3d

task: refines analysis prompts to clarify thematic references

Browse files
Files changed (1) hide show
  1. data_collection/prompts.py +48 -43
data_collection/prompts.py CHANGED
@@ -3,87 +3,92 @@ Prompt templates for design analysis using different levels of detail.
3
  Each template is optimized for Claude 3.7 Sonnet's visual processing capabilities.
4
  """
5
 
6
- DETAILED_ANALYSIS_PROMPT = """You are an expert design analyst with deep knowledge of visual design, aesthetics, human perception, and design history. Analyze designs holistically, considering their artistic merit, cultural context, and historical influences.
 
 
7
 
8
  For each design, perform a detailed visual analysis considering:
9
  1. Visual Composition & Hierarchy
10
  - Layout structure and flow
11
  - Balance and white space
12
  - Focal points and emphasis
 
13
 
14
  2. Color & Atmosphere
15
  - Color palette and relationships
16
- - Emotional resonance
17
- - Light and shadow
 
18
 
19
  3. Typography & Text Treatment
20
- - Font choices and pairings
21
- - Text hierarchy
22
- - Readability and rhythm
 
23
 
24
  4. Texture & Depth
25
- - Surface treatments
26
- - Layering effects
27
- - Material suggestions
 
28
 
29
  5. Artistic Elements
30
- - Stylistic influences
31
- - Decorative elements
32
- - Visual metaphors
 
33
 
34
- 6. Historical & Cultural Context
35
- - Era-specific design trends
36
- - Cultural references and influences
37
- - Design movement associations
38
 
39
  Provide analysis in the following JSON format:
40
  {
41
  "description": {
42
- "summary": "A compelling one-paragraph overview of the design's most distinctive features",
43
- "visual_style": "Detailed analysis of the design's artistic approach and visual language",
44
- "emotional_impact": "Description of the mood, atmosphere, and emotional response the design evokes",
45
- "compositional_elements": "Analysis of how different design elements work together"
46
  },
47
- "historical_context": {
48
- "era_indicators": "Design elements that place this in a specific time period",
49
- "cultural_references": "Cultural and artistic movements referenced in the design",
50
- "design_trends": "Contemporary or historical design trends evident in the work"
51
  },
52
  "categories": [
53
- "Primary design categories (4-6 items)",
54
- "Include both timeless and era-specific categories"
55
  ],
56
  "visual_characteristics": [
57
- "Specific visual techniques and elements (4-6 items)",
58
- "Include both contemporary and historical design elements"
59
  ],
60
- "temporal_markers": {
61
- "design_period": "Estimated time period or range",
62
- "characteristic_elements": ["List of elements typical of this period"]
63
  }
64
  }"""
65
 
66
- CORE_ANALYSIS_PROMPT = """You are an expert design analyst. Analyze the visual design, focusing on the most essential elements that define its style and character.
 
 
67
 
68
  Consider:
69
- 1. Overall composition and layout
70
- 2. Color palette and mood
71
- 3. Typography and text treatment
72
- 4. Key visual elements and textures
73
- 5. Historical/cultural indicators
74
 
75
  Provide analysis in the following JSON format:
76
  {
77
- "description": "A concise summary highlighting the design's most distinctive features",
78
  "categories": [
79
- "4-5 primary design categories that best classify this design"
80
  ],
81
  "visual_characteristics": [
82
- "4-5 specific visual techniques or elements that define this design"
83
  ],
84
- "era_indicators": {
85
- "period": "Estimated time period",
86
- "key_elements": ["2-3 elements that date this design"]
87
  }
88
  }"""
89
 
 
3
  Each template is optimized for Claude 3.7 Sonnet's visual processing capabilities.
4
  """
5
 
6
+ DETAILED_ANALYSIS_PROMPT = """You are an expert design analyst with deep knowledge of visual design, aesthetics, and human perception. Analyze designs purely based on their visual elements, ignoring any semantic meaning of text content. Treat all text as abstract typographic elements.
7
+
8
+ IMPORTANT: Base all analysis ONLY on what you can see in the visual design. Do not make assumptions about themes or cultural influences unless they are clearly expressed through visual elements (like specific patterns, motifs, or artistic techniques).
9
 
10
  For each design, perform a detailed visual analysis considering:
11
  1. Visual Composition & Hierarchy
12
  - Layout structure and flow
13
  - Balance and white space
14
  - Focal points and emphasis
15
+ - Visual weight distribution
16
 
17
  2. Color & Atmosphere
18
  - Color palette and relationships
19
+ - Value contrast and harmony
20
+ - Light and shadow effects
21
+ - Color temperature and mood
22
 
23
  3. Typography & Text Treatment
24
+ - Font styles as visual elements
25
+ - Typographic scale and contrast
26
+ - Text block shapes and rhythm
27
+ - Integration with other design elements
28
 
29
  4. Texture & Depth
30
+ - Surface treatments and patterns
31
+ - Layering and dimensionality
32
+ - Material and tactile suggestions
33
+ - Visual texture relationships
34
 
35
  5. Artistic Elements
36
+ - Visual style and aesthetic approach
37
+ - Decorative elements and motifs
38
+ - Pattern language and repetition
39
+ - Visual symbolism (based only on visible elements)
40
 
41
+ IMPORTANT: Categories should be concise, single-word descriptors or hyphenated pairs that a designer would use to tag or classify the design. They should describe fundamental visual approaches or stylistic choices, not specific techniques or characteristics.
 
 
 
42
 
43
  Provide analysis in the following JSON format:
44
  {
45
  "description": {
46
+ "summary": "A compelling overview focusing on distinctive visual features and artistic approach",
47
+ "visual_style": "Analysis of the design's aesthetic language and artistic execution",
48
+ "emotional_impact": "Description of the mood and atmosphere created by visual elements",
49
+ "compositional_elements": "Analysis of how visual elements work together spatially"
50
  },
51
+ "artistic_context": {
52
+ "style_influences": "Only visual styles clearly evidenced by specific visual elements",
53
+ "visual_metaphors": "Abstract concepts suggested by the visual treatment alone"
 
54
  },
55
  "categories": [
56
+ "4-6 single-word or hyphenated design classifications",
57
+ "Examples: artistic, professional, futuristic, geometric, typographic, high-contrast, grid-based"
58
  ],
59
  "visual_characteristics": [
60
+ "4-6 specific visual techniques or elements",
61
+ "Concrete, observable visual attributes"
62
  ],
63
+ "design_principles": {
64
+ "primary_principles": ["3-4 key design principles exemplified"],
65
+ "visual_techniques": ["2-3 specific execution methods"]
66
  }
67
  }"""
68
 
69
+ CORE_ANALYSIS_PROMPT = """You are an expert design analyst. Analyze the visual design purely based on visual elements, ignoring any semantic meaning of text content. Treat all text as abstract typographic elements.
70
+
71
+ IMPORTANT: Base all analysis ONLY on what you can see in the visual design. Categories should be concise, single-word descriptors or hyphenated pairs that a designer would use to tag the design. Focus on fundamental visual approaches, not specific techniques.
72
 
73
  Consider:
74
+ 1. Overall composition and visual hierarchy
75
+ 2. Color relationships and atmosphere
76
+ 3. Typography as visual element
77
+ 4. Texture and depth
78
+ 5. Artistic style (based only on visible elements)
79
 
80
  Provide analysis in the following JSON format:
81
  {
82
+ "description": "A concise summary highlighting distinctive visual features",
83
  "categories": [
84
+ "4-5 single-word or hyphenated design classifications"
85
  ],
86
  "visual_characteristics": [
87
+ "4-5 specific visual techniques or elements"
88
  ],
89
+ "artistic_style": {
90
+ "influences": ["2-3 clearly evident visual style influences"],
91
+ "techniques": ["2-3 observable visual techniques"]
92
  }
93
  }"""
94