• Stefy Lanza (nextime / spora )'s avatar
    ocr: a confidence nobody measured is worse than none (v0.3.8) · 903797e0
    Stefy Lanza (nextime / spora ) authored
    Surya asks every request for logprobs and averages exp(logprob) over the
    generated tokens to score each line. coderai accepted the parameter, never
    sent it, and hardcoded `logprobs: None` in every response builder.
    
    Surya's fallback is what makes that expensive: with no logprobs it does not
    report "unknown", it reports a literal 1.0 (recognition/__init__.py:248, :302,
    layout/__init__.py:97). Every line of every page comes back perfectly
    confident, the guesses included, and nothing downstream can tell which
    judicial document needs a human to look at it.
    
    So the round trip is wired where it can exist: the proxy backends (vLLM,
    RunPod) forward `logprobs`/`top_logprobs` and hand back what the server
    measured, buffered and streamed, accumulating the streamed pieces into one
    response-shaped object. The manager asks the backend's signature rather than
    negotiating by TypeError, which would have called it twice for a kwarg it
    never had. A request that did not ask is sent exactly as before, and a
    backend that cannot answer still returns null.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01PxYHWbCAjjjD7A1rhFKtaW
    903797e0
Name
Last commit
Last update
..
superpowers Loading commit data...
README.md Loading commit data...
admin-forward-auth.md Loading commit data...
cluster.md Loading commit data...
deepseek-ds4.md Loading commit data...
dtype-auto-selection.md Loading commit data...
expressive-tts.md Loading commit data...
frontend-engine-split.md Loading commit data...
gguf-process-isolation.md Loading commit data...
glm-colibri.md Loading commit data...
install-from-packages.md Loading commit data...
kimi-k3.md Loading commit data...
ktransformers.md Loading commit data...
longcat-video.md Loading commit data...
minimax-h3.md Loading commit data...
ocr.md Loading commit data...
orchestrator-runpod-guide.md Loading commit data...
process-isolation-plans.md Loading commit data...
reference-projects.md Loading commit data...
remote-execution.md Loading commit data...
reverse-proxy-nginx.md Loading commit data...
runpod.md Loading commit data...
tools-as-services.md Loading commit data...
video-compose.md Loading commit data...
vllm.md Loading commit data...
zimage-lora-training.md Loading commit data...