RAG — Public Legal Corpus
What it does
This tool retrieves from a curated, pre-indexed corpus of public legal texts organized into per-jurisdiction indexes. Unlike live database queries (Westlaw, LexisNexis), this corpus is pre-processed and embedded for fast semantic retrieval — trading real-time currency for speed and cost efficiency.
The public legal corpus is the default research layer when:
- Premium database credentials are not configured for the tenant
- The query is about well-established statutory provisions unlikely to have changed recently
- The jurisdiction is a MENA court system better covered by this corpus than by Westlaw/LexisNexis
- The user needs quick retrieval during drafting without a full research query
Corpus structure
Per-jurisdiction indexes
| Jurisdiction |
Content |
Currency |
| DIFC |
All DIFC Laws, DIFC Courts judgments (Court of First Instance + Court of Appeal + DIFC Arbitration Institute), DIFC Authority regulations |
Updated quarterly |
| ADGM |
ADGM Acts, ADGM Courts judgments, FSRA regulations, ADGM Registrar guidance |
Updated quarterly |
| UAE (onshore) |
UAE Federal Laws (Commercial Companies Law, Civil Transactions Law, Commercial Code), CBUAE circulars, DED guidance |
Updated semi-annually |
| KSA |
Saudi Company Law, Saudi Civil Transactions Law, SAMA circulars, CMA regulations, MOC guidance |
Updated semi-annually |
| LB |
Lebanese Code of Commerce, Code of Obligations and Contracts, BDL circulars, selected Court of Cassation judgments |
Updated annually |
| EG |
Egyptian Civil Code, Egyptian Commercial Companies Law, EFSA regulations |
Updated annually |
| UK |
Selected House of Lords / Supreme Court judgments, key CA decisions (particularly arbitration, contract, company law) |
Updated quarterly |
| US |
SCOTUS opinions, selected federal circuit court opinions, major securities law cases |
Updated quarterly |
| EU |
CJEU opinions on jurisdiction, data protection (GDPR), competition |
Updated quarterly |
| FR |
Code civil (consolidated), Code de commerce, selected Cassation judgments |
Updated semi-annually via Legifrance |
| GCC |
GCC Secretariat instruments, uniform GCC laws |
Updated annually |
Document types indexed
- Court judgments (full text where available, summary where full text is restricted)
- Statutory texts (consolidated, with version dates)
- Regulatory instruments (circulars, guidance notes, rulebooks)
- Official gazette publications (for recent statutory instruments)
- Selected academic commentary (law review articles on MENA law, DIFC/ADGM practitioners' guides)
Retrieval precedence
| Priority |
Source |
Use when |
| 1 |
Firm KB ([[tool-rag-firm-knowledge]]) |
Firm-specific precedent exists |
| 2 |
Personal KB ([[tool-rag-personal-knowledge]]) |
User's personal uploaded documents |
| 3 |
Live database (Westlaw / LexisNexis) |
Real-time currency needed; credentials available |
| 4 |
This tool — Public corpus |
Default; no credentials or speed/cost priority |
| 5 |
Web search |
Freshness needed beyond corpus currency |
Capabilities
Semantic search
Input: {
query: "DIFC Court approach to liquidated damages clauses",
jurisdiction: "DIFC",
documentTypes: ["case_law"]
}
Output: [
{
title, court, date, citation,
snippet, similarity, url,
fullTextAvailable: bool
}
]
Statute lookup (exact article)
Input: {
articleRef: "Article 58 DIFC Contract Law",
jurisdiction: "DIFC"
}
Output: { text, version, effectiveDate, consolidationDate }
Parallel statute comparison
Input: {
topic: "force majeure definition",
jurisdictions: ["DIFC", "UAE-onshore", "KSA", "LB"]
}
Output: { comparison: [{ jurisdiction, articleRef, text }] }
Currency and staleness
Important limitation: this corpus is periodically refreshed, not real-time. Currency varies by jurisdiction and document type. For:
- Recent cases (< 6 months): use live database or web search
- Recent regulatory circulars (< 12 months): use web search (site:cbuae.gov.ae, site:sama.gov.sa, etc.)
- Emergency legislation / COVID-era decrees: verify against official gazette
Every result is tagged with corpusDate — the date this document was last ingested. If corpusDate is more than 12 months ago for a fast-moving area (fintech, crypto, AI regulation), flag for verification.
Citations
Retrieved corpus passages are cited as:
- For case law: standard legal citation format (e.g.,
[2021] DIFC CFI 034)
- For statutes: article reference + version date (e.g.,
DIFC Contract Law, Art. 58, as of 2023)
- For regulatory instruments:
[Corpus: CBUAE Circular 2023/01] with corpus ingestion date
Always distinguish corpus-retrieved citations from live-database-retrieved citations in the output — the former may not reflect the most current version.
Output schema
{
"results": [
{
"title": "Al Khorafi v. Bank Sarasin-Alpen (ME) Ltd",
"citation": "[2011] DIFC CA 001",
"court": "DIFC Court of Appeal",
"date": "2011-04-15",
"jurisdiction": "DIFC",
"documentType": "case_law",
"snippet": "...",
"similarity": 0.88,
"corpusDate": "2024-10-01",
"fullTextAvailable": true,
"url": "https://difccourts.ae/..."
}
],
"totalResults": 5,
"corpusCurrencyWarning": null,
"queryTimestamp": "2026-05-14T10:00:00Z"
}
Related skills
- [[tool-rag-firm-knowledge]] — firm KB; higher precedence
- [[tool-rag-personal-knowledge]] — user personal KB; higher precedence
- [[tool-lexisnexis]] — live premium database; higher precedence when credentialed
- [[tool-thomson-reuters-westlaw]] — live premium database for US/UK/AU
- [[tool-legifrance-fr]] — live official French text; more current than corpus for FR
- [[tool-legal-data-hunter]] — orchestrator that combines this and other sources
1---2name: tool-rag-public-legal-corpus3description: Use when retrieving from the indexed corpus of public legal texts — court judgments (DIFC, ADGM, UK, US, EU), statutes, official gazettes, and regulatory instruments — to support legal research, precedent finding, or statute verification. Organized as per-jurisdiction indexes. Lower precedence than firm KB and personal KB; complements premium databases. Best for DIFC/ADGM case law, GCC statutes, and curated public corpora not fully covered by Westlaw or LexisNexis.4license: MIT5---67# RAG — Public Legal Corpus89## What it does1011This tool retrieves from a curated, pre-indexed corpus of public legal texts organized into per-jurisdiction indexes. Unlike live database queries (Westlaw, LexisNexis), this corpus is pre-processed and embedded for fast semantic retrieval — trading real-time currency for speed and cost efficiency.1213The public legal corpus is the default research layer when:14- Premium database credentials are not configured for the tenant15- The query is about well-established statutory provisions unlikely to have changed recently16- The jurisdiction is a MENA court system better covered by this corpus than by Westlaw/LexisNexis17- The user needs quick retrieval during drafting without a full research query1819## Corpus structure2021### Per-jurisdiction indexes2223| Jurisdiction | Content | Currency |24|---|---|---|25| DIFC | All DIFC Laws, DIFC Courts judgments (Court of First Instance + Court of Appeal + DIFC Arbitration Institute), DIFC Authority regulations | Updated quarterly |26| ADGM | ADGM Acts, ADGM Courts judgments, FSRA regulations, ADGM Registrar guidance | Updated quarterly |27| UAE (onshore) | UAE Federal Laws (Commercial Companies Law, Civil Transactions Law, Commercial Code), CBUAE circulars, DED guidance | Updated semi-annually |28| KSA | Saudi Company Law, Saudi Civil Transactions Law, SAMA circulars, CMA regulations, MOC guidance | Updated semi-annually |29| LB | Lebanese Code of Commerce, Code of Obligations and Contracts, BDL circulars, selected Court of Cassation judgments | Updated annually |30| EG | Egyptian Civil Code, Egyptian Commercial Companies Law, EFSA regulations | Updated annually |31| UK | Selected House of Lords / Supreme Court judgments, key CA decisions (particularly arbitration, contract, company law) | Updated quarterly |32| US | SCOTUS opinions, selected federal circuit court opinions, major securities law cases | Updated quarterly |33| EU | CJEU opinions on jurisdiction, data protection (GDPR), competition | Updated quarterly |34| FR | Code civil (consolidated), Code de commerce, selected Cassation judgments | Updated semi-annually via Legifrance |35| GCC | GCC Secretariat instruments, uniform GCC laws | Updated annually |3637### Document types indexed38- Court judgments (full text where available, summary where full text is restricted)39- Statutory texts (consolidated, with version dates)40- Regulatory instruments (circulars, guidance notes, rulebooks)41- Official gazette publications (for recent statutory instruments)42- Selected academic commentary (law review articles on MENA law, DIFC/ADGM practitioners' guides)4344## Retrieval precedence4546| Priority | Source | Use when |47|----------|--------|---------|48| 1 | Firm KB ([[tool-rag-firm-knowledge]]) | Firm-specific precedent exists |49| 2 | Personal KB ([[tool-rag-personal-knowledge]]) | User's personal uploaded documents |50| 3 | Live database (Westlaw / LexisNexis) | Real-time currency needed; credentials available |51| 4 | **This tool — Public corpus** | Default; no credentials or speed/cost priority |52| 5 | Web search | Freshness needed beyond corpus currency |5354## Capabilities5556### Semantic search57```58Input: {59 query: "DIFC Court approach to liquidated damages clauses",60 jurisdiction: "DIFC",61 documentTypes: ["case_law"]62}63Output: [64 {65 title, court, date, citation,66 snippet, similarity, url,67 fullTextAvailable: bool68 }69]70```7172### Statute lookup (exact article)73```74Input: {75 articleRef: "Article 58 DIFC Contract Law",76 jurisdiction: "DIFC"77}78Output: { text, version, effectiveDate, consolidationDate }79```8081### Parallel statute comparison82```83Input: {84 topic: "force majeure definition",85 jurisdictions: ["DIFC", "UAE-onshore", "KSA", "LB"]86}87Output: { comparison: [{ jurisdiction, articleRef, text }] }88```8990## Currency and staleness9192**Important limitation**: this corpus is periodically refreshed, not real-time. Currency varies by jurisdiction and document type. For:93- Recent cases (< 6 months): use live database or web search94- Recent regulatory circulars (< 12 months): use web search (site:cbuae.gov.ae, site:sama.gov.sa, etc.)95- Emergency legislation / COVID-era decrees: verify against official gazette9697Every result is tagged with `corpusDate` — the date this document was last ingested. If `corpusDate` is more than 12 months ago for a fast-moving area (fintech, crypto, AI regulation), flag for verification.9899## Citations100101Retrieved corpus passages are cited as:102- For case law: standard legal citation format (e.g., `[2021] DIFC CFI 034`)103- For statutes: article reference + version date (e.g., `DIFC Contract Law, Art. 58, as of 2023`)104- For regulatory instruments: `[Corpus: CBUAE Circular 2023/01]` with corpus ingestion date105106Always distinguish corpus-retrieved citations from live-database-retrieved citations in the output — the former may not reflect the most current version.107108## Output schema109110```json111{112 "results": [113 {114 "title": "Al Khorafi v. Bank Sarasin-Alpen (ME) Ltd",115 "citation": "[2011] DIFC CA 001",116 "court": "DIFC Court of Appeal",117 "date": "2011-04-15",118 "jurisdiction": "DIFC",119 "documentType": "case_law",120 "snippet": "...",121 "similarity": 0.88,122 "corpusDate": "2024-10-01",123 "fullTextAvailable": true,124 "url": "https://difccourts.ae/..."125 }126 ],127 "totalResults": 5,128 "corpusCurrencyWarning": null,129 "queryTimestamp": "2026-05-14T10:00:00Z"130}131```132133## Related skills134135- [[tool-rag-firm-knowledge]] — firm KB; higher precedence136- [[tool-rag-personal-knowledge]] — user personal KB; higher precedence137- [[tool-lexisnexis]] — live premium database; higher precedence when credentialed138- [[tool-thomson-reuters-westlaw]] — live premium database for US/UK/AU139- [[tool-legifrance-fr]] — live official French text; more current than corpus for FR140- [[tool-legal-data-hunter]] — orchestrator that combines this and other sources