[fix]Reduce the default number of items returned for popular tags

This commit is contained in:
lanceyq
2026-02-27 14:59:28 +08:00
parent ed0d963aec
commit 6db6c33564

View File

@@ -139,10 +139,10 @@ async def get_raw_tags_from_db(
return [(record["name"], record["frequency"]) for record in results]
async def get_hot_memory_tags(end_user_id: str, limit: int = 40, by_user: bool = False) -> List[Tuple[str, int]]:
async def get_hot_memory_tags(end_user_id: str, limit: int = 10, by_user: bool = False) -> List[Tuple[str, int]]:
"""
获取原始标签然后使用LLM进行筛选返回最终的热门标签列表。
查询更多的标签(limit=40)给LLM提供更丰富的上下文进行筛选。
查询更多的标签(limit=10)给LLM提供更丰富的上下文进行筛选。
Args:
end_user_id: 必需参数。如果by_user=False则为end_user_id如果by_user=True则为user_id