Discover and explore top open-source AI tools and projects—updated daily.
RamseygithubAI platform for legal compliance analysis
Top 87.7% on SourcePulse
AI Regulatory Compliance Assistance System
This project offers an AI-powered legal compliance assistant designed for alcohol beverage pricing laws, specifically targeting New York State regulations. It automates the extraction, analysis, and explanation of complex legal frameworks by integrating Retrieval-Augmented Generation (RAG) with knowledge-graph reasoning, aiming to simplify regulatory interpretation for businesses and legal professionals.
How It Works
The system ingests PDF or HTML regulatory documents, performing text extraction and metadata storage. It utilizes Alibaba Cloud Bailian's Embedding API for text vectorization and builds indexes for semantic similarity search. A knowledge graph is constructed by extracting legal entities (articles, violations, penalties) and their inter-relationships, outputting a JSON representation. The RAG service retrieves regulations based on vector similarity, enhances context with the knowledge graph, and generates professional answers using the Qwen-Turbo model. A compliance determination workflow analyzes business scenarios against regulations, evaluating risk and identifying potential violations.
Quick Start & Requirements
pip install -r requirements.txt.env file), stable internet connection for cloud services.python run_system.py (select "4. Full Test") or start the service with uvicorn main:app --host 0.0.0.0 --port 8000.http://localhost:8000/docs after startup.Highlighted Details
Maintenance & Community
No specific details regarding maintainers, community channels (e.g., Discord, Slack), or active sponsorships are provided in the README.
Licensing & Compatibility
The README does not specify a software license. This absence requires clarification for adoption decisions, especially concerning commercial use or integration with proprietary systems.
Limitations & Caveats
Current document support is limited to PDF and HTML formats. The system relies on external Alibaba Cloud services, necessitating a stable internet connection and valid API keys with sufficient quotas. Future enhancements indicate a lack of built-in support for additional document types (Word, TXT), user permission management, database persistence, and distributed deployment.
2 months ago
Inactive