|
7 | 7 | " answer the question, instead summarize to give evidence to help answer the"
|
8 | 8 | " question. Stay detailed; report specific numbers, equations, or direct quotes"
|
9 | 9 | ' (marked with quotation marks). Reply "Not applicable" if the excerpt is'
|
10 |
| - " irrelevant. At the end of your response, provide an integer score from 1-10 on a" |
11 |
| - " newline indicating relevance to question. Do not explain your score.\n\nRelevant" |
12 |
| - " Information Summary ({summary_length}):" |
| 10 | + " irrelevant. At the end of your response," |
| 11 | + "provide an integer score from 1-10 on a newline indicating relevance to question." # Don't use 0-10 since we mention "not applicable" instead # noqa: E501 |
| 12 | + " Do not explain your score." |
| 13 | + "\n\nRelevant Information Summary ({summary_length}):" |
13 | 14 | )
|
14 | 15 | # This prompt template integrates with `text` variable of the above `summary_prompt`
|
15 | 16 | text_with_tables_prompt_template = (
|
|
111 | 112 | " Your summary, combined with many others,"
|
112 | 113 | " will be given to the model to generate an answer."
|
113 | 114 | " Respond with the following JSON format:"
|
114 |
| - '\n\n{{\n "summary": "...",\n "relevance_score": "..."\n "used_images"\n}}' |
| 115 | + '\n\n{{\n "summary": "...",\n "relevance_score": 0-10,\n "used_images"\n}}' |
115 | 116 | "\n\nwhere `summary` is relevant information from the text - {summary_length} words."
|
116 | 117 | " `relevance_score` is an integer 0-10 for the relevance of `summary` to the question."
|
117 | 118 | " `used_images` is a boolean flag indicating"
|
118 | 119 | " if any images present in a multimodal message were used,"
|
119 | 120 | " and if no images were present it should be false."
|
120 |
| - "\n\nThe excerpt may or may not contain relevant information. If not, leave `summary` empty, " |
121 |
| - "and make `relevance_score` be 0." |
| 121 | + "\n\nThe excerpt may or may not contain relevant information." |
| 122 | + " If not, leave `summary` empty, and make `relevance_score` be 0." |
122 | 123 | )
|
123 | 124 |
|
124 | 125 | env_system_prompt = (
|
|
0 commit comments