Juristt – AI-Powered Legal Intelligence Platform for Pakistan

Inspiration

Lawyers, businesses, and ordinary citizens in Pakistan often spend hours navigating lengthy legal documents to find relevant provisions, procedures, and references. For lawyers in particular, preparing a single case may require reviewing multiple statutes, legal provisions, supporting documents, and legal precedents before reaching a reliable conclusion.

We believed legal research should not be limited by time, complexity, or accessibility. That inspired us to build Juristt, an AI-powered legal intelligence platform that helps users find relevant legal information in seconds instead of hours.

Why should finding a legal answer take hours when AI can help find it in seconds?

Juristt was created to make legal information more accessible, understandable, and efficient for legal professionals, businesses, students, and the public.

What it does

Juristt is an AI-powered legal intelligence platform focused on Pakistani law.

Users can ask legal questions in natural language, and the platform retrieves relevant statutory provisions, performs grounded legal reasoning, validates citations, and generates structured responses backed by authentic legal sources.

The current corpus includes major Pakistani statutes including:

  • Constitution of Pakistan, 1973
  • Pakistan Penal Code, 1860
  • Code of Criminal Procedure, 1898
  • Code of Civil Procedure, 1908
  • Companies Act, 2017
  • Anti-Terrorism Act, 1997
  • Civil Servants Act, 1973
  • Qanun-e-Shahadat Order, 1984
  • Muslim Family Laws Ordinance, 1961
  • State Bank of Pakistan Act, 1956

By making legal information easier to access and understand, Juristt helps lawyers save time, improves public awareness of legal rights, and contributes to a more efficient and accessible legal system in Pakistan.

Beyond answering legal questions, our long-term vision is to contribute to a more efficient legal ecosystem in Pakistan by reducing research time, improving legal awareness, helping lawyers prepare cases faster, assisting businesses with compliance, and enabling citizens to better understand their rights and responsibilities.

By saving time for lawyers, legal researchers, businesses, and eventually courts, we believe AI can help improve access to justice and strengthen the overall legal system.

How We Built It

Juristt was built using an agentic AI architecture on Google Cloud.

Technology Stack

  • Python
  • FastAPI
  • Flutter
  • Vertex AI RAG Engine
  • Gemini 2.5 Flash
  • Google Cloud Run
  • Google Cloud Shell
  • Firebase
  • Docker
  • Pydantic

Agentic Workflow

$$ Query \rightarrow Query\ Router \rightarrow Query\ Rewriter \rightarrow Vertex\ AI\ RAG\ Retrieval \rightarrow Legal\ Reasoning \rightarrow Citation\ Validation \rightarrow Response\ Composer $$

The Query Router Agent identifies user intent, determines the legal domain, and decides which workflow should be executed.

The Query Rewriter Agent improves retrieval quality through domain-aware query expansion.

Vertex AI RAG Engine retrieves relevant legal provisions from the indexed corpus.

Gemini 2.5 Flash performs grounded legal reasoning using retrieved evidence.

The Citation Validation Agent verifies references and validates supporting legal sources.

The Response Composer Agent generates the final structured answer delivered to the user.

Together, these agents make key decisions throughout the workflow by selecting relevant legal sources, determining whether sufficient evidence exists, validating citations, and ensuring responses remain grounded in authoritative legal documents.

The backend was developed and managed through Google Cloud Shell, containerized using Docker, and deployed on Google Cloud Run as a scalable serverless application.

The frontend was built using Flutter, enabling a cross-platform experience. Juristt is currently available on the web, and we plan to launch Android and iOS applications to provide seamless access to legal assistance from anywhere.

Challenges We Ran Into

  • Payment Collection: Before implementing a full payment system, we onboarded early customers through direct bank transfers and manual verification.

  • Reducing Hallucinations: Legal AI requires high accuracy, so ensuring responses remained grounded in verified legal sources required extensive retrieval tuning and citation validation.

  • Retrieval Quality: Users often use natural language instead of legal terminology, making it challenging to consistently retrieve the most relevant legal provisions.

  • Latency & Deployment: Balancing response quality with speed while deploying and managing a multi-agent system on Google Cloud required significant optimization and infrastructure work.

Accomplishments We're Proud Of

  • Built a production-ready legal AI platform focused on Pakistani law.
  • Designed and implemented a multi-agent legal reasoning architecture.
  • Integrated Vertex AI RAG Engine for grounded legal retrieval.
  • Implemented citation validation to improve trust and transparency.
  • Successfully deployed the platform on Google Cloud Run.
  • Built a Flutter-based cross-platform frontend.
  • Created a scalable foundation for future legal AI services and workflows.

What We Learned

This project taught us that building trustworthy AI systems requires much more than connecting an LLM to a dataset.

We gained hands-on experience with:

  • Agentic AI architectures
  • Retrieval-Augmented Generation (RAG)
  • Google Cloud services
  • Cloud-native deployment
  • Observability and monitoring
  • Latency optimization
  • Legal knowledge systems

Most importantly, we learned that trust is the most important feature in legal AI. Users need answers that are transparent, verifiable, and backed by authentic legal sources.

What's Next for Juristt – Legal AI Assistant

Our next goal is to transform Juristt from a legal research assistant into a complete legal intelligence platform.

Future plans include:

  • Android and iOS mobile applications.
  • Urdu and multilingual legal assistance.
  • Expanded legal corpus including additional statutes and case law.
  • Compliance and legal support tools for businesses.
  • Enterprise-grade legal intelligence solutions.
  • Expansion into international markets by adapting Juristt to the laws, regulations, and statutory frameworks of other countries.

Our long-term mission is simple:

Make legal knowledge accessible, affordable, and understandable for everyone through responsible AI.

By enabling faster legal research, improving legal awareness, and reducing time spent on legal workflows, Juristt aims to support a more efficient, accessible, and informed legal ecosystem in Pakistan today and across multiple jurisdictions in the future.

Built With

Share this project:

Updates