<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dura-lex.org/index.php?action=history&amp;feed=atom&amp;title=Corpus%2FQuality</id>
	<title>Corpus/Quality - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dura-lex.org/index.php?action=history&amp;feed=atom&amp;title=Corpus%2FQuality"/>
	<link rel="alternate" type="text/html" href="https://wiki.dura-lex.org/index.php?title=Corpus/Quality&amp;action=history"/>
	<updated>2026-04-23T05:46:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.dura-lex.org/index.php?title=Corpus/Quality&amp;diff=49&amp;oldid=prev</id>
		<title>Nicolas: Import from duralex/spec/QUALITY.md — faithful conversion to wikitext (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.dura-lex.org/index.php?title=Corpus/Quality&amp;diff=49&amp;oldid=prev"/>
		<updated>2026-04-23T02:10:16Z</updated>

		<summary type="html">&lt;p&gt;Import from duralex/spec/QUALITY.md — faithful conversion to wikitext (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Content Quality =&lt;br /&gt;
&lt;br /&gt;
== Two quality axes ==&lt;br /&gt;
&lt;br /&gt;
The system tracks two independent quality dimensions:&lt;br /&gt;
&lt;br /&gt;
=== 1. Content quality (tags.content_quality on corpus documents) ===&lt;br /&gt;
&lt;br /&gt;
Quality of the text in &amp;lt;code&amp;gt;body&amp;lt;/code&amp;gt;. Progression:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Level !! Description !! Searchable? !! Reliable for display?&lt;br /&gt;
|-&lt;br /&gt;
| ocr_raw || OCR extraction, errors likely || Degraded FTS || No -- warn user&lt;br /&gt;
|-&lt;br /&gt;
| ocr_cleaned || OCR cleaned by regex or LLM || Better FTS || Partially&lt;br /&gt;
|-&lt;br /&gt;
| native_raw || Native text (PDF text layer, .doc), structure lost || Good FTS || Yes, but no structure&lt;br /&gt;
|-&lt;br /&gt;
| native_structured || Structured source (HTML Legifrance, XML Akoma Ntoso) || Optimal FTS || Yes&lt;br /&gt;
|-&lt;br /&gt;
| machine_reviewed || Reviewed/corrected by LLM || Optimal FTS || Yes&lt;br /&gt;
|-&lt;br /&gt;
| human_reviewed || Reviewed by a human || Optimal FTS || Yes&lt;br /&gt;
|-&lt;br /&gt;
| jurist_reviewed || Validated by a jurist || Optimal FTS || Yes (gold standard)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Only the current level is stored. Progression is one-way (except disputes).&lt;br /&gt;
&lt;br /&gt;
=== 2. Annotation confidence (on graph.annotations -- future, documented here for reference) ===&lt;br /&gt;
&lt;br /&gt;
Quality of knowledge graph annotations. Separate from content quality.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Method !! Confidence !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| stub || stub || Placeholder, not yet created&lt;br /&gt;
|-&lt;br /&gt;
| llm || memory_only || LLM-generated, not verified against source&lt;br /&gt;
|-&lt;br /&gt;
| llm || source_checked || Verification pass confirmed citation exists&lt;br /&gt;
|-&lt;br /&gt;
| llm || cross_validated || Cross-validation confirmed consistency&lt;br /&gt;
|-&lt;br /&gt;
| human || (any) || Non-expert human reviewed&lt;br /&gt;
|-&lt;br /&gt;
| jurist || (any) || Legal professional validated&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Progression: stub -&amp;gt; memory_only -&amp;gt; source_checked -&amp;gt; cross_validated. Can be downgraded to &amp;lt;code&amp;gt;disputed&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== How they interact ===&lt;br /&gt;
&lt;br /&gt;
A corpus document has content_quality. An annotation on that document has its own confidence. The weakest link determines the trust of any reasoning path:&lt;br /&gt;
* An annotation with confidence=cross_validated on a document with content_quality=ocr_raw is still unreliable (the source text may have OCR errors that corrupted the annotation).&lt;br /&gt;
* A high-quality document (native_structured) with a stub annotation has no knowledge graph coverage yet.&lt;br /&gt;
&lt;br /&gt;
== Impact on the system ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;MCP tools&amp;#039;&amp;#039;&amp;#039;: display warnings for content_quality &amp;lt; native_structured&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Knowledge graph&amp;#039;&amp;#039;&amp;#039;: propagate minimum confidence in reasoning paths&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Quality pipeline&amp;#039;&amp;#039;&amp;#039;: prioritize ocr_raw documents for LLM cleaning, then for annotation&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;body_search&amp;#039;&amp;#039;&amp;#039;: documents with content_quality &amp;gt;= machine_reviewed should have body_search populated with cleaned text&lt;br /&gt;
&lt;br /&gt;
[[Category:Corpus]]&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>
	</entry>
</feed>