mirror of
https://github.com/OpenSPG/KAG.git
synced 2025-06-27 03:20:08 +00:00
fix(solver): bugfix SPO Retrieval LLM response parse (#378)
* bugfix official_name node has same prop object * reformat by black * adapter spo retrieval llm response
This commit is contained in:
parent
6a16df3565
commit
5d12979694
@ -112,6 +112,8 @@ class SpoRetrieval(PromptABC):
|
||||
f"SpoRetrieval {response} mention:{self.template_variables_value.get('mention', '')} "
|
||||
f"candis:{self.template_variables_value.get('candis', '')}"
|
||||
)
|
||||
if isinstance(response, list):
|
||||
return response
|
||||
if not isinstance(response, dict):
|
||||
return []
|
||||
if "output" in response:
|
||||
|
Loading…
x
Reference in New Issue
Block a user