Independent Submission
Implementation Report: 2610-2.6
Category: Standards Track
I. S. Hudzaifah
Bandung, Indonesia
2025

← Section 2, Implementations

Implementation Report: ask-it

Abstract

A real-time support desk handling thousands of tickets a month, with a live agent queue, a knowledge base and a mobile app.

See Tech Stack, Architecture and References (Play Store).

Status of This Implementation

This implementation is in production use and actively maintained.

Tech Stack

BackendGo (Gin)
DatabaseMongoDB
Real-timeserver-sent events, Redis pub/sub
Background jobsAsynq on Redis
Web appReact with Vite
Mobile appExpo (React Native)
File storageMinIO
AILLM, embeddings and a reranker through a LiteLLM gateway
Retrievalhybrid search (MongoDB text + vector index), then a reranker
Agent accessMCP server built into the backend, OAuth 2.0
EvaluationRagas, Langfuse, a gold set of past tickets
ObservabilityOpenTelemetry

1. Overview

Support requests used to arrive by chat, email and in person, and many fell through the cracks. ask-it puts them all in one queue, so every request gets an owner and a reply.

2. Architecture

ask-it architecture

Figure 1: ask-it components. Staff and agents use the apps; an AI assistant works tickets through the MCP endpoint, with the same permissions as the agent who signed in.

ask-it mobile app

Figure 2: The ask-it mobile app, showing a group’s threads, a single thread and the user’s created threads. Images from the Play Store listing.

3. AI Ticket Flow

Every resolved ticket becomes a knowledge-base entry, and every new ticket is answered from those entries first. The knowledge base is the retrieval source for the AI, so each fix makes the next answer better.

ask-it AI ticket flow

Figure 3: The ticket flow. Resolved tickets are written back to the knowledge base, and the next ticket retrieves from it.

3.1. Opening and Retrieval

When a user describes an issue, the LLM suggests a short title (3 to 8 words, in the user’s language), which the user reviews before submitting. The ticket text is then searched against the knowledge base with hybrid search: MongoDB’s full-text index finds exact terms such as error codes, application names and NIKs, and the vector index finds the same problem described in different words. The two lists are merged with Reciprocal Rank Fusion, and a reranker keeps the top 5 entries.

3.2. Drafting and the Confidence Gate

The LLM drafts a fix from those 5 entries and must cite the entry behind each step. The draft then passes a confidence gate, which looks at the reranker score of the best entry and a check that every step is backed by a cited entry:

The threshold is set on the gold set so that tickets the AI closes are right at least 95% of the time. Missing a few easy tickets is cheaper than giving a wrong fix.

3.3. Writing Back to the Knowledge Base

When a ticket is resolved, by the AI or by an agent, a background job reads the whole thread and writes a summary with three fields: a title, the problem, and the resolution as steps. The resolution must have more than 25 words, so a one-line “fixed” never reaches the knowledge base.

Before saving, the job checks for a near-duplicate entry. If one exists, the old entry is updated instead, and its previous text is kept in the edit history with who or what changed it. The new or updated entry is then embedded and indexed, and the next ticket can retrieve it within seconds.

Agents can run the same steps from an AI assistant such as Claude Code, through the MCP server built into the backend:

get_thread            replies, the original message, and the chat around it
search_kb             existing fixes for the same problem
update_thread_status  status = resolved, resolution = the summary
                      -> a new or updated knowledge-base entry
update_kb             tidy older entries; the old text is kept in history

The MCP server signs in with OAuth in the browser, and the assistant acts as the agent who signed in, with the same role and permissions.

4. Evaluation

The evaluation works the same way as in ai-ebook: a test harness on a gold set decides whether a change ships, and Langfuse shows why when it does not.

The gold set is built from past tickets. Each one keeps the user’s original message, the knowledge-base entries that fixed it, and the agent’s final resolution as the reference answer. It includes tickets that should not be auto-closed, such as access requests and hardware faults, where the right outcome is “send to an agent”.

StepMetricWhat it tells us
RetrievalRecall@5, MRRIs the entry that fixed it among the top 5, and how close to the top?
DraftFaithfulness (Ragas)Is every step backed by a cited entry?
DraftLLM judge, 1 to 5Would this fix the ticket? Anything under 4 fails.
GateAuto-close precisionOf the tickets the AI closed, how many were right?
GateEscalation recallOf the tickets that needed an agent, how many reached one?
Write-backSummary judge, 1 to 5Does the entry state the problem and the fix clearly enough to reuse?
LiveReopen rate (7 days)Did the fix hold after the ticket closed?
Systemp95 latency, cost per ticketIs it still fast and cheap enough?

Every change runs the harness, and it ships only if no metric drops below its threshold. Auto-close precision has the strictest threshold, 95%. Each run is logged as a Langfuse dataset run in a separate project from production traces, so test data never mixes with real tickets. When a run fails, the trace of each failed ticket shows which step broke.

Production feeds the gold set. Every reopened ticket, and every AI draft an agent rewrote before sending, becomes a new gold ticket.

4.1. From Search to an AI Loop

ask-it gold-set scores by version

Figure 4: Gold-set scores for each version. The full set of metrics is in the table below.

Metricv1v2v3
Recall@558%86%91%
MRR0.440.720.79
Faithfulness-0.880.94
Judge pass, fix (4/5 or more)-71%84%
Summary judge pass62%62%90%
Auto-close precision--96%
Tickets resolved by AI0%0%38%
Reopen rate (7 days)9%7%5%
Median time to resolution3.1 h1.6 h0.6 h
p95 latency, draft-4.2 s4.8 s

Hybrid search gave the biggest jump in retrieval: many tickets mention an error code or an application name that vector search alone ranked too low. The bigger change in v3 came from the knowledge base itself. Agent-written resolutions were often short and passed the summary judge only 62% of the time. AI summaries, written from the whole thread, passed 90%, and better entries made retrieval and drafts better for every ticket after.

5. Results

Before ask-it, helping colleagues was invisible work. Its metrics made developer support measurable, and it now counts for 20% of developer KPIs.

ask-it agent dashboard

Figure 5: The agent dashboard, showing median response and resolution times, escalation rate and the waiting queue. Thread titles and agent names are blurred.

References

[LIVE]play.google.com/store/apps/details?id=com.nabatisnack.askit_hc
HudzaifahStandards Track[Page 1]