Skip to content
TrustHappens
Use case walkthroughAI & Automation

ILLUSTRATIVE USE CASE — NOT A CUSTOMER CASE STUDY

Walkthrough: A Support Knowledge Assistant Grounded in Docs and GitHub Issues

An illustrative walkthrough of how a software company's support team could answer repetitive questions with a cited RAG assistant built on its docs and GitHub issues.

TrustHappens Editorial TeamPublished 6 min read
Illustration for AI & Automation
Scenario
A software company that sells a developer tool with a public API has a six-person support team answering the same setup and configuration questions every day. The answers already exist across product docs, the API reference and years of GitHub issues, but customers and support agents struggle to find them, and a generic chatbot trial produced confident wrong answers.
Industry
Developer-tools software company
Problem
Our support team answers the same questions every day even though the answers are already in our docs and GitHub issues.
Related product
MithunAI

This walkthrough describes a realistic, composite situation to explain an approach. It is not an account of a real customer, and it reports no achieved results.

On this page

This is an illustrative use case. The company, its support volumes and its systems are invented to show how a team like this could approach the problem. It does not describe a real customer and reports no achieved results.

Background

The company in this scenario sells a developer tool: an SDK and a hosted API that engineering teams integrate into their own products. It has a public documentation site, an OpenAPI-described REST API, an open-source SDK on GitHub with several years of issues and discussions, and a community forum.

A six-person support team handles tickets by email and an in-app chat. Most of them are former developers who know the product well. The documentation team is two people who also maintain the API reference.

Business challenge

Support volume grows with every new customer, but the questions do not get more varied. A large share are about authentication setup, webhook signatures, rate limits, SDK version compatibility and error codes. The answers exist, scattered across a docs page, a changelog entry, a closed GitHub issue where a maintainer explained a workaround, and a forum thread.

The cost shows up in three places: response times stretch during busy weeks, senior support engineers spend their time on repetitive questions instead of difficult ones, and customers who cannot find answers in self-service open tickets they would rather not have needed.

Existing situation

  • Search is keyword-based. The docs site search matches page titles and headings. It cannot answer "why does my webhook signature fail after rotating the secret?", even though the answer is in a docs section and two GitHub issues.
  • Knowledge in GitHub is invisible to customers. Many workarounds and version-specific explanations live only in closed issues and discussions.
  • Support agents rely on memory. Experienced agents remember where answers live; new agents search Slack history and ask colleagues.
  • A generic chatbot trial failed. A team member tried a general-purpose chat model with a few docs pasted into the prompt. It answered fluently, invented a configuration flag that does not exist, and gave no way to check where an answer came from.

Why a change was needed

The failed trial clarified the requirements. For support, a wrong answer delivered confidently is worse than no answer: the customer follows it, fails, and opens an angrier ticket. Any assistant a team like this deploys must:

  • answer only from the company's own sources, and cite them so customers and agents can verify;
  • say plainly when the sources do not cover a question, rather than guessing;
  • stay current as docs, issues and the API change, without retraining a model;
  • keep secrets and internal-only content out of public answers.

Retrieval-augmented generation fits these requirements: the model generates from passages retrieved at question time, so updating knowledge means re-indexing documents rather than retraining.

Approach and implementation

The approach below is vendor-neutral. A team could build it with an embedding model, a vector index and an LLM API, or use a managed RAG platform.

A short implementation plan for a team like this:

  1. Collect a question set first. Export a few hundred recent tickets, group them by topic, and write down the correct answer and source for a representative sample. This becomes the evaluation set.
  2. Choose and clean sources. Start with the docs site, the API reference (from the OpenAPI schema), the SDK repository's issues and discussions, and the changelog. Exclude internal runbooks from anything public. Redact secrets before indexing.
  3. Index and chunk. Split content into passages that keep headings and code blocks intact, and record source URL, title and date as metadata for citations.
  4. Configure grounded answering. Instruct the model to answer only from retrieved passages, cite each claim, and respond with a clear "I don't know from our documentation" plus a link to contact support when retrieval finds nothing relevant.
  5. Evaluate before launch. Run the question set and grade each answer for correctness, citation accuracy and appropriate refusals. Fix sources, chunking or retrieval settings, then re-run.
  6. Launch internally first. Give support agents the assistant in their workspace for a few weeks. Collect thumbs-up and thumbs-down feedback with a reason.
  7. Launch the public widget. Add an "Ask AI" widget to the docs site, with clear labelling that answers are AI-generated and cite sources, and an easy path to a human.
  8. Close the loop. Review unanswered and downvoted questions weekly; most point to missing or unclear docs, which the documentation team then fixes.

