WeKnora/internal
adawang 1c735ebb9e feat(wiki): front-load static rules in chunk-citation prompt for prefix cache
WikiChunkCitationPrompt placed the per-batch <chunks> block before the
static rules, output schema and the per-document-stable <candidate_slugs>.
Within one document only ChunksXML changes between batches, so the stable
content trailing the chunks could not form a long common prefix and
providers re-billed the static rules on every citation batch (issue #1687
measured ~6.4% prefix-cache hit rate on wiki synthesis).

Reorder to [rules | output schema | candidate_slugs | chunks] so every
batch after the first shares the long [rules | candidate_slugs] prefix.
No instruction text was dropped; only block order and the inline
above/below directional references changed. Verified the cacheable prefix
grows from 281 to 2366 bytes and is byte-identical across batches.

Addresses #1687

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 16:58:12 +08:00
..
agent feat(wiki): front-load static rules in chunk-citation prompt for prefix cache 2026-06-16 16:58:12 +08:00
application fix: mark knowledge delete failures after retry exhaustion 2026-06-16 16:47:46 +08:00
assets feat(assets): add ASR test audio file and embed it in the application 2026-04-02 21:27:27 +08:00
common feat: Implement deadlock retry mechanism for chunk creation 2026-04-22 21:17:21 +08:00
config test: add document process task options tests 2026-05-28 20:27:53 +08:00
container feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
database feat(system-info): surface DB migration errors with troubleshooting links 2026-05-14 16:34:50 +08:00
datasource fix(datasource): align Feishu connector capabilities 2026-06-04 15:33:03 +08:00
errors feat(knowledge): track per-stage parsing progress with /stages API 2026-05-28 15:14:45 +08:00
event fix(event): add panic recovery to async goroutines 2026-06-04 15:37:08 +08:00
handler feat: add EPUB and MHTML document support 2026-06-16 11:25:27 +08:00
im feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
infrastructure fix(chunker): carry deep sub-heading context into large-section chunks 2026-06-16 16:56:57 +08:00
logger refactor(logger): support LOG_FORMAT template and harden level coloring 2026-05-22 20:31:54 +08:00
mcp feat(mcp): implement reconnection logic for MCP tool calls and tool listing 2026-03-31 11:57:15 +08:00
middleware fix: mark knowledge delete failures after retry exhaustion 2026-06-16 16:47:46 +08:00
models feat(observability): enhance Langfuse retrieve and rerank tracing 2026-06-16 01:09:23 +08:00
ratelimit feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
router fix: mark knowledge delete failures after retry exhaustion 2026-06-16 16:47:46 +08:00
runtime feat(system): add server startup time and uptime tracking 2026-06-04 15:48:04 +08:00
sandbox 增加sandbox对windows编译支持,现在默认是linux的实现,windows直接编译报错 2026-05-25 16:57:56 +08:00
searchutil feat(backend): improve parent-child chunk merge and imageinfo matching 2026-06-16 01:09:07 +08:00
stream feat(redis): add REDIS_USERNAME support for Redis ACL 2026-02-04 19:38:40 +08:00
tracing/langfuse feat(observability): enhance Langfuse retrieve and rerank tracing 2026-06-16 01:09:23 +08:00
types fix: mark knowledge delete failures after retry exhaustion 2026-06-16 16:47:46 +08:00
utils fix(embedding): support native Gemini embeddings 2026-06-02 21:37:58 +08:00