BEBahae Eddine
back to projects
Legal Tech · RAGIn development

JurIA

An AI-powered legal research platform for Morocco, France, and OHADA — sourced answers from official texts, in Arabic, French, and English, with JuriCoins pricing and a security model built around law 09-08.

stack
PythonFastAPILangChainAzure AI FoundryMilvusNext.js

JurIA is an AI legal platform for the Moroccan legal market — a market where source texts are multilingual, fragmented across portals, and rarely annotated. The positioning is direct: "L'IA de référence pour le droit" — legal research, document analysis, and sourced answers built from the official texts of each jurisdiction.

Problem

Lawyers, legal researchers, compliance teams, notaries, and students spend hours cross-referencing the Moroccan Bulletin Officiel, codes, and OHADA conventions in French and Arabic. Search portals return documents; nobody returns answers. And a chatbot that returns plausible-sounding answers without sources is worse than a slow search — it's a professional liability.

Approach

JurIA is a retrieval-augmented generation (RAG) pipeline serving four audiences:

  • Avocats & cabinets — accelerate research and dossier preparation.
  • Juristes d'entreprise — secure decisions with answers grounded in the texts.
  • Notaires & adouls — verify applicable provisions in seconds.
  • Étudiants & chercheurs — explore Moroccan law with a pedagogical assistant.

Technical core:

  • Corpus: official legal texts normalized from PDF and scanned sources into structured documents.
  • Grounding: hybrid retrieval (dense + keyword) over Milvus with metadata filtering by jurisdiction and document type.
  • Generation: answer synthesis that cites the exact article and source, with Arabic, French, and English support across Morocco, France, and the OHADA space.
  • Hallucination management: the model can only answer from retrieved passages; anything ungrounded is refused, not guessed.
  • Security: encryption, role-based access, and a compliance posture built around Morocco's law 09-08.

Key decisions

  • Jurisdiction as a first-class filter — Morocco, France, and OHADA have different legal systems; conflating them is worse than no answer at all.
  • Citations by default — every answer carries its source. That's the difference between a research tool and a chatbot.
  • Simple, commitment-free pricing — plans in JuriCoins, no subscription lock-in, so cost scales with actual use.

Status

In development. The live preview is on juria-ma.vercel.app. The corpus pipeline and retrieval layer are the current focus — I've written the full engineering playbook in Production RAG for Legal Research — and when the accuracy bar is met, it becomes a fully launched product under the X-Ecosystem.