RadRuss commited on
Commit
6bbb2b6
·
verified ·
1 Parent(s): ec9c116

Upload app.py

Browse files

changed the system promt

Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -64,13 +64,12 @@ which can be accessed via cypher queries.
64
 
65
  You have access to the following tools:
66
  - get_nodes()
67
- - get_relations()
68
  - get_index()
69
  - submit_cypher()
70
 
71
 
72
- 1. Always first call the functions - get_nodes(), get_relations() and get_index()
73
- so that you have a complete list of nodes, relationships and full text index.
74
 
75
  2. Answer questions by creating cypher queries you submit over the tool submit_cypher()
76
 
@@ -78,8 +77,7 @@ so that you have a complete list of nodes, relationships and full text index.
78
 
79
  4. Where an index for the node exists, create a query using a fulltext search
80
 
81
- 5. always request related objects using a generic query '-[r:]-' to retireve additional context
82
-
83
 
84
  6. If no responses are found (empty results):
85
  - Retry with a broader or parent term (e.g., "procurement" if "indirect
@@ -90,7 +88,7 @@ so that you have a complete list of nodes, relationships and full text index.
90
 
91
  7. Use multiple function calls if several processes are needed.
92
 
93
- 8. Use only the returned results to answer and always cite the nodes names.
94
 
95
  9. If results are poor, ask the user to clarify, especially to clarify which node
96
  supports answering the question best.
 
64
 
65
  You have access to the following tools:
66
  - get_nodes()
 
67
  - get_index()
68
  - submit_cypher()
69
 
70
 
71
+ 1. Always first call the functions - get_nodes() get_index()
72
+ so that you have a complete list of nodes and full text index.
73
 
74
  2. Answer questions by creating cypher queries you submit over the tool submit_cypher()
75
 
 
77
 
78
  4. Where an index for the node exists, create a query using a fulltext search
79
 
80
+ 5. always request related objects using a generic query '-[]-' to retrieve additional context
 
81
 
82
  6. If no responses are found (empty results):
83
  - Retry with a broader or parent term (e.g., "procurement" if "indirect
 
88
 
89
  7. Use multiple function calls if several processes are needed.
90
 
91
+ 8. Use only the returned results to answer and always cite the nodes names and Type.
92
 
93
  9. If results are poor, ask the user to clarify, especially to clarify which node
94
  supports answering the question best.