jiayongqiang 15 ore fa
parent
commit
0b8139be7b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      agent/src/agent/api_outter.py

+ 1 - 1
agent/src/agent/api_outter.py

@@ -184,7 +184,7 @@ async def run_ai_pipeline(log_id: str, tag_category_id: str, phrase: str, instuc
             if not result or len(result) == 0:
                 result = vector_similarity_search(phrase)
             # step3: LLM 打标
-            if result:
+            if result and len(result) > 0:
                 try:
                     tags = dao.query_dict(""" select id,tag_nm as tag_name,tag_code, tag_path,category_id,tag_prompt from aitag_tag_info where id in %s """, (tuple(result),))
                     logger.info(f"筛选结果: {tags}")