fix detached instance error in keyword index create thread and fix question classifier node out of index error (#3219)
This commit is contained in:
parent
581836b716
commit
33ea689861
2 changed files with 9 additions and 4 deletions
|
|
@ -65,7 +65,9 @@ class QuestionClassifierNode(LLMNode):
|
|||
categories = [_class.name for _class in node_data.classes]
|
||||
try:
|
||||
result_text_json = json.loads(result_text.strip('```JSON\n'))
|
||||
categories = result_text_json.get('categories', [])
|
||||
categories_result = result_text_json.get('categories', [])
|
||||
if categories_result:
|
||||
categories = categories_result
|
||||
except Exception:
|
||||
logging.error(f"Failed to parse result text: {result_text}")
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue