Case study · Juridata
Arabic legal research, from hours to seconds
Juridata is a legal research platform for Moroccan legal professionals. I work on its AI search: ask a question in Arabic and get the relevant court rulings and legal texts in seconds, from a corpus of more than 40,000 rulings.
- Role
- Full-Stack AI Engineer
- Company
- Juridata, Tangier
- Period
- Since January 2026
- Status
- Live, in production

Results
- 40,000+
- Court rulings searchable by meaning, in Arabic
- Hours → seconds
- Time to find the relevant case law
- RAG
- Answers written from the retrieved rulings and texts
01
The problem
Moroccan case law is written in Arabic, in long rulings full of legal vocabulary. A keyword search only finds rulings that use the exact words of the query, so a lawyer looking for precedent reads through pages of results, or misses the ruling that says the same thing in other words.
Juridata needed search that understands what a question means, in Arabic, across the whole corpus of rulings and legal texts.
02
How the search works
Retrieval-augmented generation (RAG): find the right sources first, then let the model answer from them.
- 01
Prepare the corpus. More than 40,000 court rulings and thousands of legal texts (laws and decrees) are collected and indexed.
- 02
Embed by meaning. Each text becomes a vector with Gemini embeddings on Vertex AI, so similar meanings land close together even when the wording differs.
- 03
Retrieve. A question in Arabic is embedded the same way and compared with the corpus; the closest rulings and texts come back first.
- 04
Answer from the sources. For the AI assistant, the retrieved texts go to a large language model (Gemini), which writes its answer from those texts rather than from memory.
03
Around the search
Search is the core, but Juridata is a full product for legal teams.
- Contract analysis with AI risk assessment and compliance checks
- An AI assistant for legal research and litigation consultation
- Team workspaces with role-based access
- Automated legal newsletters, sent by scheduled jobs
- Online payments with Payzone
04
What I did
I work across the front end, the back end and the AI layer.
- 01
Developed React components for the legal search interface and AI chat
- 02
Integrated Gemini for intelligent analysis of Moroccan legal documents
- 03
Implemented RAG semantic search over 40,000+ court rulings with Vertex AI embeddings
- 04
Built contract analysis module with risk detection and compliance checking
- 05
Developed FastAPI endpoints for conversation and team management
- 06
Configured CronJobs for automated legal newsletter delivery
- 07
Integrated multi-language support with full RTL layout for Arabic
- 08
Integrated Payzone payments
05
Stack
- Next.js
- React
- TypeScript
- Tailwind CSS
- FastAPI
- RAG
- Gemini
- Vertex AI embeddings
- Payzone
- JWT
- Docker
Have a similar problem, or a role where this fits?