Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
AI-powered legal compliance assistant for alcohol beverage pricing laws — extracts, analyzes, and explains New York state-level regulationsusing RAG + knowledge-graph reasoning.
| Date | Stars |
|---|---|
| 2026-07-31 | 330 |
| 2026-08-04 | 330 |
| 2026-08-06 | 330 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# 🧠 AI Regulatory Compliance Assistance System > An **AI-based legal compliance analysis platform** integrating **Alibaba Cloud Bailian** AI capabilities for regulatory document processing, semantic retrieval, compliance analysis, and knowledge-graph construction. --- ## 🚀 System Overview The **AI Regulatory Compliance Assistance System** automates compliance interpretation across complex legal frameworks. It supports PDF / HTML regulation ingestion, AI-powered question answering, and explainable rule mapping through RAG + knowledge-graph techniques. --- ## ✨ Key Features ### 1. Document Processing Module - 📄 Upload **PDF** or **HTML** regulatory documents - 🔍 Automatic text extraction and segmentation - 🧾 Metadata extraction and storage ### 2. Vectorization & Embedding Module - 🧠 Uses **Alibaba Cloud Bailian Embedding API** for text vectorization - 🗂 Builds **vector indexes** for regulations - 🔎 Enables **semantic similarity search** ### 3. Knowledge Graph Construction - ⚖️ Extracts legal entities *(articles, violations, penalties, etc.)* - 🧩 Identifies inter-entity relationships - 🗃 Outputs a **JSON-formatted knowledge graph** ### 4. Semantic Retrieval & Q&A (RAG) - 📚 Regulation retrieval based on **vector similarity** - 🕸 Enhances context with **knowledge graphs** - 💬 Generates professional answers via **Qwen-Turbo model** ### 5. Compliance Determination Workflow - 🧮 Multi-factor logical analysis for business compliance - 📊 Risk-level evaluation - ⚠️ Violation identification & recommendation generation ### 6. Front-End Interactive Interface - 🗂 Document upload & management - 🤖 Real-time Q&A interaction - 📑 Compliance analysis report - 🔗 Knowledge-graph query - 📈 System statistics dashboard --- ## 🏗 Technical Architecture ### Backend Stack | Component | Purpose | |------------|----------| | **FastAPI** | Web framework | | **Python** | Core development language | | **Alibaba Cloud Bailian** | AI model service | | **scikit-learn** | Vector similarity computation | | **PyPDF2** | PDF parsing | | **BeautifulSoup4** | HTML parsing | ### Frontend Stack | Component | Purpose | |------------|----------| | **HTML5** | Page structure | | **CSS3** | Style design | | **JavaScript** | Interaction logic | | **Responsive Design** | Multi-device adaptation | ### Data Storage - 🗂 **JSON files** – document / vector / graph data - 💾 **Local file system** – for uploaded files --- ## Environment Configuration ### 1. Basic Environment ```bash Python 3.8+ ``` ### 2. Install Dependencies ```bash pip install -r requirements.txt ``` ### 3. Environment Variable Configuration Create a .env file and configure it as follows: ```env ALIBABA_API_KEY="your api key" QWEN_MODEL=qwen-turbo EMBEDDING_MODEL=text-embedding-v1 DATA_DIR=./data UPLOAD_DIR=./uploads ``` ## Quick Start ### Method 1: Use the Launch Script ```bash python run_system.py ``` Select “4. Full Test” to perform a complete system test. ### Method 2: Manual Start # Start the service uvicorn main:app --host 0.0.0.0 --port 8000 # Access the system http://localhost:8000 ``` ## API Documentation After the system starts, visit http://localhost:8000/docs to view the complete API documentation. ### Core API Endpoints • POST /api/upload-document - Upload regulatory document • GET /api/documents - Retrieve document list • POST /api/build-knowledge-graph - Build knowledge graph • POST /api/ask - Regulatory Q&A • POST /api/compliance-analysis - Compliance analysis • GET /api/search-regulations - Search regulations • GET /api/knowledge-graph/query - Query knowledge graph • GET /api/statistics - System statistics ## User Guide ### 1. Document Upload 1. Go to the "Document Upload" tab 2. Select a regulatory file in **PDF** or **HTML** format 3. Click **Upload** — the system will automatically process the document ### 2. Regulatory Q&A 1. Go to the "Regulatory Q&A" tab 2. Enter a regulation-related quest
Excerpt of 6,736 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:90ff129fbc85eeaf, topic:rag, topic:knowledge-graph, desc:knowledge graph