|
@@ -82,10 +82,9 @@ def query_graph():
|
|
|
|
|
|
if description:
|
|
|
label_list = llm_client1(description)
|
|
|
- if isinstance(label_list, list) and label_list:
|
|
|
- if not label:
|
|
|
- label = []
|
|
|
- label += label_list
|
|
|
+ # 如果 label_list 是非空列表,则将其与现有的 label 合并
|
|
|
+ if isinstance(label_list, list) and label_list:
|
|
|
+ label.extend(label_list)
|
|
|
|
|
|
if type == 'person':
|
|
|
id_list = similar_seeker(label)
|