Skip to content

Commit ed6a7d1

Browse files
committed
Update the prompt
1 parent 3aad38f commit ed6a7d1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

adi_function_app/adi_2_ai_search.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,22 +140,24 @@ async def understand_image_with_gptv(image_base64, caption, tries_left=3):
140140
token_provider = None
141141
api_key = os.environ["OpenAI__ApiKey"]
142142

143-
system_prompt = """You are an expert in image analysis. Use your experience and skills to provided a detailed description of any provided images. You should FOCUS on what info can be inferred from the image and the meaning of the data inside the image. Draw actionable insights and conclusions from the image.
143+
system_prompt = """You are an expert in technical image analysis. Your task is to provided analysis of images. You should FOCUS on what info can be inferred from the image and the meaning of the data inside the image. Draw actionable insights and conclusions from the image. Do not describe the image in a general way or describe the image in a way that is not useful for decision-making.
144144
145-
If the image is a chart for instance, you should describe the data trends, patterns, and insights that can be drawn from the chart.
145+
If the image is a chart for instance, you should describe the data trends, patterns, and insights that can be drawn from the chart. For example, you could describe the increase or decrease in sales over time, the peak sales period, or the sales performance of a particular product.
146146
147147
If the image is a map, you should describe the geographical features, landmarks, and any other relevant information that can be inferred from the map.
148148
149149
If the image is a diagram, you should describe the components, relationships, and any other relevant information that can be inferred from the diagram.
150150
151151
Include any data points, labels, and other relevant information that can be inferred from the image.
152152
153+
Provide a well-structured, detailed, and actionable analysis of the image. Focus on extracting data and information that can be inferred from the image.
154+
153155
IMPORTANT: If the provided image is a logo or photograph, simply return 'Irrelevant Image'."""
154156

155-
user_input = "Describe this image with technical analysis. Provide a well-structured, description."
157+
user_input = "Perform technical analysis on this image. Provide a well-structured, description."
156158

157159
if caption is not None and len(caption) > 0:
158-
user_input += f" (note: it has image caption: {caption})"
160+
user_input += f" (note: it has the following caption: {caption})"
159161

160162
try:
161163
async with AsyncAzureOpenAI(

0 commit comments

Comments
 (0)