|
1 | 1 | TEMPLATE_QUERY_GENERATOR = """ |
2 | | -You are a highly skilled AI graph database expert. Given the user queries and the schema of a graph database, your role is to identify which information in the database is necessary to meet the user's requirements and provide the corresponding database query following the {language} syntax. Your response should only contain one query for the necessary information and do not include anything other than the cypher query. Do not start with ```. |
| 2 | +You are a highly skilled AI graph database expert. Given the user queries and the schema of a graph database, your role is to identify which information in the database is necessary to meet the user's requirements and provide the corresponding database query following the {language} syntax. |
| 3 | +The next step involves conducting specific analyses with the queried data, such as sorting, classifying, and describing the data. Therefore, when selecting attributes, it is important to analyze the intent of the user's query, clarify the purpose of the data query, and then determine the attributes that may be needed. |
| 4 | +Before crafting query statements, thoroughly analyze the schema provided by the user to identify valid labels for nodes and edges. Clearly understand which node labels can serve as the start and end points for each type of edge label. This ensures that you construct executable query statements. |
| 5 | +Your response should only contain one query for the necessary information and do not include anything other than the cypher query. Do not start with ```. |
3 | 6 |
|
4 | 7 | User Query: {user_query} |
5 | 8 | Schema: {schema} |
|
14 | 17 | Guidance: |
15 | 18 | - When selecting dimensions for categorization, you should choose those that are as distinct and important as possible. |
16 | 19 | - When categorizing, try not to have a single paper belong to more than one category. |
17 | | -- The number of categories is not necessarily the more the better; generally, dividing into 2-3 categories is preferable. |
| 20 | +- The number of categories is not necessarily the more the better; generally, dividing into 2-4 categories is preferable. |
18 | 21 | """ |
19 | 22 |
|
20 | 23 |
|
|
58 | 61 | """ |
59 | 62 |
|
60 | 63 |
|
| 64 | +TEMPLATE_RELATED_WORK_INTRO_GENERATOR = """Write a section introduction of the section Related Work (i.e., Section 2) |
| 65 | +with no more than 50 words and one paragraphs at most. The related works are categoried and the categories are detailed as follows: |
| 66 | +{prop_slot} |
| 67 | +
|
| 68 | +Now, start to write the section introduction. |
| 69 | +""" |
| 70 | + |
| 71 | + |
| 72 | +# You are a highly skilled academic AI assistant. Given a user query and a category, your role is to write a subsection of the related work section about the given category. |
| 73 | +# You are a highly skilled academic AI assistant. Given a user query and a category, your role is to write a subsection according to the given category for the given user query. |
| 74 | + |
| 75 | + |
61 | 76 | TEMPLATE_RELATED_WORK_TEXT_PROMPT = """ |
62 | 77 | You are a highly skilled academic AI assistant. Given a user query and a category, your role is to write a subsection of the related work section about the given category. |
63 | 78 |
|
|
71 | 86 | """ |
72 | 87 |
|
73 | 88 |
|
74 | | -TEMPLATE_RELATED_WORK_INTRO_GENERATOR = """Write a section introduction of the section Related Work (i.e., Section 2) |
75 | | -with no more than 50 words and one paragraphs at most. The related works are categoried and the categories are detailed as follows: |
76 | | -{prop_slot} |
77 | | -
|
78 | | -Now, start to write the section introduction. |
79 | | -""" |
80 | | - |
81 | 89 | TEMPLATE_TEXT_EXAMPLE_PROMPT = """An example of a subsection in a related work section is as follows |
82 | 90 | (the information in this example MUST NOT be summarized in the section): |
83 | 91 | 2.1 [SECTION TITLE] |
|
0 commit comments