pixtral-demo / src /prompts.py
alexandraroze's picture
dockerfile
f11a85d
raw
history blame
4.01 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.
"""
ESTIMATE_COST_OF_CAR_PARTS_REPLACEMENT_PROMPT = """
I will provide you with a list of car parts that need to be replaced due to damage in a car accident (in German).
Your task is to estimate the cost of each part in Euros (EUR) based on the damage description provided.
Also, you need to estimate approximate labor hours required to replace each part.
There may be duplicate parts in the list (for example, for right and left sides of the car).
You may also expand the list with new parts which are not in the list but may be necessary for the repair.
Delete any duplicate entries and provide the cost and labor hours for one side only.
Sort the parts in the list in ascending order based on name of each part (in alphabetical order).
Your output should be a python dictionary where the keys are the names of the parts and the values are lists containing the estimated cost and labor hours for each part.
"""