WeKnora/internal/infrastructure
Lukas e2a58ea3cb
fix(docparser): keep JSON numbers and <, >, & as written in JSON uploads (#4436)
jsonToMarkdown decoded the upload with json.Unmarshal, which turns every
number into a float64. An id above 2^53 therefore changed digits:
12345678901234567890 came out as 12345678901234567000, and
9007199254740993 as 9007199254740992. 1.50 became 1.5 and 1e5 became
100000. The decoder now uses UseNumber, and each number is written back
exactly as it was in the file.

The chunks were encoded with json.Marshal, which escapes <, > and & for
embedding in HTML, so "a < b && c > d" was indexed as
"a \u003c b \u0026\u0026 c \u003e d". They are now encoded with HTML
escaping off, in the size measurement as well, so a chunk is measured as
it is written.
2026-10-17 22:31:39 +08:00
..
chunker fix(chunker): respect Markdown fences during heading detection 2026-10-08 21:06:59 +08:00
docparser fix(docparser): keep JSON numbers and <, >, & as written in JSON uploads (#4436) 2026-10-17 22:31:39 +08:00
web_fetch fix(agent): share one configurable budget for web_fetch (#4432) 2026-10-17 22:28:32 +08:00
web_search fix(web-search): bound provider response bodies instead of buffering them whole (#4370) 2026-10-16 17:16:39 +08:00