whybotStar on GitHub

Why did the number move? Ask. Get proof.

WhyBot checks the metrics, reads the tickets and the deploy log, and names the cause. Every sentence links to its evidence. When the evidence is weak, it says so.

  • cites every claim
  • abstains when unsure
  • plain Python, no framework
2024-02-19 / why?
demo / pick an example or asklive

Checking the live API...

0 / 400

Try a stored example

Examples replay a saved run. They make zero API calls.

Pick an example or ask a question. Each agent step will show up here.

Scored against known answers

Right cause found
97.5%
Citations correct
100.0%
Median time
17.9 s
Plain search, same test
30.0%

Measured once on 40 held-out cases from a synthetic company with planted causes.

Six steps, the same every time

architecture / one requestwhybot/agent.py
question
   |
   v
[ plan ] --> [ triage ]          detect_anomaly
                 |               decompose_by_segment
                 v
          [ investigate ] <----> search_evidence
                 |               run_metric_query
                 v
[ rank ] --> [ verify ] --> [ guard ]
                                |
                                v
                 answer + evidence, or
                 "not enough evidence"

$ postgres + pgvector / bm25 + embeddings / claude

  1. 01

    Plan

    Read the question. Pick the metric and the day.

  2. 02

    Triage

    Check the day is unusual for its weekday. Find which segment moved.

  3. 03

    Investigate

    Search tickets, issues and deploys. Query the metrics.

  4. 04

    Rank

    Write up to three causes. Every sentence cites its evidence.

  5. 05

    Verify

    Check each sentence against what it cites. Drop the ones that fail.

  6. 06

    Guard

    No solid proof? Answer "not enough evidence".

FAQs

Is the data real?

No. I built a pretend online shop with two years of metrics, tickets, issues and deploys, and planted 80 incidents in it. Because I planted them, every answer can be checked.

How do you know an answer is right?

Each test question has a known cause and known evidence. An answer counts only if the cause type and the affected segment both match. The 40 test cases were run once, after tuning on the other 40.

What happens when there is no evidence?

WhyBot says "not enough evidence". A cause is kept only if a real document supports it and that claim passes a separate verification step.

What are the limits?

The benchmark is synthetic and turned out easy for the full system, so it cannot show which parts matter most. Scores compare systems on this task. They do not predict accuracy at a real company.