Legal research
LegalAI / PactoLegal
The LegalAI project, branded PactoLegal, combines legal corpus ingestion, document processing, vector retrieval and model orchestration to support research across Bolivian legal codes and court decisions with cited responses.
Product capabilities
- Search across legal codes and jurisprudence
- Responses with citations to source material
- Tools for researching fees and procedural deadlines
Platform architecture
Application, data and infrastructure.
Legal corpus ingestion, document processing, retrieval, model integration, research interfaces and supporting infrastructure.
- IngestionLegal sources and document OCR
- RetrievalEmbeddings and Qdrant search
- GenerationLanguage-model adapters
- ApplicationResearch, documents and accounts
Data flow
- Legal sources
- Ingestion / OCR
- Search indexes
- Retrieval
- Cited responses
Corpus and documents
Source adapters ingest legal norms and court decisions. Document ingestion and OCR services turn source material into content for indexing and research.
Retrieval and model orchestration
Retrieval services connect to Qdrant vector search. Separate embedding and language-model adapters keep retrieval, model selection and response generation behind explicit application interfaces.
Application infrastructure
The research application includes authenticated accounts, document workflows, subscriptions and notifications. The container stack separates the API and interface from PostgreSQL, connection pooling, Redis and Qdrant.
- FastAPI
- React / TypeScript
- PostgreSQL
- Qdrant
- Redis
- OCR / model adapters
