The backend returns a complete word-level probability array and exact character spans in a single response, allowing the browser to adjust threshold sliders in real time without triggering new API requests.
sequenceDiagram
autonumber
actor User
participant Browser as Browser (JS UI)
participant Auxy as Auxy Backend
participant DB as Database
participant LinkBERT as LinkBERT (Port 8006)
Browser->>Auxy: Request anchor analysis (text)
Auxy->>LinkBERT: Forward text for scoring
LinkBERT-->>Auxy: Return words, probs [0.0..1.0], spans [start, end]
Auxy->>DB: Store full scoring payload
Auxy-->>Browser: Return words, probs, and spans
Note over Browser: Initial rendering complete
User->>Browser: Drag confidence slider
Note over Browser: Client JS filters spans >= threshold<br/>Dynamically highlights DOM (no network)