# Fix RAG Systems Citing Superseded Policies, Expired SLAs & Deprecated API Versions

> Standard vector databases score query-chunk cosine similarity with zero concept of effective dates, contract supersession, or partial amendments, so older 2023/2024 policies with slightly closer phrasing routinely outrank active 2026 addenda. Enforce bitemporal tstzrange filters in SQL, or enable Voxell Forge Coherence conflict holds + --as-of bitemporal queries ($199/mo Team; $499/mo Scale).

Canonical URL: https://voxell.ai/errors/rag-citing-superseded-policy-or-deprecated-api-version/


## Why Naive `created_at DESC` Boosting Fails on Partial Contract & ADR Amendments

Real enterprise corpora rarely replace whole files cleanly: a two-paragraph `2026 Fee Schedule Addendum` overrides Section 4.2 of a 60-page `2024 Master Services Agreement` while leaving Sections 1..30 in force. Naive recency decay either buries valid base clauses or lets the superseded Section 4.2 win top-1 cosine rank.

## Immediate PostgreSQL Fix: Bitemporal `valid_range` `tstzrange` Predicate

```sql
-- Filter active clauses as of a target business timestamp ($2) BEFORE vector ranking
SELECT doc_id, section_id, content
FROM governed_chunks
WHERE valid_range @> $2::timestamptz
  AND superseded_by_doc_id IS NULL
ORDER BY (embedding::halfvec(2560)) <=> $1::halfvec(2560)
LIMIT 10;
```

## Automated Pre-Query Contradiction Detection (`GET /conflicts`) With Voxell Forge Coherence

Even before you manually tag `superseded_by_doc_id`, Voxell Forge **Coherence** (`POST /v1/answers/{corpus}/vqs` and `GET /v1/answers/{corpus}/conflicts`) scans uploaded documents on GPU to flag conflicting numbers, SLAs, and version rules automatically (**$199/mo** Team annual; `--as-of` audit receipts on **Scale $499/mo**).

## Related Optimization Guides, Calculators & Benchmarks

- **[Bitemporal RAG: Stopping Superseded Citations Guide](/optimize/bitemporal-rag-superseded-docs-effective-dates/)**
- **[RAG Contradiction Detection Benchmark](/compare/rag-contradiction-detection-benchmark/)**
- **[Primary Dataset: Contradiction Benchmark Summary JSON](/datasets/)**
- **[Audit Your Docs or GitHub Repo Free](/audit/)**

## Frequently Asked Questions

### Can I test Voxell Forge contradiction detection on two conflicting policy snippets right now?

Yes. POST two JSON documents to https://api.voxell.ai/api/v1/agent/xray with zero API key to see live Coherence conflict detection.

### What is the difference between valid time and transaction time in bitemporal RAG?

Valid time records when a policy rule applies in the real world, while transaction (system) time records when the document entered the index for point-in-time audit replay.

---

## Zero-Install Model Context Protocol (MCP) & Keyless Agent Verification

```bash
claude mcp add --transport http voxell-forge https://api.voxell.ai/mcp/try
```

- Keyless Retrieval Bake-Off: `POST https://api.voxell.ai/api/v1/agent/bakeoff`
- Keyless Contradiction X-Ray: `POST https://api.voxell.ai/api/v1/agent/xray`
- Machine-Readable Pricing JSON: `https://voxell.ai/api/v1/agent/pricing.json`
- Full LLM Authority Map: `https://voxell.ai/llms-full.txt`
