<?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: Vikram Rautela</title>
    <description>The latest articles on DEV Community by Vikram Rautela (@vikram_rautela_vr).</description>
    <link>https://dev.to/vikram_rautela_vr</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%2F4153788%2Fe9dce91f-c8b6-4279-9d97-fd5d84506c80.png</url>
      <title>DEV Community: Vikram Rautela</title>
      <link>https://dev.to/vikram_rautela_vr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vikram_rautela_vr"/>
    <language>en</language>
    <item>
      <title>Interview Buddy: An Offline AI Mock-Interview Partner I Built for My Friend</title>
      <dc:creator>Vikram Rautela</dc:creator>
      <pubDate>Mon, 05 Oct 2026 05:56:58 +0000</pubDate>
      <link>https://dev.to/vikram_rautela_vr/interview-buddy-an-offline-ai-mock-interview-partner-i-built-for-my-friend-8el</link>
      <guid>https://dev.to/vikram_rautela_vr/interview-buddy-an-offline-ai-mock-interview-partner-i-built-for-my-friend-8el</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;My friend Jagdish is preparing for Python developer interviews. They know the material, but they freeze when they have to &lt;em&gt;say&lt;/em&gt; answers out loud, and there's nobody around to practise with at 11 PM.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Interview Buddy&lt;/strong&gt;: a small terminal app that acts like a patient interviewer.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You tell it the role and your level (fresher / junior / senior).&lt;/li&gt;
&lt;li&gt;It asks one question at a time, a mix of technical, problem-solving and behavioural questions.&lt;/li&gt;
&lt;li&gt;After each answer, it gives a &lt;strong&gt;score out of 10&lt;/strong&gt;, what was good, what to improve, and a short &lt;strong&gt;better answer&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;At the end it writes a &lt;strong&gt;final report&lt;/strong&gt; with strengths and what to practise next, and saves the whole session to a Markdown file so you can review it later.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It runs &lt;strong&gt;completely on a laptop&lt;/strong&gt; with a local open-weight model. No account, no API key, no internet.&lt;/p&gt;

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

&lt;p&gt;image uploded with post&lt;/p&gt;

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


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/VIKRAM-009" rel="noopener noreferrer"&gt;
        VIKRAM-009
      &lt;/a&gt; / &lt;a href="https://github.com/VIKRAM-009/interview-buddy" rel="noopener noreferrer"&gt;
        interview-buddy
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Main file: &lt;a href="https://github.com/VIKRAM-009/interview-buddy/blob/main/interview_buddy.py" rel="noopener noreferrer"&gt;interview_buddy.py&lt;/a&gt;&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Model:&lt;/strong&gt; Meta's open-weight &lt;strong&gt;Llama 3.2 (3B)&lt;/strong&gt;, running locally through &lt;strong&gt;Ollama&lt;/strong&gt;. It's small enough (about 2 GB) to run on an ordinary laptop CPU.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two roles, two prompts:&lt;/strong&gt; the &lt;em&gt;interviewer&lt;/em&gt; keeps the full conversation history so it doesn't repeat questions, while the &lt;em&gt;coach&lt;/em&gt; only sees one question and answer at a time and gives feedback in a fixed format (Score / Good / Improve / Better answer). Splitting them kept the feedback focused.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero dependencies:&lt;/strong&gt; just Python's &lt;code&gt;urllib&lt;/code&gt; and &lt;code&gt;json&lt;/code&gt;, so my friend doesn't have to install packages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swappable model:&lt;/strong&gt; &lt;code&gt;--model qwen2.5&lt;/code&gt; or any other Ollama model works with one flag.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What I learned:&lt;/strong&gt; a small 3B model is fine at asking questions, but it sometimes gives confident wrong "better answers" (in one test it suggested &lt;code&gt;pop(0)&lt;/code&gt; for a stack, which is wrong because a stack should pop from the end). Because the model is open and local, I can switch to a bigger model like Qwen 2.5 7B for better feedback without changing any code. I also added a rule so skipped answers score 0 instead of getting free points.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxtfz184sqlbp6tr58dn1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxtfz184sqlbp6tr58dn1.png" alt=" " width="799" height="589"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It works offline.&lt;/strong&gt; My friend can practise anywhere, even with bad internet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It costs nothing to run.&lt;/strong&gt; No subscription and no per-message API bill, so they can practise 100 questions a day if they want.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Their answers stay private.&lt;/strong&gt; Practice answers include nervous, half-wrong attempts. With a local model, none of that leaves their laptop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I control the model.&lt;/strong&gt; If one model's feedback isn't good enough, I swap it. With a closed API I'd be stuck with whatever the provider decides.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;I built this with help from an AI coding agent (Claude Code), which wrote the first version of the script and tested it against my local Ollama models. I then tried it myself and tuned the prompts.&lt;/p&gt;

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