| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(kb): add Markdown-aware chunker for structured documents (#8151) * feat(kb): add Markdown-aware chunker for structured documents * fix: address review feedback from sourcery-ai and gemini - Clamp max_heading_depth to 1-6 to prevent regex errors - Deduct prefix length when splitting oversized sections - Replace hardcoded "[续]" with configurable continuation_prefix - Skip fenced code blocks when detecting headings - Cap pending size to prevent chunks exceeding chunk_size - Refactor into dataclass + helper methods * fix: handle unmatched fenced code block at EOF * fix: prevent chunks exceeding chunk_size with long heading prefixes * chore: rf --------- Co-authored-by: Soulter <905617992@qq.com> | 5 个月前 | |
fix: preserve inline anchor text when parsing EPUB files (#10794) | 22 天前 | |
fix: resolve rerank provider by ID on every retrieval (#10263) | 7 小时前 | |
perf(db): apply per-connection SQLite PRAGMAs in connect hook (#11407) | 3 天前 | |
fix(kb): space out concurrent waiters in the URL cleaning RateLimiter (#10015) * fix(kb): space out concurrent waiters in the URL cleaning RateLimiter URL content cleaning processes all chunks with asyncio.gather and a shared RateLimiter. Every coroutine read the same last_call_time before sleeping, so they all woke up at the same moment and fired their requests together; the configured RPM did not bound that burst and larger documents could trip the upstream limit. Reserve the next release slot under a lock (sleeping outside it), so waiters are released one interval apart, in order. Idle time is still credited and max_rpm=0 still disables limiting. Fixes #9995 * fix(kb): reserve RateLimiter slots under a lock so waiters do not burst The first commit only carried the test; this adds the RateLimiter change it exercises. Each waiter now reserves the next release slot under an asyncio.Lock and sleeps until that slot, so concurrent callers are released one interval apart instead of waking up together. * fix(kb): preserve rate limit spacing after event loop stalls --------- Co-authored-by: Soulter <905617992@qq.com> | 2 个月前 | |
fix(kb): support UUID fallback in get_kb_by_name and warn on missing KBs (#9636) Fixes #9529. When kb_names contains UUIDs instead of names, get_kb_by_name() would return None and check_all_kb() would silently skip retrieval with only a DEBUG-level log. Modifications: - get_kb_by_name() now falls back to UUID lookup when name match fails - check_all_kb() distinguishes None (not found) from empty KBs and logs a WARNING with the count of missing KBs - Add regression tests covering UUID lookup, name preference, and logging | 3 个月前 | |
fix: enforce Python 3.12 at startup and align Ruff (#11469) * fix: align runtime version comparison * fix: check the Python version before startup imports * chore: target Python 3.12 in Ruff --------- Co-authored-by: wcqqq1214 <wcqqq1214@gmail.com> | 2 天前 | |
feat: Add URL document parser for knowledge base (#3622) * feat: 添加从 URL 上传文档的功能,支持进度回调和错误处理 * feat: 添加从 URL 上传文档的前端 * chore: 添加 URL 上传功能的警告提示,确保用户配置正确 * feat: 添加内容清洗功能,支持从 URL 上传文档时的清洗设置和服务提供商选择 * feat: 更新内容清洗系统提示,增强信息提取规则;添加 URL 上传功能的测试版标识 * style: format code * perf: 优化上传设置,增强 URL 上传时的禁用逻辑和清洗提供商验证 * refactor:使用自带chunking模块 * refactor: 提取prompt到单独文件 * feat: 添加 Tavily API Key 配置对话框,增强网页搜索功能的配置体验 * fix: update URL hint and warning messages for clarity in knowledge base upload settings * fix: 修复设置tavily_key的热重载问题 --------- Co-authored-by: Soulter <905617992@qq.com> | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 5 个月前 | ||
| 22 天前 | ||
| 7 小时前 | ||
| 3 天前 | ||
| 2 个月前 | ||
| 3 个月前 | ||
| 2 天前 | ||
| 1 年前 |