What It Is
A legal search-and-answer system built on a prepared corpus. The backend parses legal source files, stores structured metadata, and queries a local retrieval index before the model produces a final answer.
Designed for legal questions over a prepared corpus, this system retrieves relevant law first, then generates grounded answers from indexed legal text instead of relying on a blank chat session.
The result is a more controlled legal workflow: repeatable retrieval, source-backed responses, and a corpus that stays prepared on the server for repeated use.
$ corpus.status documents: 2 legal_units: 10380 faiss_index_size: 10500 $ retrieval.pipeline 1. embed question 2. search local FAISS index 3. rerank candidate passages 4. generate answer from retrieved legal text only $ active.models embedding: text-embedding-3-large rerank: gpt-5-mini answer: gpt-5.4-2026-03-05
This app is not just a model plus an uploaded file. It keeps a persistent legal corpus prepared in advance, with structured legal units, local retrieval, and server-side controls around the query flow.
It is meant for demos, internal legal research workflows, and structured question answering over a known set of laws where consistency and traceability matter more than generic conversation.
A legal search-and-answer system built on a prepared corpus. The backend parses legal source files, stores structured metadata, and queries a local retrieval index before the model produces a final answer.
Documents are converted, structured, embedded, and indexed ahead of time. At query time, the app retrieves candidate passages, reranks them for legal relevance, and answers from the narrowed legal context.
That pipeline makes the system more reusable, inspectable, and presentation-ready than one-off document chats. The corpus stays prepared, so repeated legal questions can run against the same structured base.
A visitor should quickly understand the kinds of tasks this deployment is meant to handle. These are examples of the type of questions the app is designed to answer against the indexed laws.
This deployment currently answers questions over the indexed legal documents listed here. Those files form the retrieval base used by the app.
The current deployment is intentionally narrow: it focuses on the legal texts already indexed on the server. That makes the scope explicit and the retrieval behavior easier to explain during a presentation.
/appThis legal app is available by controlled access. To request a username and password for the demo, contact ogracia@uabc.edu.mx.