Skip to content

Commit

Permalink
Update base summarization prompt to explicitly use the analysis_data [W…
Browse files Browse the repository at this point in the history
  • Loading branch information
web-dev-trev committed Dec 20, 2024
1 parent 2950144 commit 6080652
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Services/DescriptionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function summarizeImageDescription(?string $aicDescription, array $genera
private function buildSummarizationPrompt(?string $aicDescription, array $generatedDescription): string
{
$basePrompt = <<<EOT
You are an art historian writing clear, cohesive visual descriptions of artworks for alt text. Create a description that captures the work's essential visual elements and technical aspects.
You are an art historian writing clear, cohesive visual descriptions of artworks for alt text. Create a description that captures the work's essential visual elements and technical aspects using the JSON provided data on visual analysis.
Create a unified description that:
- Begins with the primary subject matter and composition
Expand All @@ -35,6 +35,7 @@ private function buildSummarizationPrompt(?string $aicDescription, array $genera
- Speculating beyond what is visible
- Including technical metadata or analysis details
- Using phrases like "this artwork" or "we can see"
- Inferring textures or materials if not confidently or explicitly stated
- Assuming the gender to the artist or subjects unless they are explictly mentioned
- Assuming the ethnicity or race of the artist or subjects unless explicitly mentioned
Expand Down

0 comments on commit 6080652

Please sign in to comment.