增加代码知识库;修复文档处理内容;增加API设置
This commit is contained in:
331
RAG-TEST-TOOLS/satellite_rag_system.log
Normal file
331
RAG-TEST-TOOLS/satellite_rag_system.log
Normal file
@@ -0,0 +1,331 @@
|
||||
2026-03-31 15:41:45,518 - ERROR - 主程序异常: cannot import name 'call_qwen_max' from 'llm_processor' (M:\NewRag\llm_processor.py)
|
||||
Traceback (most recent call last):
|
||||
File "M:\NewRag\main.py", line 478, in <module>
|
||||
main_menu()
|
||||
~~~~~~~~~^^
|
||||
File "M:\NewRag\main.py", line 429, in main_menu
|
||||
feature_retrieval_mode()
|
||||
~~~~~~~~~~~~~~~~~~~~~~^^
|
||||
File "M:\NewRag\main.py", line 205, in feature_retrieval_mode
|
||||
from feature_retriever import FeatureRetriever
|
||||
File "M:\NewRag\feature_retriever.py", line 15, in <module>
|
||||
from llm_processor import get_qwen_embedding, call_qwen_max
|
||||
ImportError: cannot import name 'call_qwen_max' from 'llm_processor' (M:\NewRag\llm_processor.py)
|
||||
2026-03-31 15:46:19,151 - ERROR - 主程序异常: cannot import name 'call_qwen_max' from 'llm_processor' (M:\NewRag\llm_processor.py)
|
||||
Traceback (most recent call last):
|
||||
File "M:\NewRag\main.py", line 477, in <module>
|
||||
main_menu()
|
||||
~~~~~~~~~^^
|
||||
File "M:\NewRag\main.py", line 428, in main_menu
|
||||
feature_retrieval_mode()
|
||||
~~~~~~~~~~~~~~~~~~~~~~^^
|
||||
File "M:\NewRag\main.py", line 205, in feature_retrieval_mode
|
||||
from feature_retriever import FeatureRetriever
|
||||
File "M:\NewRag\feature_retriever.py", line 15, in <module>
|
||||
from llm_processor import get_qwen_embedding, call_qwen_max
|
||||
ImportError: cannot import name 'call_qwen_max' from 'llm_processor' (M:\NewRag\llm_processor.py)
|
||||
2026-03-31 15:48:58,589 - INFO - 正在加载知识库...
|
||||
2026-03-31 15:48:58,592 - WARNING - 知识图谱文件不存在: project_code_knowledge_graph.json
|
||||
2026-03-31 15:48:58,593 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 15:49:27,167 - INFO - 正在加载知识库...
|
||||
2026-03-31 15:49:27,274 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 15:49:44,829 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 15:49:54,869 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 15:55:27,012 - INFO - 正在加载知识库...
|
||||
2026-03-31 15:55:27,094 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 15:55:43,491 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 15:55:43,497 - ERROR - 主程序异常: 'FeatureRetriever' object has no attribute '_extract_function_name_from_context'
|
||||
Traceback (most recent call last):
|
||||
File "M:\NewRag\main.py", line 477, in <module>
|
||||
main_menu()
|
||||
~~~~~~~~~^^
|
||||
File "M:\NewRag\main.py", line 428, in main_menu
|
||||
feature_retrieval_mode()
|
||||
~~~~~~~~~~~~~~~~~~~~~~^^
|
||||
File "M:\NewRag\main.py", line 253, in feature_retrieval_mode
|
||||
func_name = retriever._extract_function_name_from_context(result["context"])
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
AttributeError: 'FeatureRetriever' object has no attribute '_extract_function_name_from_context'
|
||||
2026-03-31 15:56:31,176 - INFO - 正在加载知识库...
|
||||
2026-03-31 15:56:31,258 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 15:56:47,047 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 16:11:27,459 - INFO - 正在加载知识库...
|
||||
2026-03-31 16:11:27,539 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 16:14:04,518 - INFO - 正在加载知识库...
|
||||
2026-03-31 16:14:04,600 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 16:14:12,368 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 16:15:25,058 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 16:15:25,068 - ERROR - 解析LLM返回的JSON失败: Expecting value: line 16 column 17 (char 734)
|
||||
LLM响应:
|
||||
```json
|
||||
{
|
||||
"verdict": "完整实现",
|
||||
"confidence": 0.95,
|
||||
"primary_reasoning": "根据用户需求'星敏陀螺校验',结合候选函数分析档案,可以确定`StarCheckGyro`和`Gyro_CC`两个函数共同实现了该需求。`StarCheckGyro`负责基于星敏感器数据对陀螺仪进行准确性检查与校正,而`Gyro_CC`则进一步确保了陀螺仪数据的一致性。这两个函数在调用链、设计模式契合度、模块协调性和语义覆盖深度方面均满足要求。",
|
||||
"constraint_analysis": {
|
||||
"functional_completeness": {
|
||||
"status": "满足",
|
||||
"reason": "`Att_CrossCheck`作为主入口函数,根据星敏感器的有效性状态选择合适的校验流程,并调用了`StarCheckGyro`和`Gyro_CC`来完成陀螺仪的校验。整个调用链覆盖了从输入(星敏感器数据)到处理(陀螺仪校验)再到输出(更新陀螺仪状态标志)的全过程,没有逻辑断点。"
|
||||
},
|
||||
"architectural_fit": {
|
||||
"status": "匹配",
|
||||
"reason": "`Att_CrossCheck`体现了“模板方法”中的步骤定义或“外观”模式接口,通过一系列子函数调用来完成复杂的校验过程。这种设计模式使得系统行为清晰且易于扩展,符合用户需求中对系统解耦的要求。"
|
||||
},
|
||||
"module_coordination": {
|
||||
"status": "协调",
|
||||
"reason": `StarCheckGyro`和`Gyro_CC`都位于`AttDataPre.c`文件中,且由同一个父函数`Att_CrossCheck`调用,它们在语义上属于同一业务领域(航天器姿态控制系统的数据预处理),并且数据流清晰合理。"
|
||||
},
|
||||
"semantic_coverage": {
|
||||
"status": "覆盖",
|
||||
"reason": `StarCheckGyro`明确提到了基于星敏感器数据对陀螺仪进行准确性检查与校正,而`Gyro_CC`则进一步确保了陀螺仪数据的一致性。这两个函数的核心功能精准地覆盖了用户需求的核心意图,即星敏陀螺校验。"
|
||||
}
|
||||
},
|
||||
"most_relevant_functions": [
|
||||
{
|
||||
"name": "StarCheckGyro",
|
||||
"role": "关键计算",
|
||||
"supporting_evidence": "该函数主要用于航天器上陀螺仪数据的准确性检查与校正,基于星敏感器数据进行校验。"
|
||||
},
|
||||
{
|
||||
"name": "Gyro_CC",
|
||||
"role": "一致性校验",
|
||||
"supporting_evidence": "该函数用于航天器姿态控制系统中陀螺仪数据的一致性校验,确保数据的可靠性和准确性。"
|
||||
},
|
||||
{
|
||||
"name": "Att_CrossCheck",
|
||||
"role": "主入口",
|
||||
"supporting_evidence": "该函数根据星敏感器的有效性状态选择合适的校验流程,并调用`StarCheckGyro`和`Gyro_CC`等子函数来完成陀螺仪的校验。"
|
||||
}
|
||||
],
|
||||
"gap_analysis": ""
|
||||
}
|
||||
```
|
||||
2026-03-31 16:19:11,079 - INFO - 正在加载知识库...
|
||||
2026-03-31 16:19:11,165 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 16:19:19,202 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 16:20:06,737 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 16:20:06,749 - ERROR - 解析LLM返回的JSON失败: Expecting ',' delimiter: line 4 column 56 (char 100)
|
||||
LLM响应:
|
||||
n
|
||||
{
|
||||
"verdict": "完整实现",
|
||||
"confidence": 0.95,
|
||||
"primary_reasoning": "根据用户需求'星敏陀螺校验',结合候选函数分析档案,可以确定"StarCheckGyro"和"Att_CrossCheck"两个函数共同实现了该需求。"StarCheckGyro"负责具体的陀螺仪数据准确性检查与校正,而"Att_CrossCheck"则作为主入口,根据星敏感器的有效性状态选择合适的校验流程,并调用"StarCheckGyro"进行陀螺仪校验。整个过程覆盖了从输入到处理再到输出的全过程,且相关函数在语义上属于同一业务领域,数据流清晰合理。",
|
||||
"constraint_analysis": {
|
||||
"functional_completeness": {
|
||||
"status": "满足",
|
||||
"reason": ""Att_CrossCheck"作为主入口,根据星敏感器的有效性状态选择合适的校验流程,并调用"StarCheckGyro"进行陀螺仪校验。"StarCheckGyro"负责具体的陀螺仪数据准确性检查与校正。整个调用链覆盖了从输入到处理再到输出的全过程,没有逻辑断点。"
|
||||
},
|
||||
"architectural_fit": {
|
||||
"status": "匹配",
|
||||
"reason": ""Att_CrossCheck"体现了模板方法模式,定义了校验流程的步骤,并根据具体情况选择不同的校验子流程。这种设计模式与用户需求所描述的系统行为模式相匹配,能够灵活应对不同情况下的校验需求。"
|
||||
},
|
||||
"module_coordination": {
|
||||
"status": "协调",
|
||||
"reason": ""Att_CrossCheck"和"StarCheckGyro"共同构成了一个高内聚、低耦合的功能模块。它们在语义上属于同一业务领域(航天器姿态控制系统的数据校验),并且数据流清晰合理。"
|
||||
},
|
||||
"semantic_coverage": {
|
||||
"status": "覆盖",
|
||||
"reason": "StarCheckGyro"的核心功能是陀螺仪数据的准确性检查与校正,这与用户需求中的“星敏陀螺校验”完全吻合。"Att_CrossCheck"则负责根据星敏感器的状态选择合适的校验流程,确保了整个校验过程的完整性。"
|
||||
}
|
||||
},
|
||||
"most_relevant_functions": [
|
||||
{
|
||||
"name": "StarCheckGyro",
|
||||
"role": "关键计算",
|
||||
"supporting_evidence": "该函数主要用于航天器上陀螺仪数据的准确性检查与校正,计算每个陀螺仪在X、Y、Z三个轴上的角速度偏差,并更新每个陀螺仪的状态标志。"
|
||||
},
|
||||
{
|
||||
"name": "Att_CrossCheck",
|
||||
"role": "主入口",
|
||||
"supporting_evidence": "该函数根据星敏感器的有效性状态选择合适的校验流程,并调用"StarCheckGyro"进行陀螺仪校验。"
|
||||
}
|
||||
],
|
||||
"gap_analysis": ""
|
||||
}
|
||||
2026-03-31 17:07:16,051 - INFO - 正在加载知识库...
|
||||
2026-03-31 17:07:16,135 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 17:07:22,840 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 17:08:13,568 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 17:08:13,578 - WARNING - 首次JSON解析失败 (位置 780),尝试清理和修复。错误: Expecting value
|
||||
2026-03-31 17:08:13,578 - ERROR - 修复后JSON解析仍然失败 (位置 4)。修复后文本片段:
|
||||
...{
|
||||
\"verdict\": \"完整实现\",
|
||||
\"confidence\": 0.95,
|
||||
\...
|
||||
2026-03-31 17:08:13,579 - ERROR - LLM响应JSON修复后解析仍失败。原始响应:
|
||||
```json
|
||||
{
|
||||
"verdict": "完整实现",
|
||||
"confidence": 0.95,
|
||||
"primary_reasoning": "根据用户需求'星敏陀螺校验',结合候选函数分析档案,可以确定`StarCheckGyro`和`Att_CrossCheck`两个函数共同实现了该需求。`StarCheckGyro`负责具体的陀螺仪数据准确性检查与校正,而`Att_CrossCheck`则作为主控函数,根据星敏感器的有效性状态选择合适的校验流程,并调用`StarCheckGyro`进行陀螺仪校验。整个调用链覆盖了从输入到处理再到输出的全过程,且相关函数在语义上属于同一业务领域,数据流清晰合理。",
|
||||
"constraint_analysis": {
|
||||
"functional_completeness": {
|
||||
"status": "满足",
|
||||
"reason": "`Att_CrossCheck`作为主控函数,根据星敏感器的有效性状态选择合适的校验流程,并调用`StarCheckGyro`进行陀螺仪校验。`StarCheckGyro`负责具体的陀螺仪数据准确性检查与校正。整个调用链覆盖了从输入到处理再到输出的全过程,没有逻辑断点。"
|
||||
},
|
||||
"architectural_fit": {
|
||||
"status": "匹配",
|
||||
"reason": "`Att_CrossCheck`体现了责任链或管道模式,通过多级处理来完成姿态控制系统的校验任务。这种设计模式与用户需求中描述的系统行为模式相匹配,能够灵活地扩展和解耦不同的校验步骤。"
|
||||
},
|
||||
"module_coordination": {
|
||||
"status": "协调",
|
||||
"reason": `StarCheckGyro`和`Att_CrossCheck`及其相关的辅助函数(如`Gyro_CC`、`SSABC_CC`等)共同构成了一个高内聚、低耦合的功能模块。这些函数在语义上都属于航天器姿态控制系统中的校验业务领域,数据流清晰合理。"
|
||||
},
|
||||
"semantic_coverage": {
|
||||
"status": "覆盖",
|
||||
"reason": `StarCheckGyro`的核心功能是进行陀螺仪数据的准确性检查与校正,这与用户需求中的“星敏陀螺校验”完全一致。`Att_CrossCheck`则负责根据星敏感器的有效性状态选择合适的校验流程,确保了整个校验过程的完整性。"
|
||||
}
|
||||
},
|
||||
"most_relevant_functions": [
|
||||
{
|
||||
"name": "StarCheckGyro",
|
||||
"role": "关键计算",
|
||||
"supporting_evidence": "该函数主要用于航天器上陀螺仪数据的准确性检查与校正,计算每个陀螺仪在X、Y、Z三个轴上的角速度偏差,并更新陀螺仪的状态标志。"
|
||||
},
|
||||
{
|
||||
"name": "Att_CrossCheck",
|
||||
"role": "主入口",
|
||||
"supporting_evidence": "该函数根据星敏感器的有效性状态选择合适的校验流程,并调用`StarCheckGyro`进行陀螺仪校验。它作为主控函数,确保了整个校验过程的完整性。"
|
||||
}
|
||||
],
|
||||
"gap_analysis": ""
|
||||
}
|
||||
```
|
||||
2026-03-31 17:12:55,570 - INFO - 正在加载知识库...
|
||||
2026-03-31 17:12:55,656 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 17:13:03,894 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 17:13:48,345 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 17:17:20,840 - INFO - 正在加载知识库...
|
||||
2026-03-31 17:17:20,920 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 17:18:31,162 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 17:19:21,236 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 17:31:32,351 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 17:31:34,566 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 17:31:36,324 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 17:31:37,462 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:45:03,058 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:45:11,822 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:45:12,568 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:45:14,338 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:45:59,959 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:46:01,841 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:46:12,249 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:46:12,776 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:46:14,092 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:46:24,661 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:46:28,605 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:46:29,134 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:46:53,979 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:46:54,598 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:46:57,424 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:48:20,152 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:48:20,470 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:48:30,962 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:48:31,646 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:48:31,962 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:48:42,178 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:48:45,917 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:48:46,563 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:49:11,856 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:49:15,630 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:49:15,820 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:49:31,609 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:49:35,022 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 18:49:35,506 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 19:26:43,236 - INFO - === 交互式知识图谱构建流程 ===
|
||||
2026-03-31 19:26:45,726 - ERROR - 项目路径不存在或不是目录: \PrjAttCtrlMng
|
||||
2026-03-31 19:32:05,348 - ERROR - 主程序异常: 'str' object has no attribute 'exists'
|
||||
Traceback (most recent call last):
|
||||
File "M:\NewRag\main.py", line 745, in <module>
|
||||
main_menu()
|
||||
~~~~~~~~~^^
|
||||
File "M:\NewRag\main.py", line 688, in main_menu
|
||||
kb_exists, _, _ = check_knowledge_base_exists()
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
|
||||
File "M:\NewRag\main.py", line 99, in check_knowledge_base_exists
|
||||
if old_logic_path.exists():
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
AttributeError: 'str' object has no attribute 'exists'
|
||||
2026-03-31 19:52:00,638 - INFO - 正在加载知识库...
|
||||
2026-03-31 19:52:00,640 - WARNING - 知识图谱文件不存在:
|
||||
2026-03-31 19:52:00,640 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 19:57:24,224 - INFO - 正在加载知识库...
|
||||
2026-03-31 19:57:24,226 - WARNING - 知识图谱文件不存在:
|
||||
2026-03-31 19:57:24,227 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-03-31 19:57:36,058 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 19:58:10,444 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 19:58:40,923 - INFO - === 交互式知识图谱构建流程 ===
|
||||
2026-03-31 19:58:46,941 - INFO - 阶段一:静态分析,提取代码实体与结构关系...
|
||||
2026-03-31 19:58:46,941 - INFO - 处理项目目录: .
|
||||
2026-03-31 19:58:46,946 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttCmdAct.c
|
||||
2026-03-31 19:58:46,954 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttCtrlMain.c
|
||||
2026-03-31 19:58:46,999 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttCtrlMain.h
|
||||
2026-03-31 19:58:47,003 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttDaoYing.c
|
||||
2026-03-31 19:58:47,005 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttDataPre.c
|
||||
2026-03-31 19:58:47,027 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttEnvMod.c
|
||||
2026-03-31 19:58:47,038 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttMath.c
|
||||
2026-03-31 19:58:47,047 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttMath.h
|
||||
2026-03-31 19:58:47,048 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttModeSel.c
|
||||
2026-03-31 19:58:47,052 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttPosCtrl.c
|
||||
2026-03-31 19:58:47,061 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttPosGet.c
|
||||
2026-03-31 19:58:47,074 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttRECheck.c
|
||||
2026-03-31 19:58:47,101 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttCmdAct.c
|
||||
2026-03-31 19:58:47,110 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttCtrlMain.c
|
||||
2026-03-31 19:58:47,154 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttCtrlMain.h
|
||||
2026-03-31 19:58:47,159 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttDaoYing.c
|
||||
2026-03-31 19:58:47,161 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttDataPre.c
|
||||
2026-03-31 19:58:47,187 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttEnvMod.c
|
||||
2026-03-31 19:58:47,201 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttMath.c
|
||||
2026-03-31 19:58:47,212 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttMath.h
|
||||
2026-03-31 19:58:47,213 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttModeSel.c
|
||||
2026-03-31 19:58:47,218 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttPosCtrl.c
|
||||
2026-03-31 19:58:47,229 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttPosGet.c
|
||||
2026-03-31 19:58:47,244 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttRECheck.c
|
||||
2026-03-31 19:58:47,265 - INFO - 已处理 9 个文件
|
||||
2026-03-31 19:58:47,265 - INFO - 阶段一完成。初步识别节点数: 300
|
||||
2026-03-31 19:58:47,265 - INFO - 阶段二:解析符号,构建函数调用图 (CALLS 边)...
|
||||
2026-03-31 19:58:47,272 - INFO - 阶段二完成。已构建边数: 500
|
||||
2026-03-31 19:58:51,651 - INFO - 用户跳过阶段三(语义增强)
|
||||
2026-03-31 19:58:53,873 - INFO - 用户取消保存,退出构建流程
|
||||
2026-03-31 20:01:33,811 - INFO - === 交互式知识图谱构建流程 ===
|
||||
2026-03-31 20:01:38,401 - INFO - 阶段一:静态分析,提取代码实体与结构关系...
|
||||
2026-03-31 20:01:38,401 - INFO - 处理项目目录: .
|
||||
2026-03-31 20:01:38,405 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttCmdAct.c
|
||||
2026-03-31 20:01:38,415 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttCtrlMain.c
|
||||
2026-03-31 20:01:38,457 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttCtrlMain.h
|
||||
2026-03-31 20:01:38,462 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttDaoYing.c
|
||||
2026-03-31 20:01:38,463 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttDataPre.c
|
||||
2026-03-31 20:01:38,485 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttEnvMod.c
|
||||
2026-03-31 20:01:38,496 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttMath.c
|
||||
2026-03-31 20:01:38,504 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttMath.h
|
||||
2026-03-31 20:01:38,505 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttModeSel.c
|
||||
2026-03-31 20:01:38,509 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttPosCtrl.c
|
||||
2026-03-31 20:01:38,518 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttPosGet.c
|
||||
2026-03-31 20:01:38,531 - INFO - 处理单个文件: .\dist\NewRag\_internal\PrjAttCtrlMng\AttRECheck.c
|
||||
2026-03-31 20:01:38,557 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttCmdAct.c
|
||||
2026-03-31 20:01:38,566 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttCtrlMain.c
|
||||
2026-03-31 20:01:38,610 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttCtrlMain.h
|
||||
2026-03-31 20:01:38,615 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttDaoYing.c
|
||||
2026-03-31 20:01:38,616 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttDataPre.c
|
||||
2026-03-31 20:01:38,640 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttEnvMod.c
|
||||
2026-03-31 20:01:38,653 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttMath.c
|
||||
2026-03-31 20:01:38,662 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttMath.h
|
||||
2026-03-31 20:01:38,663 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttModeSel.c
|
||||
2026-03-31 20:01:38,667 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttPosCtrl.c
|
||||
2026-03-31 20:01:38,677 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttPosGet.c
|
||||
2026-03-31 20:01:38,691 - INFO - 处理单个文件: .\PrjAttCtrlMng\AttRECheck.c
|
||||
2026-03-31 20:01:38,712 - INFO - 已处理 9 个文件
|
||||
2026-03-31 20:01:38,713 - INFO - 阶段一完成。初步识别节点数: 300
|
||||
2026-03-31 20:01:38,713 - INFO - 阶段二:解析符号,构建函数调用图 (CALLS 边)...
|
||||
2026-03-31 20:01:38,719 - INFO - 阶段二完成。已构建边数: 500
|
||||
2026-03-31 20:05:28,549 - INFO - === 交互式知识图谱构建流程 ===
|
||||
2026-03-31 20:31:16,699 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 20:31:16,928 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 200 OK"
|
||||
2026-03-31 20:39:35,003 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-03-31 20:43:52,018 - INFO - 正在加载知识库...
|
||||
2026-03-31 20:43:52,020 - WARNING - 知识图谱文件不存在:
|
||||
2026-03-31 20:43:52,020 - INFO - 知识库加载成功: 138 个函数
|
||||
2026-04-12 19:31:39,320 - INFO - 姝e湪鍔犺浇鐭ヨ瘑搴<E79891>...
|
||||
2026-04-12 19:31:39,327 - WARNING - 鐭ヨ瘑鍥捐氨鏂囦欢涓嶅瓨鍦<E793A8>:
|
||||
2026-04-12 19:31:39,328 - INFO - 鐭ヨ瘑搴撳姞杞芥垚鍔<E59E9A>: 138 涓<>嚱鏁<E59AB1>
|
||||
Reference in New Issue
Block a user