This prompt is designed for RAG pipeline architects and trust-and-safety engineers who need to assign structured authority scores to source domains before evidence is used for answer generation. It evaluates institutional affiliation, expertise signals, and citation patterns to produce a tiered authority rating with explainability fields. Use this prompt when your retrieval system returns documents from mixed-quality domains and you need a repeatable, auditable method to weight or filter sources before they enter the evidence ranking stage.
Prompt
Domain Authority Assessment Prompt for Retrieved Documents

When to Use This Prompt
Defines the ideal use case, required context, and boundaries for the domain authority assessment prompt.
The ideal user is building or maintaining a production RAG system where source quality directly impacts answer reliability. You should have access to source metadata including the domain, publisher name, author credentials when available, and the document's citation context. This prompt works best as a pre-ranking filter: run it after retrieval but before evidence synthesis, so low-authority domains can be deprioritized or excluded before they influence the final answer. The output is structured JSON suitable for downstream ranking logic, audit logging, or human review queues.
This is not a general credibility classifier. It focuses specifically on domain-level authority assessment, not page-level fact-checking or claim verification. Do not use this prompt when you need to verify specific factual claims, detect hallucination in generated text, or assess the relevance of a passage to a query. It also should not be the sole gatekeeper for high-stakes decisions in regulated domains—always pair it with human review, evidence grounding checks, and recency validation. If your retrieval pipeline already filters by an allowlist of trusted domains, this prompt adds little value. Use it when you operate in open-domain retrieval with heterogeneous source quality.
Use Case Fit
Where the Domain Authority Assessment Prompt delivers reliable tiering and where it introduces risk. Use this to decide if the prompt fits your pipeline before integrating it into downstream ranking.
Good Fit: Pre-Retrieval Source Filtering
Use when: you need to block or downrank known low-authority domains before evidence enters the RAG pipeline. Guardrail: Run this prompt as a batch pre-filter on the retrieval candidate set, not as a real-time scoring step on every query.
Good Fit: Audit Trail Generation
Use when: compliance or trust-and-safety teams require explainable authority decisions. Guardrail: Store the full structured output with authority_signals and evidence_citations fields. Never discard the explanation after assigning the tier.
Bad Fit: Real-Time Chat Latency Paths
Avoid when: the prompt must complete within a strict sub-second budget for a user-facing chat. Guardrail: Pre-compute domain authority tiers offline and store them in your retrieval database. Use the stored tier at query time instead of calling the model.
Required Inputs
Risk: Missing fields produce unreliable scores. Guardrail: Require domain, publisher_name, and at least one of author_affiliations, citation_count, or peer_review_status. Reject requests with only a URL and no metadata.
Operational Risk: Domain Drift
Risk: A domain's authority can change after acquisition, rebranding, or editorial shift. Guardrail: Set a recency_window_days parameter and re-score domains periodically. Flag domains that haven't been re-evaluated within the window.
Operational Risk: Over-Indexing on a Single Signal
Risk: The model may overweight citation count and ignore institutional affiliation, or vice versa. Guardrail: Use the authority_signals array in the output to verify that multiple factors contributed to the final tier. Set a minimum signal diversity threshold in your ranking logic.
Copy-Ready Prompt Template
A reusable prompt template for assessing the authority tier of a source domain, ready to be copied and adapted with your own data.
This template is designed to be the core instruction set for a language model tasked with evaluating the authority of a domain. It moves beyond simple binary checks, asking the model to consider institutional affiliation, expertise signals, and citation patterns to assign a structured authority tier. The output is designed for direct consumption by a downstream ranking system in a RAG pipeline, providing both a score and human-readable explanations for auditability. Copy the block below, replace the placeholders with your specific inputs, and integrate it into your prompt assembly process.
textYou are an expert source authority analyst. Your task is to assess the authority tier of a given source domain based on institutional affiliation, expertise signals, and citation patterns. You will output a structured JSON object with a score and detailed reasoning. **INPUT DATA** - Source Domain: [SOURCE_DOMAIN] - Source URL: [SOURCE_URL] - Document Title: [DOCUMENT_TITLE] - Document Snippet: [DOCUMENT_SNIPPET] - Query Context: [USER_QUERY] **OUTPUT SCHEMA** You must respond with a single, valid JSON object conforming to this structure: { "authority_tier": "high" | "medium" | "low" | "unverifiable", "authority_score": 0.0-1.0, "signals": { "institutional_affiliation": { "detected": true | false, "type": "government" | "academic" | "commercial" | "non-profit" | "personal" | "unknown", "evidence": "Brief quote or description from the snippet." }, "expertise_signals": { "detected": true | false, "indicators": ["List of strings like 'author credentials', 'peer-reviewed citation', 'official documentation'", "..."], "evidence": "Brief quote or description from the snippet." }, "citation_patterns": { "detected": true | false, "type": "self-citation" | "external-authoritative" | "external-unverifiable" | "none", "evidence": "Brief quote or description from the snippet." } }, "explanation": "A concise, 2-3 sentence summary of the overall assessment, explicitly linking the detected signals to the assigned tier.", "confidence": 0.0-1.0 } **CONSTRAINTS** - Base your assessment *only* on the provided INPUT DATA. Do not use external knowledge about the domain. - If you cannot determine a signal, set its `detected` field to `false` and provide an empty string for `evidence`. - An `authority_tier` of "unverifiable" must be used if the provided snippet contains no usable signals. The score should be 0.0. - A "high" tier requires strong, positive signals in at least two of the three signal categories. - The `confidence` score must reflect how much evidence was available, not your certainty in a guess. Low evidence should result in low confidence, even if the tier is "high" based on a single strong signal.
To adapt this template, replace the [SOURCE_DOMAIN], [SOURCE_URL], [DOCUMENT_TITLE], [DOCUMENT_SNIPPET], and [USER_QUERY] placeholders with data from your retrieval system. The OUTPUT_SCHEMA is a strict contract; ensure your post-processing code validates the JSON structure and enum values before using the authority_score for downstream ranking. For high-stakes domains like legal or medical research, this prompt's output should be treated as a preliminary signal, not a final verdict, and must be paired with a human review step or a more authoritative ground-truth database.
Prompt Variables
Required and optional inputs for the Domain Authority Assessment Prompt. Provide as many fields as available; missing fields reduce assessment confidence and should be logged.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[DOCUMENT_URL] | The URL of the retrieved document to assess | Must parse as valid URL; scheme must be https; null allowed if URL unavailable but reduces authority signal strength | |
[DOCUMENT_TITLE] | The title of the retrieved document | Morbidity and Mortality Weekly Report (MMWR) | Non-empty string; null allowed; used for publisher extraction and title-authority heuristics |
[DOCUMENT_DOMAIN] | The domain extracted from the document URL | cdc.gov | Must be a valid domain string; null allowed if [DOCUMENT_URL] is null; used for institutional affiliation matching |
[DOCUMENT_SNIPPET] | The first 500-1000 characters of the document body | During May 2023, a total of 245 cases of... | String; null allowed but severely limits content-based authority signals; truncate to 1000 chars max to stay within context budget |
[PUBLICATION_DATE] | The publication or last-updated date of the document | 2024-03-15 | ISO 8601 date string; null allowed; used for recency scoring and stale-content detection; parse check before passing to prompt |
[AUTHOR_NAME] | The primary author or organizational author of the document | World Health Organization | String; null allowed; used for author affiliation and expertise signal extraction |
[CITATION_COUNT] | The number of citations or inbound references to this document | 142 | Integer or null; null allowed; if provided, must be non-negative integer; used as authority proxy for academic and technical sources |
[RETRIEVAL_QUERY] | The original user query that retrieved this document | What are the latest CDC guidelines on measles vaccination? | Non-empty string required; used to assess domain-query relevance alignment and authority-context fit |
Implementation Harness Notes
How to wire the Domain Authority Assessment prompt into a RAG pipeline with validation, retries, and downstream ranking integration.
This prompt is designed to sit between retrieval and evidence ranking in a RAG pipeline. After your search system returns a set of candidate documents with their source domains, you call this prompt to assign an authority tier and structured score to each unique domain. The output feeds directly into your downstream evidence weighting logic, where authority scores combine with relevance, recency, and specificity signals to produce a final ranking. Do not call this prompt on every retrieved passage individually—batch by unique domain to control latency and cost, then join the authority scores back to individual passages before ranking.
Wire the prompt into your application as a preprocessing step with a domain deduplication cache. Before calling the model, extract all unique domains from the retrieval set and check a local cache (Redis, in-memory dictionary, or database table) for recent authority assessments. Only send uncached domains to the model. This prevents redundant API calls for frequently retrieved domains like arxiv.org or cdc.gov. Set a cache TTL appropriate to your domain—24 hours for most applications, shorter for fast-moving news domains. The model response should be validated against a strict schema: require domain, authority_tier (one of an enum you define, such as high, medium, low, unverifiable), score (float 0.0–1.0), and explanation fields. Reject any response missing these fields and retry once with a repair prompt that includes the validation error.
For production reliability, implement a fallback authority tier when the model call fails after retries. A safe default is unverifiable with a score of 0.0, which forces downstream ranking to rely on other signals. Log every authority assessment with the domain, score, tier, model version, and timestamp for auditability. If your use case involves regulated content (legal, medical, financial), add a human review queue for domains scored below a configurable threshold or flagged with conflicting signals in the explanation field. Start with a threshold of 0.4 and adjust based on observed false-positive and false-negative rates in your eval set. Model choice matters: use a model with strong reasoning capabilities (GPT-4o, Claude 3.5 Sonnet) rather than a lightweight classifier, because the explainability field requires nuanced institutional knowledge that smaller models often hallucinate.
Expected Output Contract
Structured output fields, types, and validation rules for the domain authority assessment. Use this contract to parse, validate, and store the model's response before downstream ranking.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
authority_tier | enum: ["tier1_authoritative", "tier2_reputable", "tier3_acceptable", "tier4_low_confidence", "tier5_unreliable"] | Must match one of the five enum values exactly. Reject on any other string. | |
tier_rationale | string (<= 280 characters) | Must contain at least one specific signal referenced from the input metadata. Reject if empty, null, or purely generic praise. | |
institutional_affiliation_score | integer (0-100) | Must be an integer within the inclusive range 0 to 100. Reject on floats, negatives, or values > 100. | |
expertise_signal_score | integer (0-100) | Must be an integer within the inclusive range 0 to 100. Reject on floats, negatives, or values > 100. | |
citation_pattern_score | integer (0-100) | Must be an integer within the inclusive range 0 to 100. Reject on floats, negatives, or values > 100. | |
composite_authority_score | float (0.0-1.0) | Must be a float between 0.0 and 1.0 inclusive, rounded to 2 decimal places. Reject if outside range or missing. | |
primary_domain_category | string | Must be a non-empty string matching one of the predefined domain categories from the prompt's [DOMAIN_TAXONOMY] input. Reject on empty string or unknown category. | |
confidence_flag | enum: ["high", "medium", "low"] | Must be one of the three enum values. Set to "low" if any input metadata field was missing or unparseable. |
Common Failure Modes
Domain authority assessment is a high-stakes ranking step. When it fails, downstream answers inherit bad evidence. These are the most common failure modes and how to prevent them.
Recency Bias Overriding Authority
What to watch: The model overweights publication date and ignores institutional authority, ranking a recent blog post above an older government report. This is especially dangerous for regulatory, legal, and scientific queries where foundational sources matter more than freshness. Guardrail: Add explicit tiering rules in the prompt that separate authority assessment from recency assessment. Require the model to assign an authority tier first, then adjust for temporal relevance only within that tier.
Domain-Prestige Halo Effect
What to watch: The model assigns high authority to any content from a well-known domain (e.g., harvard.edu) without checking whether the specific page is a student blog, a personal opinion piece, or an official publication. This inflates scores for low-quality content hosted on reputable domains. Guardrail: Require the prompt to distinguish between institutional affiliation and content type. Add explicit checks for subdomain signals (e.g., blogs.harvard.edu vs www.harvard.edu/policy) and author role within the institution.
Citation Count as a Proxy for Quality
What to watch: The model treats high citation counts as strong authority signals without checking whether citations are critical, supportive, or negative. A widely cited retracted paper or a controversial opinion piece can appear authoritative by volume alone. Guardrail: Add a citation-context requirement to the prompt. Ask the model to note whether citations represent endorsements, rebuttals, or neutral references. Flag high-citation sources with known retraction or controversy signals for human review.
Commercial Content Passing as Independent Research
What to watch: Vendor white papers, sponsored content, and industry-funded research are scored as independent authoritative sources because the model misses subtle commercial signals like funding disclosures buried in footnotes or affiliate link patterns. Guardrail: Add a commercial intent detection step before authority scoring. Require the model to extract and flag funding disclosures, author affiliations with vendors, and promotional language patterns. Route flagged sources to a lower authority tier unless independently corroborated.
Missing Publication Metadata Treated as Neutral
What to watch: Sources with missing dates, absent author information, or unclear publisher identity receive middling scores instead of being flagged as unverifiable. The model fills gaps with assumptions rather than marking uncertainty. Guardrail: Add explicit handling for missing metadata in the prompt. Require the model to output an evidence_gaps field listing what's missing and to downgrade authority scores when critical metadata (author, date, publisher) is absent. Never let missing data default to neutral.
Echo Chamber Corroboration
What to watch: The model treats multiple sources confirming the same claim as independent verification when they're actually citing each other or drawing from the same single origin. This creates false confidence in unverified claims. Guardrail: Add a source-independence check to the prompt. Require the model to trace citation chains and identify when multiple sources share a single origin. Flag claims with circular citation patterns and downgrade corroboration scores when independence cannot be established.
Evaluation Rubric
How to test output quality before shipping. Run these checks against a labeled test set of at least 30 domains spanning all four authority tiers.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Tier Classification Accuracy |
| Model confuses institutional (Tier 1) with self-published (Tier 4) sources; misclassifies government domains as commercial | Stratified sample of 30 domains with 2 human raters; measure exact match and off-by-one tolerance |
Signal Attribution Completeness |
| Evidence field contains only generic statements like 'well-known domain' without citing concrete signals | Manual review of 50 outputs; count records where evidence field references specific metadata fields (domain suffix, author affiliation, citation count) |
Confidence Score Calibration | Mean confidence score within 0.15 of actual accuracy for each tier; no tier shows >0.3 gap | Model assigns confidence >= 0.9 to incorrect tier classifications; low confidence on obvious Tier 1 domains | Bucket predictions by confidence decile; plot expected vs observed accuracy; flag deciles with >0.2 deviation |
Structured Output Schema Compliance | 100% of outputs parse as valid JSON matching [OUTPUT_SCHEMA]; all required fields present | Missing domain field; evidence array empty on valid inputs; score outside 0.0-1.0 range | Automated schema validation in CI; reject any output that fails JSON parse or required-field check |
Edge Case Handling: Missing Metadata | When [SOURCE_METADATA] is sparse, model returns confidence <= 0.5 and sets authority_tier to 'insufficient_data' | Model assigns Tier 2 with high confidence based only on domain name; hallucinates affiliation signals not present in input | Test set of 10 domains with deliberately sparse metadata (only URL provided); verify conservative scoring |
Edge Case Handling: Conflicting Signals | When signals conflict (e.g., .gov domain but no institutional author), model flags conflict in explanation and reduces confidence | Model ignores conflicting signals and reports only the strongest positive indicator; no mention of uncertainty | Curated set of 8 domains with known signal conflicts; check explanation field for conflict acknowledgment and confidence reduction |
Bias Resistance: Domain Suffix Overreliance | Model does not assign Tier 1 solely based on .edu or .gov; requires additional institutional signals | All .edu domains classified as Tier 1 regardless of whether they are student blogs or official publications | Test set includes student personal pages on .edu domains, unofficial .gov subdomains; verify tier differentiation |
Latency and Token Efficiency | Average output tokens <= 300 per domain assessment; p95 latency <= 3 seconds in pipeline context | Output exceeds 800 tokens for single-domain assessment; verbose explanations repeating input metadata verbatim | Benchmark against 100-domain batch; measure token count and wall-clock time; flag outliers >2 standard deviations above mean |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Use the base prompt with a frontier model (GPT-4o, Claude 3.5 Sonnet) and a small sample of 10-20 domains. Remove the strict JSON schema requirement initially and ask for a markdown table with authority tiers and bullet-point justifications. This lets you iterate on the scoring dimensions before locking down the output contract.
Prompt snippet
codeEvaluate the domain authority of [DOMAIN] for the topic [TOPIC]. Consider institutional affiliation, expertise signals, and citation patterns. Return a tier (High/Medium/Low) and 3-5 bullet points explaining your reasoning.
Watch for
- Inconsistent tier assignments across similar domains
- Over-reliance on brand recognition instead of topic-specific expertise
- Missing edge cases like personal blogs with strong academic backing

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us