Releases: ang-XWBWZ/Pwiki
Releases · ang-XWBWZ/Pwiki
Release list
Pwiki
v1.2.2 更新说明
检索核心
- BM25 倒排索引:关键词搜索从全库扫描升级为倒排索引,25MB terms 文件,<100ms 响应。支持 field-weighted BM25F(title 3.0x / path
2.5x / tags 1.8x / body 1.0x) - tokenizer 增强:支持 snake_case、camelCase、PascalCase、kebab-case、dot/slash 路径拆分。搜 finish reason 能命中
finish_reason,搜 api base 能命中 LLM_API_BASE - candidates 层拆分:semantic 候选不再被展示阈值提前丢弃,hybrid 融合使用 raw candidates
- chunk 粒度读取:新增 wiki_read_chunk / wiki_read_context,搜索结果带 chunkIndex/startLine/endLine/headingPath
索引一致性(本轮重点)
- CRUD 同步:create/modify/rename/move 后 BM25 + embedding 同步更新,不再滞后
- refresh 修复:使用 MD5 检测变更(替代 mtime),自动清理已删除文件的残留索引
- embedding 原子性:文件级 all-or-nothing,失败不污染旧向量
- LLM compile → BM25:编译产出的 topic/concepts/aliases 自动进入倒排索引,搜别名可命中
- 统一清理:removeEntryFromAllStores 一次清空 index/cache/vectors/chunkInfo/manifest/BM25
MCP
- CRUD 异步修复:create/move/rename/modify 改为 await,返回时 semantic 已可用
- 搜索输出增强:显示 chunk 编号、行号和 heading 路径,直接支持 wiki_read_chunk