ADR-0018: AI URL Category & Value Assessment
Date: 2026-02-10 | Status: Accepted
Context
After crawl discovery, URLs are categorized by regex patterns. This categorization impacts RAG search quality (Lewis et al., 2020) — the search service applies a 20% relevance boost when a document's category matches the user's intent. Mis-categorized URLs degrade search results.
The regex approach misses pages with ambiguous paths, content that doesn't match URL structure, and cannot distinguish between high-value patient-facing content and low-value organizational content (annual reports, job postings, supplier pages).
Decision
Adopt a two-dimensional AI assessment for crawled URLs:
- Category — What type of content? (12 predefined + AI-suggested new categories)
- Value — How relevant for patient-facing search? (
high/medium/low/skip)
Value Levels
| Value | Meaning | Search Impact |
|---|---|---|
| high | Patient-facing (departments, doctors, conditions) | Normal ranking |
| medium | Supporting content (news, brochures) | Normal ranking |
| low | Organizational (reports, research, job postings) | 15% ranking penalty |
| skip | Not useful (video embeds, floor plans) | Not ingested |
How It Works
Crawler discovers URLs → Regex assigns initial category
↓
Admin triggers "AI Review" on the crawl dashboard
↓
Tier 3 (flagship) model classifies URLs (batch of 20, temperature=0)
↓
Category mismatches shown for admin review
↓
Admin accepts/rejects → "Apply Changes"
↓
Categories updated, skip URLs marked as ignored
Assessment Data
Each assessment is stored with the URL's existing metadata (no schema change was needed) and records the suggested category, the value level, a confidence score (for example 0.92), a short reason, whether the category changed, and the original category.
Consequences
Positive: Better category accuracy (LLM considers URL + title), search quality uplift (low-value dampening), skip filtering (excludes noise from ingestion), admin QA workflow.
Negative: One-time LLM cost (~$0.15 per run), manual trigger required, may need re-assessment after major site changes.
Implementation
The change added an assessment service, the corresponding administrative crawl functions, a relevance-dampening step in the search service, and an assessment panel in the crawl dashboard of the administrator interface.