更新API密钥,修改riper-5.mdc配置以禁用自动应用,优化Excel数据验证逻辑,调整检索内容描述,更新多个二进制索引文件。
This commit is contained in:
@@ -251,12 +251,12 @@ class ExcelDataValidator:
|
||||
format_instructions = parser.get_format_instructions()
|
||||
|
||||
prompt = f"""
|
||||
背景:用户正在使用电力造价软件,提出的问题可能涉及电力造价软件的使用帮助,也可能涉及电力造价专业知识。我针对用户问题检索了相关内容,请评估这些检索内容是否与问题相关、是否准确。
|
||||
背景:用户正在使用电力造价软件,提出的问题可能涉及电力造价软件的使用帮助,也可能涉及电力造价专业知识。我针对用户问题检索了相关内容,请评估这些检索内容是否能解答提问。
|
||||
|
||||
问题改写: {rewrite}
|
||||
检索内容: {content}
|
||||
|
||||
检索内容应该与问题主题相关,能够提供有用的信息来回答问题。请分析检索内容是否相关、准确,并以JSON格式返回结果。请提供一个0到1之间的置信度得分,表示你对判断的确信程度。
|
||||
检索内容应该与问题主题相关,能够提供有用的信息来回答问题。请分析检索内容是否能解答提问、准确,并以JSON格式返回结果。请提供一个0到1之间的置信度得分,表示你对判断的确信程度。
|
||||
|
||||
{format_instructions}
|
||||
"""
|
||||
@@ -393,7 +393,7 @@ class ExcelDataValidator:
|
||||
if self.debug:
|
||||
logging.info(f" 验证检索内容...")
|
||||
|
||||
result = self.validate_retrieve_content(llm, rewrite, retrieve_content)
|
||||
result = self.validate_retrieve_content(llm, query, retrieve_content)
|
||||
if isinstance(result, tuple) and len(result) >= 3:
|
||||
is_correct, error_reason, retrieve_confidence = result[:3]
|
||||
confidence_score = max(confidence_score, retrieve_confidence)
|
||||
|
||||
Reference in New Issue
Block a user