| Files | Last commit | Last update |
|---|---|---|
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 months ago | |
style: add ruff lint module of isort and pyupgrade, and some ruff check fix (#3214) Co-authored-by: Dt8333 <25431943+Dt8333@users.noreply.github.com> Co-authored-by: Soulter <905617992@qq.com> | 1 year ago | |
chore: auto ann fix by ruff (#4903) * chore: auto fix by ruff * refactor: 统一修正返回类型注解为 None/bool 以匹配实现 * refactor: 将 _get_next_page 改为异步并移除多余的请求错误抛出 * refactor: 将 get_client 的返回类型改为 object * style: 为 LarkMessageEvent 的相关方法添加返回类型注解 None --------- Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com> | 9 months ago | |
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 months ago | |
chore: auto ann fix by ruff (#4903) * chore: auto fix by ruff * refactor: 统一修正返回类型注解为 None/bool 以匹配实现 * refactor: 将 _get_next_page 改为异步并移除多余的请求错误抛出 * refactor: 将 get_client 的返回类型改为 object * style: 为 LarkMessageEvent 的相关方法添加返回类型注解 None --------- Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com> | 9 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 5 months ago | ||
| 1 year ago | ||
| 9 months ago | ||
| 5 months ago | ||
| 9 months ago |