Merge pull request #515 from zhangch-ss/main
Browse filesfix keywords_extraction_examples format error
- lightrag/prompt.py +6 -6
lightrag/prompt.py
CHANGED
@@ -211,30 +211,30 @@ PROMPTS["keywords_extraction_examples"] = [
|
|
211 |
Query: "How does international trade influence global economic stability?"
|
212 |
################
|
213 |
Output:
|
214 |
-
{
|
215 |
"high_level_keywords": ["International trade", "Global economic stability", "Economic impact"],
|
216 |
"low_level_keywords": ["Trade agreements", "Tariffs", "Currency exchange", "Imports", "Exports"]
|
217 |
-
}
|
218 |
#############################""",
|
219 |
"""Example 2:
|
220 |
|
221 |
Query: "What are the environmental consequences of deforestation on biodiversity?"
|
222 |
################
|
223 |
Output:
|
224 |
-
{
|
225 |
"high_level_keywords": ["Environmental consequences", "Deforestation", "Biodiversity loss"],
|
226 |
"low_level_keywords": ["Species extinction", "Habitat destruction", "Carbon emissions", "Rainforest", "Ecosystem"]
|
227 |
-
}
|
228 |
#############################""",
|
229 |
"""Example 3:
|
230 |
|
231 |
Query: "What is the role of education in reducing poverty?"
|
232 |
################
|
233 |
Output:
|
234 |
-
{
|
235 |
"high_level_keywords": ["Education", "Poverty reduction", "Socioeconomic development"],
|
236 |
"low_level_keywords": ["School access", "Literacy rates", "Job training", "Income inequality"]
|
237 |
-
}
|
238 |
#############################""",
|
239 |
]
|
240 |
|
|
|
211 |
Query: "How does international trade influence global economic stability?"
|
212 |
################
|
213 |
Output:
|
214 |
+
{
|
215 |
"high_level_keywords": ["International trade", "Global economic stability", "Economic impact"],
|
216 |
"low_level_keywords": ["Trade agreements", "Tariffs", "Currency exchange", "Imports", "Exports"]
|
217 |
+
}
|
218 |
#############################""",
|
219 |
"""Example 2:
|
220 |
|
221 |
Query: "What are the environmental consequences of deforestation on biodiversity?"
|
222 |
################
|
223 |
Output:
|
224 |
+
{
|
225 |
"high_level_keywords": ["Environmental consequences", "Deforestation", "Biodiversity loss"],
|
226 |
"low_level_keywords": ["Species extinction", "Habitat destruction", "Carbon emissions", "Rainforest", "Ecosystem"]
|
227 |
+
}
|
228 |
#############################""",
|
229 |
"""Example 3:
|
230 |
|
231 |
Query: "What is the role of education in reducing poverty?"
|
232 |
################
|
233 |
Output:
|
234 |
+
{
|
235 |
"high_level_keywords": ["Education", "Poverty reduction", "Socioeconomic development"],
|
236 |
"low_level_keywords": ["School access", "Literacy rates", "Job training", "Income inequality"]
|
237 |
+
}
|
238 |
#############################""",
|
239 |
]
|
240 |
|