Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Default Tier Selection Design
历史归档:保留原设计或验收时的记录,不作为当前版本的安装、接口或实现指引。 当前入口见 开发文档;当时的版本、测试结论和未完成事项不追溯改写。
Date: 2026-07-21
Goal
Simplify implicit parse-tier selection to match the new server capability contract. A conforming server that offers Advanced also offers Standard, so Advanced no longer needs to be an implicit fallback.
Selection Rules
When a user submits a quality parse request without a tier, select:
standard -> basic -> error
Advanced remains a valid quality tier but must be requested explicitly. Flash remains an explicit preview tier for ordinary requests.
Background parsing rules may fall back to Flash and therefore select:
standard -> basic -> flash
Cached-result selection remains unchanged:
advanced -> standard -> basic -> flash
An already-created Advanced result is still the highest-quality reusable cache even though Advanced is not selected implicitly for new work.
Type Constants
Separate the default selection order from quality-tier membership:
DEFAULT_QUALITY_TIER_SELECTION_ORDERcontains Standard and Basic.QUALITY_TIERScontains Basic, Standard, and Advanced.PARSING_RULE_TIER_SELECTION_ORDERappends Flash to the default order.CACHED_TIER_SELECTION_ORDERremains unchanged.
This prevents removing Advanced from file-type validation and explicit request handling when it is removed from the default order.
Compatibility Boundary
Current first-party API servers never advertise Advanced without Standard. An external or obsolete Advanced-only server is not treated as having an implicit default quality tier. This is intentional and does not affect explicit --tier advanced requests to conforming Standard servers.
Verification
Tests verify:
- Standard is preferred over Basic.
- Basic is selected when Standard is unavailable, even if Advanced is advertised.
- Advanced alone does not become an implicit default.
- Advanced remains a member of
QUALITY_TIERS. - Parsing rules use Standard, Basic, then Flash.
- Cached-result selection still prefers Advanced.
- API-server, Doclib, Gradio, CLI, and tracked unit tests remain green.