An open API service indexing awesome lists of open source software.

https://github.com/eulogik/lexrag

Legal Intelligence Terminal — Hybrid RAG for UAE & Indian Law, Taxation & Compliance. Built by Evolucent AI, engineered by Eulogik.
https://github.com/eulogik/lexrag

artificial-intelligence case-law compliance corporate-tax fastembed gst hybrid-search indian-law legal-ai legal-rag legal-research legal-tech python qdrant rag retrieval-augmented-generation tax-research uae-law vat

Last synced: 14 days ago
JSON representation

Legal Intelligence Terminal — Hybrid RAG for UAE & Indian Law, Taxation & Compliance. Built by Evolucent AI, engineered by Eulogik.

Awesome Lists containing this project

README

          

---
library_name: lexrag
pipeline_tag: text-generation
tags:
- legal-rag
- legal-ai
- legal-research
- retrieval-augmented-generation
- uae-law
- indian-law
- gst
- vat
- corporate-tax
- hybrid-search
- fastembed
- qdrant
- legal-tech
- compliance
- tax-research
- case-law
- evolucentai
- eulogik
license: agpl-3.0
language:
- en
widget:
- text: "What is the GST rate on online gaming contest prizes in India?"
- text: "UAE VAT on financial services"
- text: "TDS under Section 194B on winnings"
- text: "UAE Corporate Tax free zone treatment"
inference: false
---



⚖️ LexRAG — The Legal Intelligence Terminal



Enterprise-Grade Hybrid RAG for UAE & Indian Law, Taxation & Compliance



Stars
License
PyPI
HuggingFace

---

## What is LexRAG?

**LexRAG** is a professional-grade, high-performance Retrieval-Augmented Generation (RAG) platform purpose-built for **UAE and Indian laws, taxation, accounting standards, and corporate compliance**. It combines hybrid dense-sparse retrieval, neural reranking, auto-jurisdiction detection, and multi-provider LLM streaming into a zero-latency terminal interface.

> ⚡ **Built by [Evolucent AI](https://evolucentai.com)** — Premium Legal Technology Solutions
> 🛠️ **Engineered by [Eulogik](https://eulogik.com)** — Enterprise AI & Systems Integration

---

## Key Capabilities

| Capability | Technology |
|------------|------------|
| **Dense Retrieval** | `BAAI/bge-small-en-v1.5` via fastembed |
| **Sparse Retrieval** | `prithivida/Splade_PP_en_v1` via fastembed |
| **Hybrid Fusion** | Reciprocal Rank Fusion (RRF) |
| **Neural Reranker** | `BAAI/bge-reranker-base` (CrossEncoder) |
| **Vector Database** | Qdrant (on-disk, no Docker required) |
| **LLM Providers** | Groq, OpenRouter, Ollama (dynamic model catalog) |
| **Jurisdiction** | Auto-detect India/UAE/Both with manual override |
| **Confidence Tiers** | GROUNDED / PARTIAL / SYNTHESIZED |
| **Streaming** | SSE with heartbeat keep-alive |
| **Persistence** | SQLite chat history with session management |

---

## Quick Start

```bash
# Install from PyPI
pip install lexrag

# Or clone from source
git clone https://github.com/eulogik/LexRAG.git
cd LexRAG
pip install -r requirements.txt

# Configure
cp .env.example .env
# Edit .env with your API keys

# Run
python -m uvicorn api.main:app --host 0.0.0.0 --port 8000
# Open http://localhost:8000
```

---

## Architecture

```mermaid
flowchart TD
UI[HTML/CSS/JS SPA] <-->|SSE / API| FastAPI[FastAPI Server]
FastAPI <-->|History| SQL[(SQLite)]
Query --> Detect[Auto-Jurisdiction]
Detect --> Search{Hybrid Search}
Search -->|Dense| Dense[BGE-small-en-v1.5]
Search -->|Sparse| Sparse[Splade_PP_en_v1]
Dense & Sparse -->|RRF| Qdrant[(Qdrant)]
Qdrant -->|Candidates| Rerank[BGE-Reranker-Base]
Rerank -->|Top Docs| Context[Build Prompt]
Context --> LLM{LLM Router}
LLM -->|Cloud| Groq[Groq]
LLM -->|Cloud| OpenRouter[OpenRouter]
LLM -->|Local| Ollama[Ollama]
```

---

## Ecosystem

| Platform | Link | Description |
|----------|------|-------------|
| **GitHub** | [eulogik/LexRAG](https://github.com/eulogik/LexRAG) | Source code & issues |
| **PyPI** | [lexrag](https://pypi.org/project/lexrag/) | Python package |
| **HuggingFace** | [EvolucentAI/lexrag](https://huggingface.co/EvolucentAI/lexrag) | Model card & codebase |
| **HF Demo** | [EvolucentAI/lexrag-demo](https://huggingface.co/spaces/EvolucentAI/lexrag-demo) | Interactive Gradio Space |
| **Eulogik** | [eulogik.com](https://eulogik.com) | Engineering partner |
| **Evolucent AI** | [evolucentai.com](https://evolucentai.com) | Product & commercial |

---

## License

**AGPL v3** — Free for open-source and internal use.
Commercial licenses available from [Evolucent AI](https://evolucentai.com) for proprietary deployments.

---



Built by Evolucent AI
Engineered by Eulogik