Larfii commited on
Commit
2bd1942
·
1 Parent(s): fbbd458

Fix JSON parsing error

Browse files
Files changed (1) hide show
  1. lightrag/operate.py +0 -2
lightrag/operate.py CHANGED
@@ -486,8 +486,6 @@ async def kg_query(
486
 
487
  hl_keywords = keywords_data.get("high_level_keywords", [])
488
  ll_keywords = keywords_data.get("low_level_keywords", [])
489
-
490
- return hl_keywords, ll_keywords
491
  else:
492
  logger.error("No JSON-like structure found in the result.")
493
  return PROMPTS["fail_response"]
 
486
 
487
  hl_keywords = keywords_data.get("high_level_keywords", [])
488
  ll_keywords = keywords_data.get("low_level_keywords", [])
 
 
489
  else:
490
  logger.error("No JSON-like structure found in the result.")
491
  return PROMPTS["fail_response"]