SShortSingh.
Back to feed

Pakistani CS Student Builds RAG-Powered AI Tool to Make Law Accessible to All

0
·1 views

A computer science student at Sukkur IBA University in interior Sindh has developed HAQ, an AI-powered legal assistant aimed at making Pakistani law accessible to citizens who cannot afford lawyers. The tool uses Retrieval-Augmented Generation (RAG), meaning it only provides legal information backed by retrieved passages from actual Pakistani legislation, with direct source links, to avoid the hallucination problem common in standard AI models. Pakistan's 220 million citizens are technically protected by hundreds of laws, but high lawyer fees, understaffed legal aid, and legislation written in English create a steep access barrier for most people. Building the system required collecting and processing over 100 Acts from scattered, inconsistently digitized government portals across federal and provincial sources. The project's name, HAQ, is an Arabic and Urdu word meaning 'right' — reflecting the developer's goal of helping citizens understand what is legally theirs.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Tutorial: Train Skin Cancer AI on Hospital Data Without Accessing Raw Images

A developer guide published on DEV Community explains how to build a privacy-preserving skin cancer classifier using Federated Learning, PySyft, and PyTorch. The approach addresses a core challenge in medical AI: hospitals cannot share patient data due to regulations like HIPAA and GDPR. Federated Learning solves this by sending the model to the data rather than centralizing the data itself, meaning only encrypted model gradients — not raw images — leave each hospital. The tutorial simulates two hospital nodes and incorporates Differential Privacy via Opacus to guard against membership inference attacks. The method is demonstrated using the HAM10000 skin lesion dataset as a reference use case.

0
ProgrammingDEV Community ·

Korea, Japan, Qualcomm Lead $610B Global AI Hardware Investment Surge

More than $610 billion in AI hardware capital commitments were announced globally within a single week, led by South Korea's $550 billion pledge to build four new memory fabrication plants. Japan contributed $6 billion to support SoftBank-led AI model development, while Kawasaki Heavy Industries issued a $1 billion bond for AI infrastructure. Qualcomm unveiled a new AI accelerator that bypasses high-bandwidth memory, offering a potential alternative to NVIDIA's dominant CUDA-HBM-NVLink stack. Analysts note that the AI hardware bottleneck has progressively shifted from GPU scarcity to memory and now power constraints. If Qualcomm's approach succeeds, it could significantly reduce inference costs and make AI application development more economically viable.

0
ProgrammingHacker News ·

MSI Center Software Found to Contain Critical SYSTEM Privilege Escalation Flaw

A security vulnerability has been discovered in MSI Center, a utility software developed by hardware manufacturer MSI. The flaw reportedly allows an attacker to gain SYSTEM-level privileges on a Windows machine within seconds. SYSTEM privileges represent the highest level of access on a Windows system, enabling full control over the affected device. The details of the exploit were published by a security researcher at mrbruh.com. Users of MSI Center may be at risk until a patch is issued by MSI.

0
ProgrammingDEV Community ·

Solon 4.0 ReActAgent Enables AI Agents to Query Databases and Call APIs

Solon 4.0 introduces ReActAgent, a framework for building AI agents capable of reasoning and taking real-world actions beyond simple text generation. The ReActAgent implements a cognitive loop — Thought, Action, Observation — allowing agents to call external tools, query databases, and fetch live data iteratively. Developers can integrate the framework by adding the solon-ai-agent module and configuring a ChatModel powered by supported large language models such as Qwen3-32B or Llama 3.2. The framework supports both API-based and YAML-based configuration, making it adaptable for various deployment environments. According to the tutorial, ReActAgent has already seen production use in automated customer support, data analysis, and multi-step workflow automation.