liuzhiheng 2 месяцев назад
Родитель
Сommit
ac7b3f4aa5

+ 1 - 1
examples_how/overall_derivation/generate_visualize_data.py

@@ -495,5 +495,5 @@ def main(account_name, post_id, log_id):
 if __name__ == "__main__":
     account_name="家有大志"
     post_id = "68fb6a5c000000000302e5de"
-    log_id="20260312162440"
+    log_id="20260312215513"
     main(account_name, post_id, log_id)

+ 1 - 1
examples_how/overall_derivation/tools/match_and_extract_prompt.md

@@ -20,7 +20,7 @@
 - 判断时以语义相关性为标准,不要求关键词完全一致
 
 # 关键词提取规则
-- 提取帖子中**明确出现**的主题词、核心概念(可参考标题、正文话题标签、图片可见内容)
+- 提取帖子中**明确出现**的主题词、核心概念(可参考标题、正文话题标签、图片内容),注意*图片**中往往包含了帖子的核心内容,需充分理解并重点参考
 - 使用简洁的名词短语表述(如"DIY改造"、"脑洞创意"、"趣味道具"、"场景化种草")
 - 每个帖子提取 3~8 个关键词,过多会降低精度
 - **禁止**自行编造或联想帖子中不存在的关键词

+ 3 - 2
examples_how/overall_derivation/tools/search_and_eval.py

@@ -76,7 +76,7 @@ async def _do_search(query: str, channel: str) -> Optional[List[dict]]:
         "type": channel,
         "keyword": query,
         "cursor": "0",
-        "max_count": 5,
+        "max_count": 10,
         "content_type": "图文",
     }
     try:
@@ -203,7 +203,8 @@ async def _eval_single_post(
         )
 
         # 仅对与人设匹配的帖子做选题点匹配
-        if result["persona_match_result"] and result["post_keywords"]:
+        # if result["persona_match_result"] and result["post_keywords"]:
+        if result["post_keywords"]:
             matched = await match_derivation_to_post_points(
                 result["post_keywords"], account_name, post_id
             )