Skip to content

Commit b2b6115

Browse files
fix: delete trailing whitespace in prompts
1 parent 8360c09 commit b2b6115

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

graphgen/templates/extraction/schema_guided_extraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
3. Present your findings in JSON format as specified below.
88
99
Important Notes:
10-
- Extract only relevant information.
10+
- Extract only relevant information.
1111
- Consider the context of the entire document when determining relevance.
1212
- Do not be verbose, only respond with the correct format and information.
1313
- Some docs may have multiple relevant excerpts -- include all that apply.

graphgen/templates/generation/cot_generation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
107107
5. 推理路径生成
108108
- 根据问题设计一个**可被后续模型直接执行的推理蓝图**。
109-
- 保持步骤最小化:每一步只解决一个“不可分割”的子问题。
109+
- 保持步骤最小化:每一步只解决一个“不可分割”的子问题。
110110
111111
-约束条件-
112112
1. 不要在回答中描述你的思考过程,直接给出回复,只给出问题和推理路径设计,不要生成无关信息。
@@ -155,7 +155,7 @@
155155
- The question must be verifiable directly within the graph through entities, relationships, or attributes; avoid subjective judgments.
156156
- The question should allow the model to think sufficiently, fully utilizing the entities and relationships in the graph, avoiding overly simple or irrelevant questions.
157157
158-
5. Reasoning-Path Design
158+
5. Reasoning-Path Design
159159
- Output a **blueprint that any later model can directly execute**.
160160
- Keep steps minimal: each step solves one indivisible sub-problem.
161161

graphgen/templates/kg/mm_kg_extraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
- target_entity: The name of the target entity identified in Step 1
2727
- relationship_summary: Explain why you think the source entity and target entity are related to each other
2828
Format each relationship as ("relationship"{tuple_delimiter}<source_entity>{tuple_delimiter}<target_entity>{tuple_delimiter}<relationship_summary>)
29-
29+
3030
3. Return the output list of all entities and relationships identified in Steps 1 and 2 in English. Use **{record_delimiter}** as the list separator.
3131
3232
4. Upon completion, output {completion_delimiter}

graphgen/templates/search_judgement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# pylint: disable=C0301
22

33
TEMPLATE: str = """-Goal-
4-
Please select the most relevant searcher result for the given entity.
4+
Please select the most relevant searcher result for the given entity.
55
The name and description of the entity are provided. The searcher results are provided as a list.
66
Please select the most relevant searcher result from the list. If none of the searcher results are relevant, please select 'None of the above'.
77

0 commit comments

Comments
 (0)