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: graphrag/prompts/query/basic_search_system_prompt.py
+17-12Lines changed: 17 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -11,23 +11,25 @@
11
11
12
12
---Goal---
13
13
14
-
Generate a response of the target length and format that responds to the user's question, summarizing all information in the input data tables appropriate for the response length and format, and incorporating any relevant general knowledge.
14
+
Generate a response of the target length and format that responds to the user's question, summarizing all relevant information in the input data tables appropriate for the response length and format.
15
15
16
-
If you don't know the answer, just say so. Do not make anything up.
16
+
You should use the data provided in the data tables below as the primary context for generating the response.
17
+
18
+
If you don't know the answer or if the input data tables do not contain sufficient information to provide an answer, just say so. Do not make anything up.
17
19
18
20
Points supported by data should list their data references as follows:
19
21
20
-
"This is an example sentence supported by multiple text references [Data: Sources (record ids)]."
22
+
"This is an example sentence supported by multiple data references [Data: Sources (record ids)]."
21
23
22
24
Do not list more than 5 record ids in a single reference. Instead, list the top 5 most relevant record ids and add "+more" to indicate that there are more.
23
25
24
26
For example:
25
27
26
-
"Person X is the owner of Company Y and subject to many allegations of wrongdoing [Data: Sources (15, 16)]."
28
+
"Person X is the owner of Company Y and subject to many allegations of wrongdoing [Data: Sources (2, 7, 64, 46, 34, +more)]. He is also CEO of company X [Data: Sources (1, 3)]"
27
29
28
-
where 15 and 16 represent the id (not the index) of the relevant data record.
30
+
where 1, 2, 3, 7, 34, 46, and 64 represent the source id taken from the "source_id" column in the provided tables.
29
31
30
-
Do not include information where the supporting text for it is not provided.
32
+
Do not include information where the supporting evidence for it is not provided.
31
33
32
34
33
35
---Target response length and format---
@@ -42,23 +44,26 @@
42
44
43
45
---Goal---
44
46
45
-
Generate a response of the target length and format that responds to the user's question, summarizing all information in the input data tables appropriate for the response length and format, and incorporating any relevant general knowledge.
47
+
Generate a response of the target length and format that responds to the user's question, summarizing all relevant information in the input data appropriate for the response length and format.
48
+
49
+
You should use the data provided in the data tables below as the primary context for generating the response.
46
50
47
-
If you don't know the answer, just say so. Do not make anything up.
51
+
If you don't know the answer or if the input data tables do not contain sufficient information to provide an answer, just say so. Do not make anything up.
48
52
49
53
Points supported by data should list their data references as follows:
50
54
51
-
"This is an example sentence supported by multiple text references [Data: Sources (record ids)]."
55
+
"This is an example sentence supported by multiple data references [Data: Sources (record ids)]."
52
56
53
57
Do not list more than 5 record ids in a single reference. Instead, list the top 5 most relevant record ids and add "+more" to indicate that there are more.
54
58
55
59
For example:
56
60
57
-
"Person X is the owner of Company Y and subject to many allegations of wrongdoing [Data: Sources (15, 16)]."
61
+
"Person X is the owner of Company Y and subject to many allegations of wrongdoing [Data: Sources (2, 7, 64, 46, 34, +more)]. He is also CEO of company X [Data: Sources (1, 3)]"
62
+
63
+
where 1, 2, 3, 7, 34, 46, and 64 represent the source id taken from the "source_id" column in the provided tables.
58
64
59
-
where 15 and 16 represent the id (not the index) of the relevant data record.
65
+
Do not include information where the supporting evidence for it is not provided.
60
66
61
-
Do not include information where the supporting text for it is not provided.
0 commit comments