<?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>Forem: a1k7</title>
    <description>The latest articles on Forem by a1k7 (@a1k7).</description>
    <link>https://forem.com/a1k7</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3637827%2F71e29956-d1aa-49cb-a7ab-f017680743f1.jpeg</url>
      <title>Forem: a1k7</title>
      <link>https://forem.com/a1k7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/a1k7"/>
    <language>en</language>
    <item>
      <title>Replacing a ₹5000/hr Lawyer with Llama-3, Groq, and Python</title>
      <dc:creator>a1k7</dc:creator>
      <pubDate>Sat, 20 Dec 2025 11:30:27 +0000</pubDate>
      <link>https://forem.com/a1k7/replacing-a-5000hr-lawyer-with-llama-3-groq-and-python-2gno</link>
      <guid>https://forem.com/a1k7/replacing-a-5000hr-lawyer-with-llama-3-groq-and-python-2gno</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;I am an engineering student in India. Legal advice here is expensive (₹5000/hour) or confusing. Last month, my friend got threatened with a "3-Year Employment Bond" and a demand for ₹2 Lakhs. We couldn't afford a lawyer.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Tech Solution
&lt;/h2&gt;

&lt;p&gt;I spent my weekend building &lt;strong&gt;Pocket Lawyer&lt;/strong&gt;—an AI specifically "grounded" in Indian Statutes (BNS 2023, Contract Act, RBI Guidelines).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stack:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Engine:&lt;/strong&gt; Llama-3-70b (via Groq for speed)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; Streamlit&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logic:&lt;/strong&gt; Custom Prompt Engineering to prevent hallucinations.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I Fixed the "Hallucination" Bug
&lt;/h2&gt;

&lt;p&gt;The hardest part was stopping the AI from citing US laws. I solved this by injecting a strict &lt;code&gt;KNOWLEDGE_BASE&lt;/code&gt; into the system prompt.&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
# Here is the snippet that forces Indian Context
KNOWLEDGE_BASE = """
[JURISDICTION: INDIA ONLY]
1. Employment Bonds: Section 27 Contract Act (Void).
2. Recovery Agents: RBI Guidelines 2022 (No harassment).
"""
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>showdev</category>
      <category>python</category>
      <category>ai</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Fighting the macOS File System: How I built a cross-platform organizer in Python</title>
      <dc:creator>a1k7</dc:creator>
      <pubDate>Sun, 30 Nov 2025 18:48:40 +0000</pubDate>
      <link>https://forem.com/a1k7/fighting-the-macos-file-system-how-i-built-a-cross-platform-organizer-in-python-3icf</link>
      <guid>https://forem.com/a1k7/fighting-the-macos-file-system-how-i-built-a-cross-platform-organizer-in-python-3icf</guid>
      <description>&lt;h3&gt;
  
  
  The Problem
&lt;/h3&gt;

&lt;p&gt;I wanted a tool like Hazel, but free, open-source, and cross-platform. I didn't want my bank statements uploaded to the cloud just to be organized.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Solution: SmartSort AI
&lt;/h3&gt;

&lt;p&gt;I built a local-first Python daemon that watches your folders and uses OCR to sort files intelligently.&lt;/p&gt;

&lt;h3&gt;
  
  
  Challenge 1: The "Two Pythons" Problem
&lt;/h3&gt;

&lt;p&gt;(Explain how Anaconda and System Python fought on your Mac and how you fixed it).&lt;/p&gt;

&lt;h3&gt;
  
  
  Challenge 2: Windows vs Mac Builds
&lt;/h3&gt;

&lt;p&gt;(Show your GitHub Actions YAML file).&lt;/p&gt;

&lt;h3&gt;
  
  
  The Result
&lt;/h3&gt;

&lt;p&gt;It's fully open source.&lt;br&gt;
Repo: [LINK TO YOUR GITHUB]&lt;br&gt;
Website: [LINK TO YOUR WEBSITE]&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>mac</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
