Update config, core models, and web app; refresh Python 3.11 cache

This commit includes general updates to application configuration, core data models, and various web application components (knowledge base, error handling, static assets, and websocket server). It also refreshes the Python 3.11 bytecode cache, likely due to underlying code changes and environment alignment.
This commit is contained in:
2025-12-12 13:39:43 +08:00
parent 2026007045
commit e3c68b5133
127 changed files with 4826 additions and 36 deletions

View File

@@ -0,0 +1,9 @@
{
"init_time": "2025-12-12T13:31:25.459591",
"database_version": "SQLite 3.43.1",
"database_url": "sqlite:///tsp_assistant.db",
"migrations_applied": 0,
"tables_created": 9,
"initial_data_inserted": true,
"verification_passed": true
}

Binary file not shown.

File diff suppressed because one or more lines are too long

9
logs/tsp_assistant.log Normal file
View File

@@ -0,0 +1,9 @@
2025-12-12 13:30:49,040 - src.core.database - ERROR - 数据库操作失败: 'search_frequency' is an invalid keyword argument for KnowledgeEntry
2025-12-12 13:31:25,399 - src.vehicle.vehicle_data_manager - INFO - 添加车辆数据成功: V001 - location
2025-12-12 13:31:25,404 - src.vehicle.vehicle_data_manager - INFO - 添加车辆数据成功: V001 - status
2025-12-12 13:31:25,409 - src.vehicle.vehicle_data_manager - INFO - 添加车辆数据成功: V001 - battery
2025-12-12 13:31:25,414 - src.vehicle.vehicle_data_manager - INFO - 添加车辆数据成功: V001 - engine
2025-12-12 13:31:25,419 - src.vehicle.vehicle_data_manager - INFO - 添加车辆数据成功: V002 - location
2025-12-12 13:31:25,424 - src.vehicle.vehicle_data_manager - INFO - 添加车辆数据成功: V002 - status
2025-12-12 13:31:25,429 - src.vehicle.vehicle_data_manager - INFO - 添加车辆数据成功: V002 - fault
2025-12-12 13:31:25,429 - src.vehicle.vehicle_data_manager - INFO - 示例车辆数据添加成功

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -10,8 +10,8 @@ class Config:
ALIBABA_MODEL_NAME = "qwen-plus-latest" ALIBABA_MODEL_NAME = "qwen-plus-latest"
# 数据库配置 # 数据库配置
DATABASE_URL = "mysql+pymysql://tsp_assistant:123456@jeason.online/tsp_assistant?charset=utf8mb4" DATABASE_URL = "mysql+pymysql://tsp_assistant:123456@43.134.68.207/tsp_assistant?charset=utf8mb4"
# DATABASE_URL = "sqlite:///local_test.db" # 本地测试数据库 # DATABASE_URL = "sqlite:///tsp_assistant.db" # 本地测试数据库
# 知识库配置 # 知识库配置
KNOWLEDGE_BASE_PATH = "data/knowledge_base" KNOWLEDGE_BASE_PATH = "data/knowledge_base"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -86,6 +86,9 @@ class KnowledgeEntry(Base):
verified_by = Column(String(100)) # 验证人 verified_by = Column(String(100)) # 验证人
verified_at = Column(DateTime) # 验证时间 verified_at = Column(DateTime) # 验证时间
vector_embedding = Column(Text) # 向量嵌入的JSON字符串 vector_embedding = Column(Text) # 向量嵌入的JSON字符串
search_frequency = Column(Integer, default=0) # 搜索频率
last_accessed = Column(DateTime) # 最后访问时间
relevance_score = Column(Float, default=0.0) # 相关性评分
class VehicleData(Base): class VehicleData(Base):
"""车辆实时数据模型""" """车辆实时数据模型"""

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More