修改日志
This commit is contained in:
parent
1f65967551
commit
c2d0c13948
@ -92,7 +92,7 @@ class SemanticCacheService:
|
||||
# 标准化问题文本(去除多余空格、统一标点)
|
||||
normalized = self._normalize_question(question)
|
||||
hash_value = hashlib.md5(normalized.encode('utf-8')).hexdigest()[:16]
|
||||
logger.debug(f"[SemanticCache] Hash计算 | 原始={question} | 标准化={normalized} | hash={hash_value}")
|
||||
logger.info(f"[SemanticCache] Hash计算 | 原始={question} | 标准化={normalized} | hash={hash_value}")
|
||||
return hash_value
|
||||
|
||||
def _normalize_question(self, question: str) -> str:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user