kiwi/app/services/ocr
pyr0ball afec0c1dae fix: docuvision fast-path falls through when parse yields no items
_parse_json_from_text always returns a dict (never None), so the
previous `if parsed is not None` guard was permanently true — garbled
docuvision output would return an empty skeleton instead of falling
through to the local VLM. Replace the check with a meaningful-content
test (items or merchant present). Add two tests: one that asserts the
fallthrough behavior on an empty parse, one that confirms the fast path
is taken when parsing succeeds.
2026-04-02 13:49:38 -07:00
..
__init__.py chore: initial commit — kiwi Phase 2 complete 2026-03-30 22:20:48 -07:00
docuvision_client.py feat: add DocuvisionClient + cf-docuvision fast-path for OCR 2026-04-02 12:33:05 -07:00
vl_model.py fix: docuvision fast-path falls through when parse yields no items 2026-04-02 13:49:38 -07:00