智能化P1: 新增5张wiki_前缀表与全量可配参数
- models.py 新增 wiki_positions/users/user_profiles/sessions/session_messages 五张表,主键统一 CHAR(36) UUID,全部字段带中文注释 - wiki_query_logs 升级为全量审计表,扩 user_id/source/client_ip/ tool_calls_json 与 input/output/cached_input_tokens 七个字段, 其中 cached_input_tokens 是验证 sys_prompt 前缀缓存重排效果的依据 - schema_sync 由五段重复代码重构为表驱动,新增列只需追加清单项, 并支持索引补建 - config.py 新增认证/滑动窗口/摘要/沉淀/画像等三十余项可配参数
Showing
4 changed files
with
236 additions
and
60 deletions
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment