<?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: Roshni</title>
    <description>The latest articles on DEV Community by Roshni (@rsnkxz).</description>
    <link>https://dev.to/rsnkxz</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%2F3794822%2Ff6858e5a-9e58-4ac8-8140-b7b25f8a7500.jpg</url>
      <title>DEV Community: Roshni</title>
      <link>https://dev.to/rsnkxz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rsnkxz"/>
    <language>en</language>
    <item>
      <title>Local-First AI Astrologer: Building a Private, Multimodal Vedic AI Agent🔮</title>
      <dc:creator>Roshni</dc:creator>
      <pubDate>Sun, 01 Mar 2026 14:06:03 +0000</pubDate>
      <link>https://dev.to/rsnkxz/local-first-ai-astrologer-building-a-private-multimodal-vedic-ai-agent-gf3</link>
      <guid>https://dev.to/rsnkxz/local-first-ai-astrologer-building-a-private-multimodal-vedic-ai-agent-gf3</guid>
      <description>&lt;h2&gt;
  
  
  Where Ancient Wisdom Meets Local AI
&lt;/h2&gt;

&lt;p&gt;What if your birth chart could be interpreted by an AI that actually reads classical Vedic texts, understands planetary mathematics, analyzes your palm through a camera — and does it all without sending your data to the cloud?&lt;/p&gt;

&lt;p&gt;As part of the Vision Possible Hackathon by VisionAgents AI, I explored a bold idea:&lt;/p&gt;

&lt;p&gt;Can we build a culturally intelligent, multimodal AI agent that runs locally and respects user privacy?&lt;/p&gt;

&lt;p&gt;The result is Local-First AI Astrologer — an open-source voice + vision AI system that delivers personalized Vedic astrology readings completely on-device.&lt;/p&gt;

&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;The Vision Behind the Project&lt;/li&gt;
&lt;li&gt;Core Features&lt;/li&gt;
&lt;li&gt;Birth Chart Intelligence&lt;/li&gt;
&lt;li&gt;Kundli Matching&lt;/li&gt;
&lt;li&gt;AI Palm Reading&lt;/li&gt;
&lt;li&gt;Tech Stack Deep Dive&lt;/li&gt;
&lt;li&gt;How Local RAG Ensures Privacy&lt;/li&gt;
&lt;li&gt;Setup &amp;amp; Installation&lt;/li&gt;
&lt;li&gt;Demo&lt;/li&gt;
&lt;li&gt;Challenges &amp;amp; Learnings&lt;/li&gt;
&lt;li&gt;Why This Matters&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Vision Behind the Project
&lt;/h2&gt;

&lt;p&gt;Most astrology platforms today are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Static&lt;/li&gt;
&lt;li&gt;Generic&lt;/li&gt;
&lt;li&gt;Cloud-dependent&lt;/li&gt;
&lt;li&gt;Non-explainable&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Vedic astrology, however, is deeply structured — Nakshatra systems, Dashas, planetary transits, Guna Milan compatibility — yet few tools provide contextual reasoning grounded in authentic texts.&lt;/p&gt;

&lt;p&gt;I wanted to build something different:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Retrieval-grounded reasoning&lt;/li&gt;
&lt;li&gt;Real-time voice interaction&lt;/li&gt;
&lt;li&gt;Vision-powered palm reading&lt;/li&gt;
&lt;li&gt;Fully local architecture
## Core Features&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Birth Chart Intelligence
&lt;/h2&gt;

&lt;p&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.amazonaws.com%2Fuploads%2Farticles%2Fzkdlbjzshighyefti9to.webp" 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.amazonaws.com%2Fuploads%2Farticles%2Fzkdlbjzshighyefti9to.webp" alt=" " width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The AI generates personalized analysis including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Nakshatra interpretation&lt;/li&gt;
&lt;li&gt;Rashi (Moon sign) explanation&lt;/li&gt;
&lt;li&gt;Mahadasha timeline breakdown&lt;/li&gt;
&lt;li&gt;Planetary transit insights&lt;/li&gt;
&lt;li&gt;Traditional remedies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Powered by:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;ephem for astronomical calculations&lt;br&gt;
Local RAG over curated Vedic astrology PDFs&lt;br&gt;
FAISS vector search&lt;br&gt;
Sentence-transformer embeddings&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Instead of hallucinating, the system retrieves knowledge from classical texts and explains it conversationally.&lt;/p&gt;
&lt;h2&gt;
  
  
  Kundli Matching
&lt;/h2&gt;

&lt;p&gt;The compatibility engine performs:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Guna Milan scoring&lt;br&gt;
Dosha detection&lt;br&gt;
Contextual compatibility reasoning&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It doesn’t just output numbers — it explains the relationship dynamics in natural language.&lt;/p&gt;
&lt;h2&gt;
  
  
  AI Palm Reading (Vision + RAG)
&lt;/h2&gt;

&lt;p&gt;Hold your hand up to the camera and the system:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Detects major lines&lt;/li&gt;
&lt;li&gt;Identifies mounts&lt;/li&gt;
&lt;li&gt;Classifies hand shape&lt;/li&gt;
&lt;li&gt;Maps features to palmistry knowledge base&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No NVIDIA APIs.&lt;br&gt;
No heavy cloud inference.&lt;/p&gt;

&lt;p&gt;Just lightweight vision integration combined with local retrieval.&lt;/p&gt;
&lt;h2&gt;
  
  
  Tech Stack Deep Dive
&lt;/h2&gt;

&lt;p&gt;Built 100% in Python.&lt;/p&gt;

&lt;p&gt;Layer  -  Technology&lt;br&gt;
Embeddings  -  sentence-transformers&lt;br&gt;
Video Stream - GetStream.io&lt;br&gt;
Vector Store  -  FAISS&lt;br&gt;
Knowledge Base  -  Vedic Astrology PDFs + Palmistry for All&lt;br&gt;
Astronomy Engine  -  ephem&lt;br&gt;
Voice  -  Gemini Realtime / Deepgram / ElevenLabs &lt;br&gt;
Vision  -  Camera-based processing&lt;br&gt;
RAG Setup  -  setup_rag.py&lt;br&gt;
Agent Runtime  -  agent.py&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The architecture supports:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Buffered conversational responses&lt;br&gt;
Optional voice/video modes&lt;br&gt;
Fully local document indexing&lt;/p&gt;
&lt;h2&gt;
  
  
  How Local RAG Ensures Privacy
&lt;/h2&gt;

&lt;p&gt;Most AI tools send user inputs to cloud APIs.&lt;/p&gt;

&lt;p&gt;This system:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Uses local embeddings&lt;/li&gt;
&lt;li&gt;Runs FAISS on-device&lt;/li&gt;
&lt;li&gt;Performs scoped document retrieval&lt;/li&gt;
&lt;li&gt;Avoids external knowledge calls&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Birth date&lt;/li&gt;
&lt;li&gt;Time &amp;amp; location&lt;/li&gt;
&lt;li&gt;Compatibility inputs&lt;/li&gt;
&lt;li&gt;Palm images&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Never leave your device.&lt;br&gt;
This is privacy-first multimodal AI.&lt;/p&gt;
&lt;h2&gt;
  
  
  Setup &amp;amp; Installation
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Clone the repository:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/SpandanM110/Local-First-AI-Astrologer
cd Local-First-AI-Astrologer
pip install -r requirements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then:&lt;/p&gt;

&lt;p&gt;Add API keys in .env&lt;br&gt;
Place PDFs inside /knowledge&lt;br&gt;
Run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python setup_rag.py
python agent.py run

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Enable your camera for palm reading&lt;/p&gt;

&lt;p&gt;Text-only mode works as well.&lt;/p&gt;

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

&lt;p&gt;Watch the full demo here: &lt;a href="https://youtu.be/q6vUcWZL22E?si=wQS-jXx4LDpHFer7" rel="noopener noreferrer"&gt;https://youtu.be/q6vUcWZL22E?si=wQS-jXx4LDpHFer7&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The demo showcases:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Live birth chart reasoning&lt;/li&gt;
&lt;li&gt;Voice interaction&lt;/li&gt;
&lt;li&gt;Real-time palm detection&lt;/li&gt;
&lt;li&gt;Smooth buffered responses&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Challenges &amp;amp; Learnings
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Precision in Astronomical Computation: Small calculation differences significantly impact Dasha timelines.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2️. Reducing Hallucinations: RAG dramatically improved factual grounding.&lt;/p&gt;

&lt;p&gt;3️. Lightweight Vision: Building palm reading without expensive GPU dependencies was critical.&lt;/p&gt;

&lt;p&gt;Big takeaway: Multimodal AI becomes powerful when retrieval is precise and scoped.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;This project explores three important AI trends:&lt;/p&gt;

&lt;p&gt;Local-First AI → Privacy by design&lt;br&gt;
Multimodal Agents → Voice + Vision + Retrieval&lt;br&gt;
Cultural Intelligence Systems → Domain-specialized reasoning&lt;/p&gt;

&lt;p&gt;Instead of one giant generalized assistant, the future may belong to hyper-specialized, privacy-preserving agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Local-First AI Astrologer is more than a hackathon project — it’s a prototype for what personal AI agents can become:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Context-aware&lt;br&gt;
Culturally grounded&lt;br&gt;
Multimodal&lt;br&gt;
Privacy-respecting&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you're excited about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AI agents&lt;/li&gt;
&lt;li&gt;RAG architectures&lt;/li&gt;
&lt;li&gt;Local-first systems&lt;/li&gt;
&lt;li&gt;Multimodal experimentation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;⭐Star the repo&lt;br&gt;
🍴Fork it&lt;br&gt;
💬Share feedback&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/SpandanM110/Local-First-AI-Astrologer" rel="noopener noreferrer"&gt;https://github.com/SpandanM110/Local-First-AI-Astrologer&lt;/a&gt;&lt;/p&gt;

</description>
      <category>astro</category>
      <category>vision</category>
      <category>hackathon</category>
      <category>ai</category>
    </item>
    <item>
      <title>Beyond Prompt Engineering: Building Reliable AI Systems with Google Gemini</title>
      <dc:creator>Roshni</dc:creator>
      <pubDate>Thu, 26 Feb 2026 14:32:25 +0000</pubDate>
      <link>https://dev.to/rsnkxz/beyond-prompt-engineering-building-reliable-ai-systems-with-google-gemini-1jfp</link>
      <guid>https://dev.to/rsnkxz/beyond-prompt-engineering-building-reliable-ai-systems-with-google-gemini-1jfp</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/mlh-built-with-google-gemini-02-25-26"&gt;Built with Google Gemini: Writing Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built with Google Gemini
&lt;/h2&gt;

&lt;p&gt;For the Gemini 3 Kaggle competition, I built a structured reasoning and evaluation framework using Google Gemini through Google AI Studio.&lt;/p&gt;

&lt;p&gt;Instead of developing a traditional chatbot or UI-based AI tool, I focused on designing a multi-stage prompting pipeline that improves reasoning reliability, reduces hallucinations, and enforces structured outputs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;In most real-world applications, developers rely on one-shot prompts:&lt;br&gt;
&lt;strong&gt;Prompt → Output → Done.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But in production systems, this approach often leads to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Inconsistent reasoning&lt;/li&gt;
&lt;li&gt;Output variability&lt;/li&gt;
&lt;li&gt;Hallucinations&lt;/li&gt;
&lt;li&gt;Formatting instability&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I wanted to explore whether we could move beyond prompt engineering and treat AI interactions as system design problems.&lt;/p&gt;

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

