- knowledge_base.py: _split_body_by_list_items检测表格区域,不切分表格行 - knowledge_base.py: 添加独立表格section,确保表格内容可被搜索匹配 - knowledge_base.py: 表格兜底策略:最佳文档含操作/支持表格时强制加入并置顶 - knowledge_base.py: reranking后无条件优先返回含操作/支持的表格section - .gitignore: 添加msg_history.db和诊断脚本到忽略列表
62 lines
851 B
Plaintext
62 lines
851 B
Plaintext
# Python
|
|
__pycache__/
|
|
*.pyc
|
|
*.pyo
|
|
*.egg-info/
|
|
dist/
|
|
# PyInstaller output (在build目录内),但保留构建脚本
|
|
build/build/
|
|
build/*.log
|
|
build/cert_info.txt
|
|
build/code_signing_cert.*
|
|
build/windowmsgbot/
|
|
|
|
# Virtual environment
|
|
venv/
|
|
.venv/
|
|
.venv311/
|
|
env/
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
|
|
# Config (keep template but ignore local)
|
|
config.json
|
|
local_config.json
|
|
|
|
# User data
|
|
知识库/
|
|
.knowledge_base/
|
|
|
|
# Debug dumps
|
|
.debug/
|
|
tim_dump.txt
|
|
|
|
# OCR debug screenshots
|
|
ocr_debug_*.png
|
|
wechat_ocr_*.png
|
|
|
|
# OCR 调试图片分目录(img/raw 原图 + img/processed 处理后)
|
|
img/
|
|
|
|
# Shell redirect artifacts
|
|
nul
|
|
worker_stderr.txt
|
|
worker_stdout.txt
|
|
|
|
# Logs
|
|
*.log
|
|
|
|
# OS
|
|
Thumbs.db
|
|
.DS_Store
|
|
|
|
# 用户消息数据库(含聊天记录,禁止入库)
|
|
msg_history.db
|
|
|
|
# 诊断脚本/报告(临时调试文件)
|
|
_diag_*.py
|
|
_radical_*.txt
|
|
unicode_radicals.md.bak
|