<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tabiq </title>
    <description>The latest articles on DEV Community by Tabiq  (@tabiqzargar).</description>
    <link>https://dev.to/tabiqzargar</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4204315%2F7bef3ba5-da93-4294-9413-22448a5dc52c.jpg</url>
      <title>DEV Community: Tabiq </title>
      <link>https://dev.to/tabiqzargar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tabiqzargar"/>
    <language>en</language>
    <item>
      <title>HAQ</title>
      <dc:creator>Tabiq </dc:creator>
      <pubDate>Sat, 31 Oct 2026 07:34:42 +0000</pubDate>
      <link>https://dev.to/tabiqzargar/haq-589a</link>
      <guid>https://dev.to/tabiqzargar/haq-589a</guid>
      <description>&lt;h1&gt;
  
  
  Haq (حق) — Making Legal Information Accessible with Local AI
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week4-2026-10-26"&gt;Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;Haq Guide (حق گائیڈ)&lt;/strong&gt;, a privacy-focused legal information assistant designed to help people understand their rights, legal notices, agreements, and available options in plain language.&lt;/p&gt;

&lt;p&gt;The idea behind Haq is simple: legal information shouldn't be difficult to access or understand.&lt;/p&gt;

&lt;p&gt;Users can describe their situation or upload a legal document, such as a notice or agreement. Haq helps break down the information, identify important details, explain relevant rights and options, and point users towards official resources and legal aid.&lt;/p&gt;

&lt;p&gt;I interpreted the &lt;em&gt;Ghost in the Machine&lt;/em&gt; theme through the idea of AI working quietly in the background to make something complicated more accessible, without requiring users to send their personal documents to an external AI service.&lt;/p&gt;

&lt;p&gt;The project supports English and Hindi, with Urdu as an additional language direction.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;The application currently runs locally.&lt;/p&gt;

&lt;p&gt;A demo video or walkthrough can be added here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://dev.toYOUR_GITHUB_REPOSITORY_URL"&gt;Haq Guide – GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project is released under the MIT License.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;Haq is built using:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python&lt;/strong&gt; – Core application logic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gradio&lt;/strong&gt; – Web interface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;scikit-learn / TF-IDF&lt;/strong&gt; – Retrieval of relevant legal information.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ollama&lt;/strong&gt; – Local model inference.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemma 4 (gemma4:e2b)&lt;/strong&gt; – Local AI integration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PyPDF / python-docx&lt;/strong&gt; – Document processing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;pytest&lt;/strong&gt; – Automated testing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of relying entirely on a hosted AI API, Haq uses a local-first architecture.&lt;/p&gt;

&lt;p&gt;It retrieves relevant information from a curated collection of official legal resources and uses those sources to ground its guidance. The local AI integration can generate explanations based on retrieved material, with source citations.&lt;/p&gt;

&lt;p&gt;The application also includes safeguards against unsupported legal conclusions and clearly communicates that its output is informational, not a substitute for professional legal advice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Open innovation made it possible to experiment with AI without depending on expensive hosted APIs or proprietary infrastructure.&lt;/p&gt;

&lt;p&gt;Using open-weight models and local inference gives developers more control over how AI is deployed, what information is processed, and how applications can be adapted.&lt;/p&gt;

&lt;p&gt;For a project dealing with sensitive legal documents, this matters particularly.&lt;/p&gt;

&lt;p&gt;It also means that other developers can inspect the implementation, contribute improvements, expand the legal resource collection, and adapt the project for their own communities.&lt;/p&gt;

&lt;p&gt;I wanted Haq to be something people could build upon rather than another closed application.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;Legal information can be intimidating, especially when someone doesn't know where to start or what a document actually means.&lt;/p&gt;

&lt;p&gt;I wanted to build something that could make that first step easier.&lt;/p&gt;

&lt;p&gt;Haq is still an evolving project, but the goal is to make understanding your rights a little less intimidating and a little more accessible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Know your rights and your options. Privately, in plain language.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