&lt;p&gt;I built a layered prompting architecture:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Primary reasoning prompt (step-by-step problem solving)&lt;/li&gt;
&lt;li&gt;Self-reflection prompt (model critiques its own logic)&lt;/li&gt;
&lt;li&gt;Correction layer (identify and fix inconsistencies)&lt;/li&gt;
&lt;li&gt;Final structured output (validated, formatted response)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This approach significantly improved logical consistency and reduced unstable outputs.&lt;/p&gt;

&lt;p&gt;Google Gemini played the central role as the reasoning engine. &lt;/p&gt;

&lt;p&gt;I experimented with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Temperature and top-p tuning&lt;/li&gt;
&lt;li&gt;Constraint-based formatting (JSON enforcement)&lt;/li&gt;
&lt;li&gt;Multi-run comparisons&lt;/li&gt;
&lt;li&gt;Edge-case stress testing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Rather than treating Gemini as a black box, I treated it as a component inside a structured evaluation loop.&lt;/p&gt;

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

&lt;p&gt;You can view the Kaggle notebook here:&lt;a href="https://www.kaggle.com/competitions/gemini-3/writeups/new-writeup-1765179354652" rel="noopener noreferrer"&gt;https://www.kaggle.com/competitions/gemini-3/writeups/new-writeup-1765179354652&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The notebook includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Structured prompt experiments&lt;/li&gt;
&lt;li&gt;Parameter sensitivity testing&lt;/li&gt;
&lt;li&gt;Multi-step reasoning comparisons&lt;/li&gt;
&lt;li&gt;Self-reflection correction pipeline&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While this project was not deployed as a UI product, it was built as a reproducible experimental framework for systematic AI evaluation.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;1. Prompt Determinism Is Fragile&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Small changes in temperature, wording, or context length dramatically impact reasoning stability. I learned that reliability comes from system structure, not clever phrasing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. AI Performs Better with Feedback Loops&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When Gemini was asked to review its own reasoning before producing a final answer, it frequently corrected logical flaws. This showed me the power of self-evaluation layers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. System Thinking &amp;gt; Prompt Tricks&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Instead of chasing the “perfect prompt,” I started focusing on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Repeatability&lt;/li&gt;
&lt;li&gt;Controlled variability&lt;/li&gt;
&lt;li&gt;Evaluation metrics&lt;/li&gt;
&lt;li&gt;Constraint enforcement&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This shifted my mindset from experimentation to engineering.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Debugging AI Is a Skill&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I learned how to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compare multi-run outputs programmatically&lt;/li&gt;
&lt;li&gt;Identify hallucination patterns&lt;/li&gt;
&lt;li&gt;Document AI behavior systematically&lt;/li&gt;
&lt;li&gt;Treat LLM responses as testable components&lt;/li&gt;
&lt;li&gt;That discipline changed how I approach generative AI projects&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Google Gemini Feedback
&lt;/h2&gt;

&lt;p&gt;What Worked Well&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Strong multi-step reasoning capability&lt;/li&gt;
&lt;li&gt;Good adherence to formatting with explicit constraints&lt;/li&gt;
&lt;li&gt;Clear logical structure when guided step-by-step&lt;/li&gt;
&lt;li&gt;Stable performance in controlled environments&lt;/li&gt;
&lt;li&gt;Gemini 3 felt significantly more consistent compared to earlier iterations.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where I Faced Friction
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Longer contexts sometimes reduced reasoning sharpness&lt;/li&gt;
&lt;li&gt;Slight temperature changes increased variability&lt;/li&gt;
&lt;li&gt;Creativity settings impacted output stability&lt;/li&gt;
&lt;li&gt;Prompt sensitivity required careful constraint wording&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The biggest takeaway for me:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Model capability matters but system design around the model matters even more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thanks for participating!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>geminireflections</category>
      <category>gemini</category>
      <category>mlh</category>
    </item>
  </channel>
</rss>
