You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adi_function_app/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ This method takes the detected figures, and crops them out of the page to save t
91
91
92
92
`update_figure_description` is used to update the original Markdown content with the description and meaning of the figure.
93
93
94
-
##### clean_adi_markdown
94
+
##### build_and_clean_markdown_for_response
95
95
96
96
This method performs the final cleaning of the Markdown contents. In this method, the section headings and page numbers are extracted for the content to be returned to the indexer.
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.
135
144
136
-
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.
137
146
138
147
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.
139
148
140
149
If the image is a diagram, you should describe the components, relationships, and any other relevant information that can be inferred from the diagram.
141
150
142
151
Include any data points, labels, and other relevant information that can be inferred from the image.
143
152
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
+
144
155
IMPORTANT: If the provided image is a logo or photograph, simply return 'Irrelevant Image'."""
145
156
146
-
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."
147
158
148
159
ifcaptionisnotNoneandlen(caption) >0:
149
-
user_input+=f" (note: it has image caption: {caption})"
160
+
user_input+=f" (note: it has the following caption: {caption})"
0 commit comments