chore/ 删除无用文件
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
ClassificationAgent:将内容分类到 8 个章节类别,或判定无价值返回 None。
|
||||
对应现有逻辑:_classify_chapter_category
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Optional
|
||||
@@ -63,7 +64,9 @@ class ClassificationAgent:
|
||||
response = llm.invoke(prompt)
|
||||
category = (response.content or "").strip().lower()
|
||||
if category == "none":
|
||||
logger.info("LLM 判定内容无回忆录价值,跳过: %s...", (text or "")[:80])
|
||||
logger.info(
|
||||
"LLM 判定内容无回忆录价值,跳过: %s...", (text or "")[:80]
|
||||
)
|
||||
return None
|
||||
if category in CHAPTER_CATEGORIES:
|
||||
return category
|
||||
|
||||
Reference in New Issue
Block a user