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: app/backend/approaches/prompts/ask_answer_question.prompty
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,9 @@ Answer the following question using only the data provided in the sources below.
20
20
Each source has a name followed by colon and the actual information, always include the source name for each fact you use in the response.
21
21
If you cannot answer using the sources below, say you don't know. Use below example to answer.
22
22
{% if image_sources %}
23
-
Each image source has the original document file name in the top left corner of the image with coordinates (10,10) pixels and is in the format Document:<document_name.ext#page=N>.
24
-
The filename of the actual image is in the top right corner of the image and is in the format Figure:<image_name.png>.
23
+
Each image source has the document file name in the top left corner of the image with coordinates (10,10) pixels with format <filename.ext#page=N>,
24
+
and the image figure name is right-aligned in the top right corner of the image.
25
+
The filename of the actual image is in the top right corner of the image and is in the format <figureN_N.png>.
25
26
Each text source starts in a new line and has the file name followed by colon and the actual information.
26
27
Always include the source document filename for each fact you use in the response in the format: [document_name.ext#page=N].
27
28
If you are referencing an image, add the image filename in the format: [document_name.ext#page=N(image_name.png)].
Copy file name to clipboardExpand all lines: app/backend/approaches/prompts/chat_answer_question.prompty
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,9 @@ Answer ONLY with the facts listed in the list of sources below. If there isn't e
25
25
If the question is not in English, answer in the language used in the question.
26
26
Each source has a name followed by colon and the actual information, always include the source name for each fact you use in the response. Use square brackets to reference the source, for example [info1.txt]. Don't combine sources, list each source separately, for example [info1.txt][info2.pdf].
27
27
{% if include_images %}
28
-
Each image source has the file name in the top left corner of the image with coordinates (10,10) pixels and is in the format SourceFileName:<file_name>
28
+
Each image source has the document file name in the top left corner of the image with coordinates (10,10) pixels with format <filename.ext#page=N>,
29
+
and the image figure name is right-aligned in the top right corner of the image.
30
+
The filename of the actual image is in the top right corner of the image and is in the format <figureN_N.png>.
29
31
Each text source starts in a new line and has the file name followed by colon and the actual information
30
32
Always include the source name from the image or text for each fact you use in the response in the format: [filename]
31
33
Answer the following question using only the data provided in the sources below.
0 commit comments