← Help & Docs

TATERpedia Ratings & Suggested Articles

Per-user-per-page ratings, view counts, and context-aware article suggestions for tickets. Last updated 2026-05-17

Adds ServiceNow-style KB quality signals + suggested-articles surfacing on top of the existing TATERpedia wiki (§12bk).

For end users: rating a wiki page

Any TATER user (Auditor+) can rate a TATERpedia wiki page from the page itself:

  1. Open any TATERpedia article (from Reports & Policies → Documentation, from a suggested-articles surface on a control/task/incident, or via direct slug URL).
  2. Look for the ⭐ Rate this page control near the top of the article (just below the title and tags row).
  3. Click 1-5 stars to set your rating. You can change your rating any time by clicking a different star count - re-rating overwrites your previous score.
  4. Optionally add a short comment (≤1000 chars) explaining what worked or what didn't. Comments are visible to anyone viewing the page and feed into the "Recent comments" panel on the right rail.
  5. Your rating updates the aggregate immediately (page-level avgRating + ratingCount) and the count distribution (how many 1s, 2s, etc.).

Why it matters: aggregate ratings drive the ranking in suggest_wiki_pages - high-rated pages surface higher when an AI agent or a search query is looking for relevant content. A low rating with a substantive comment tells the next author what to fix.

View counts are tracked automatically - you don't need to do anything. Every time you open a wiki page, a fire-and-forget counter increments. The "👁 N views" badge on suggested articles reflects this.

End users see the same UI on every wiki page across all four sister apps (Security, Ops, Manage, My TATER). Rating is org-scoped (your rating lives in your home tenant's partition) but aggregates are cross-org since the wiki itself is shared.

Storage model

This split keeps the wiki itself cross-org while keeping rating activity per-org auditable. Each user can rate each page once; re-rating overwrites.

Rating endpoints

Aggregation runs a cross-partition query (forceQueryPlan: true) on WikiRatings filtered by pageId. Performance: fine at sub-10k ratings per page. If scaling beyond that becomes an issue, cache aggregate on the page doc.

View tracking

POST /api/wiki/pages/:slug/view (Viewer+) - fire-and-forget; returns 200 immediately, increments viewCount on the page in a setImmediate. Non-fatal on failure. Wire into the wiki page render so every view counts; rate-limited by general tier so abuse is bounded.

Suggested articles

GET /api/wiki/suggest?q=&tag=&control_id=&limit=N (Viewer+) returns the top N relevant pages. Scoring:

Filters before scoring:

If no q provided, sorts by viewCount desc → updatedAt desc. Default limit 5, max 20.

Wiring suggested articles into tickets

The intended pattern is to surface suggested articles on entity detail panels:

Render up to 5 suggestions with title + summary + view count + avg rating. Clicking a suggestion opens the wiki page and triggers the view counter.

MCP tools (2, HTTP + stdio parity)

Agent pattern: "before authoring, search"

The MCP INSTRUCTIONS encourage agents to call suggest_wiki_pages as the FIRST step when starting work on a control, change request, or major incident. Prior wiki content is higher-signal than re-deriving from scratch. After consulting, optionally rate_wiki_page to flag quality (drives future suggestion ranking).

Pitfalls