pixtral-demo / src /prompts.py
alexandraroze's picture
updated comparing results
77ecec5
raw
history blame
3.1 kB
GENERATE_INVOICE_PROMPT = """
Given an image of a car accident, damages description, and an example of invoice for a similar car accident case, generate a repair invoice specifically for the provided image.
The invoice should include details on the parts needing replacement, labor hours, and costs. Structure it as a standard repair invoice typical for Bavaria Direct, in German.
Include only repair and cost information, with no contact details or extra data.
Important: Use the example invoice as a reference only. Do not copy it directly, but you can use labor costs and part names as a reference, if they are relevant to the image.
The invoice should include a list of items, where each item has the following fields:
Beschädigtes Teil (Damaged Part)
Teilkosten (Part Cost, EUR)
Arbeitsstunden (Labor Hours)
Arbeitskosten (Labor Cost per Hour, EUR/Stunde)
Gesamtkosten (Total Cost, EUR)
**Invoice for the similar car accident (for reference only):**
{0}
**Damages description**
{1}
---
**Guidelines for Generation:**
1. **Unique Response**: Generate reasonable variations in part types, costs, and labor hours based on the damage visible in the provided image.
2. **Check Calculations**: Ensure that **Gesamtkosten** for each item is calculated as:
\[
Gesamtkosten = Teilkosten + (Arbeitsstunden x Arbeitskosten)
\]
The **Gesamtsumme** should reflect the sum of all **Gesamtkosten** entries.
Generate a detailed and realistic invoice tailored specifically to the image, without replicating the example.
OUTPUT REQUIREMENTS:
Your output should be a table in markdown format WITHOUT ANY ADDITIONAL COMMENTS. The format of a table is provided in reference invoice examle.
""".format
GENERATE_BRIEF_DAMAGE_DESCRIPTION_PROMPT = """
You will be provided with an image of a car accident.
If the provided photo is not a photo of a car accident or a damaged car (the picture should look like "First Notice of Loss" photo), you must write "Irrelevant." and nothing else.
If a car is completely destroyed and it is not possible to repair it, you must write "Irrelevant." and nothing else and stop following the instructions.
Otherwise, provide a brief description of the damage.
The description should include the type of damage and the affected area of the vehicle. Pay special attention to the parts of the vehicle that are damaged. Be concise and specific, focusing on the visible damage in the image.
Write no more than 1-2 sentences describing the damage in detail.
Do not add any additional information beyond the visible damage in the image and any comments.
"""
GENERATE_DETAILED_DAMAGE_DESCRIPTION_PROMPT = """
Given an image of a car accident, provide a detailed and cosine description of all visible damage.
The description should include the type of damage, the affected area of the vehicle, and any other relevant details.
Be thorough and specific, covering all visible damage in the image.
Write no more than 3-4 sentences describing the damage in detail.
Do not add any additional information beyond the visible damage in the image and any comments.
"""