Solution architecture

  Sources
     ├─ Docs site + sitemap
     ├─ API reference (OpenAPI schema)
     ├─ GitHub: SDK repo, issues, PRs, discussions
     └─ Public forum threads
           │  scheduled sync, secret redaction
           ▼
  Index ── passages + embeddings + metadata (URL, title, date)
           │
           ▼
  Retrieval ── top passages for the question
           │
           ▼
  LLM ── grounded prompt: answer only from passages, cite, or say "I don't know"
           │  streamed response (SSE)
           ├──▶ "Ask AI" widget on docs site        (customers)
           ├──▶ Team chat workspace                  (support agents)
           └──▶ IDE assistant via read-only MCP      (customer developers)

  Evaluation harness ── fixed question set, graded on every source or prompt change
  Feedback log ── unanswered + downvoted questions → docs backlog

Security sits at the boundaries. Indexed content from public issues and forums is untrusted input: a malicious issue comment could contain instructions aimed at the model, a pattern the OWASP guidance on prompt injection describes. Keeping the assistant read-only, with no ability to take actions, limits what such content could achieve. Separate indexes for public and internal content prevent internal material from appearing in public answers.

A team can build each layer itself, which is a good choice where it already has retrieval expertise. A managed platform shortens the path:

MithunAI gives cited answers from docs, GitHub repositories (including issues, pull requests and discussions), websites, sitemaps, files, OpenAPI schemas and public Zendesk or Discourse content, and says so when its sources do not cover a question. It provides an embeddable "Ask AI" website widget, a streaming HTTP API over SSE, a read-only MCP server for tools such as Cursor, Claude Code and VS Code, and a team chat workspace with cited answers. Secrets are redacted before indexing, tenants are isolated, and a private deployment option runs in your own cloud or data centre.

What to measure

This scenario is illustrative, so there are no outcomes to report. These are the measures a team like this would track, and how.

  • Answer correctness on the evaluation set. Grade each answer as correct, partially correct or wrong against the reference answers. Re-run on every change to sources, chunking or prompts, and track the trend.
  • Citation accuracy. For a sample of answers, check that each cited source actually supports the claim it is attached to.
  • Appropriate refusals. Include questions the sources cannot answer in the evaluation set, and measure how often the assistant correctly says it does not know instead of guessing.
  • Unanswered-question rate in production, grouped by topic, as the main input to the documentation backlog.
  • User feedback. Thumbs-up and thumbs-down rates with reasons, separately for agents and customers.
  • Ticket deflection signals. The number of widget conversations that end without a ticket versus those that escalate. Treat this as directional: a conversation without a ticket is not proof the customer got a correct answer.
  • Support handling time on assisted topics, compared with a baseline from before launch, from the help desk's own reporting.
  • Freshness. The lag between a docs or issue change and its appearance in answers.

Capture baselines from the ticket export before launch so comparisons are honest.

Lessons learned

These lessons reflect common patterns in RAG deployments for support, not a specific company's results.

  • Evaluation comes before the widget. Without a fixed question set, every change is judged on anecdotes.
  • Source quality caps answer quality. Outdated docs and contradictory issue threads produce contradictory answers. Archive or label stale content.
  • GitHub issues are valuable and noisy. Closed issues with maintainer answers help; long speculative threads confuse retrieval. Prefer resolved issues and discussions marked as answered.
  • Make the human path obvious. Customers trust an assistant more when escalation to a person is one click away.
  • Keep it read-only. An assistant that only answers, and cannot act, is far easier to secure and to explain to customers.

For background, read RAG vs fine-tuning and private AI assistants for business. The enterprise AI planning worksheet helps scope sources, risks and evaluation before you build.

Sources and references

  1. Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (arXiv)
  2. OWASP Top 10 for Large Language Model Applications
  3. OWASP GenAI Security Project: LLM01 Prompt Injection
  4. NIST AI Risk Management Framework
  5. WHATWG HTML Standard: Server-sent events

Share this use case walkthrough

Stay Ahead of What Matters.

Practical guides on ai & automation and more, delivered to your inbox.