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
|`prompt.summary_json_system`|`summary_json_system_prompt`| System prompt for JSON summaries. |
937
+
|`prompt.summary_json`|`summary_json_prompt`| JSON-specific user prompt template(s) to use when generating contextual summaries. |
939
938
|`prompt.context_outer`|`CONTEXT_OUTER_PROMPT`| Prompt for how to format all contexts in generate answer. |
940
939
|`prompt.context_inner`|`CONTEXT_INNER_PROMPT`| Prompt for how to format a single context in generate answer. Must contain 'name' and 'text' variables. |
941
940
|`agent.agent_llm`|`"gpt-4o-2024-11-20"`| Model to use for agent making tool selections. |
Copy file name to clipboardExpand all lines: src/paperqa/configs/contracrow.json
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,10 @@
36
36
"post": null,
37
37
"system": "Answer in a direct and concise tone. Your audience is an expert, so be highly specific. If there are ambiguous terms or acronyms, first define them.",
38
38
"use_json": true,
39
-
"summary_json": "Excerpt from {citation}\n\n----\n\n{text}\n\n----\n\nQuestion: {question}\n\n",
40
-
"summary_json_system": "Provide a summary of the relevant information that could help determine if a claim is contradicted or supported by this excerpt. The excerpt may be irrelevant. Do not directly answer if it is contradicted - only summarize relevant information. Respond with the following JSON format:\n\n{{\n\"summary\": \"...\",\n\"relevance_score\": \"...\"\n}}\n\nwhere `summary` is relevant information from excerpt ({summary_length}) and `relevance_score` is the relevance of `summary` to support or contradict the claim (integer out of 10). If any string entry in the JSON has newlines, be sure to escape them. "
39
+
"summary_json": [
40
+
"Provide a summary of the relevant information that could help determine if a claim is contradicted or supported by this excerpt. The excerpt may be irrelevant. Do not directly answer if it is contradicted - only summarize relevant information. Respond with the following JSON format:\n\n{{\n\"summary\": \"...\",\n\"relevance_score\": \"...\"\n}}\n\nwhere `summary` is relevant information from excerpt ({summary_length}) and `relevance_score` is the relevance of `summary` to support or contradict the claim (integer out of 10). If any string entry in the JSON has newlines, be sure to escape them.",
41
+
"Excerpt from {citation}\n\n----\n\n{text}\n\n----\n\nQuestion: {question}"
Copy file name to clipboardExpand all lines: src/paperqa/configs/wikicrow.json
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,10 @@
36
36
"post": null,
37
37
"system": "Answer in a direct and concise tone.",
38
38
"use_json": true,
39
-
"summary_json": "Excerpt from {citation}\n\n----\n\n{text}\n\n----\n\nQuestion: {question}\n\n",
40
-
"summary_json_system": "Provide a summary of the relevant information that could help answer the question based on the excerpt. The excerpt may be irrelevant. Do not directly answer the question - only summarize relevant information. \n\nRespond with the following JSON format:\n\n{{\n\"summary\": \"...\",\n\"relevance_score\": \"...\",\n\"gene_name: \"...\"\n}}\n\nwhere `summary` is relevant information from text - {summary_length}, \n`gene_name` is the gene discussed in the excerpt (may be different than query), and `relevance_score` is the relevance of `summary` to answer the question (integer out of 10)"
39
+
"summary_json": [
40
+
"Provide a summary of the relevant information that could help answer the question based on the excerpt. The excerpt may be irrelevant. Do not directly answer the question - only summarize relevant information. \n\nRespond with the following JSON format:\n\n{{\n\"summary\": \"...\",\n\"relevance_score\": \"...\",\n\"gene_name: \"...\"\n}}\n\nwhere `summary` is relevant information from text - {summary_length}, \n`gene_name` is the gene discussed in the excerpt (may be different than query), and `relevance_score` is the relevance of `summary` to answer the question (integer out of 10)",
41
+
"Excerpt from {citation}\n\n----\n\n{text}\n\n----\n\nQuestion: {question}"
0 commit comments