<?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: Tanvi P</title>
    <description>The latest articles on DEV Community by Tanvi P (@tanvi_penu).</description>
    <link>https://dev.to/tanvi_penu</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%2F3900671%2F273ec680-2802-4c10-9e4f-e43a206106c9.png</url>
      <title>DEV Community: Tanvi P</title>
      <link>https://dev.to/tanvi_penu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tanvi_penu"/>
    <language>en</language>
    <item>
      <title>VaultMind: Building an AI That Remembers Why an Organization Made Its Decisions</title>
      <dc:creator>Tanvi P</dc:creator>
      <pubDate>Tue, 29 Sep 2026 17:54:14 +0000</pubDate>
      <link>https://dev.to/tanvi_penu/vaultmind-building-an-ai-that-remembers-why-an-organization-made-its-decisions-3b2</link>
      <guid>https://dev.to/tanvi_penu/vaultmind-building-an-ai-that-remembers-why-an-organization-made-its-decisions-3b2</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;An exploration of persistent organizational memory using Hindsight, MongoDB, and an AI agent.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What happens when the one employee who knows why something works leaves the company?&lt;/p&gt;

&lt;p&gt;Imagine a senior backend engineer leaves an organization after four years.&lt;/p&gt;

&lt;p&gt;Six months later, a new engineer is asked to modify a critical service.&lt;/p&gt;

&lt;p&gt;They find the documentation.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The service uses Redis.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But the documentation doesn't answer the questions that actually matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Why was Redis chosen?&lt;/li&gt;
&lt;li&gt;What alternatives were considered?&lt;/li&gt;
&lt;li&gt;What happened when they were tested?&lt;/li&gt;
&lt;li&gt;Was there an incident that influenced the decision?&lt;/li&gt;
&lt;li&gt;Are there workarounds the new engineer should know?&lt;/li&gt;
&lt;li&gt;What mistakes should they avoid?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The organization hasn't necessarily lost the information.&lt;/p&gt;

&lt;p&gt;It has lost the &lt;strong&gt;context&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That is the problem we explored with &lt;strong&gt;VaultMind&lt;/strong&gt;, an AI-powered Institutional Memory Agent built using &lt;strong&gt;Hindsight&lt;/strong&gt; as its persistent memory layer.&lt;/p&gt;

&lt;p&gt;The goal wasn't to build another chatbot that searches company documents.&lt;/p&gt;

&lt;p&gt;It was to explore whether an AI system could preserve organizational experiences and recover the reasoning behind decisions long after the people who made them were gone.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem: Organizations Don't Just Lose People, They Lose Context
&lt;/h2&gt;

&lt;p&gt;Organizations generate enormous amounts of knowledge every day.&lt;/p&gt;

&lt;p&gt;Architecture decisions are discussed in meetings. Incidents are documented in tickets. Customer requirements appear in conversations. Workarounds are discovered during production failures.&lt;/p&gt;

&lt;p&gt;And a lot of expertise never gets formally documented at all.&lt;/p&gt;

&lt;p&gt;Eventually, organizational knowledge becomes scattered across documents, incident reports, architecture decisions, conversations, handover notes, and individual employees.&lt;/p&gt;

&lt;p&gt;The result is a deceptively difficult problem:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The answer exists somewhere, but finding it — and understanding why it is true — is difficult.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Consider a simple example.&lt;/p&gt;

&lt;p&gt;A document says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The payment service retries failed requests three times.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's useful.&lt;/p&gt;

&lt;p&gt;But suppose an engineer is about to change the retry logic. What they really need to know might be:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The retry limit was reduced from five to three after repeated retries caused duplicate payment attempts during a provider outage. The change was introduced after incident INC-201 and was kept because the payment provider's idempotency guarantees were inconsistent.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now the engineer has more than a configuration value.&lt;/p&gt;

&lt;p&gt;They have the &lt;strong&gt;reasoning, history, and constraints behind it&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That is the distinction we wanted VaultMind to explore.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Standard RAG Isn't the Whole Answer
&lt;/h2&gt;

&lt;p&gt;Retrieval-Augmented Generation is extremely useful when the answer lives in a document.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Where is the authentication configuration documented?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A conventional RAG system can retrieve the relevant document and provide the answer.&lt;/p&gt;

&lt;p&gt;But institutional memory creates a different class of questions whose answers may not exist in a single document.&lt;/p&gt;

&lt;p&gt;It might require connecting an architecture decision with an incident, an engineering discussion, a workaround, and a later change.&lt;/p&gt;

&lt;p&gt;The challenge therefore isn't simply retrieving text.&lt;/p&gt;

&lt;p&gt;It's &lt;strong&gt;recovering organizational experience from information accumulated over time.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That is where persistent memory becomes useful.&lt;/p&gt;

&lt;p&gt;VaultMind uses &lt;strong&gt;Hindsight&lt;/strong&gt; as the persistent memory layer so important organizational experiences can be retained and recalled when they become relevant to a future question.&lt;/p&gt;




&lt;h2&gt;
  
  
  Introducing VaultMind
&lt;/h2&gt;

&lt;p&gt;VaultMind is built around a simple idea:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;An organization should be able to remember what it has learned.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Instead of treating every question as an isolated interaction, VaultMind gives organizational knowledge a persistent memory layer.&lt;/p&gt;

&lt;p&gt;The intended lifecycle is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Organizational Experience
          ↓
        Retain
          ↓
       Hindsight
          ↓
    Future Question
          ↓
        Recall
          ↓
Historical Context + Evidence
          ↓
       AI Response
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The memories can represent different kinds of organizational knowledge:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Decisions&lt;/li&gt;
&lt;li&gt;Incidents&lt;/li&gt;
&lt;li&gt;Workarounds&lt;/li&gt;
&lt;li&gt;Lessons learned&lt;/li&gt;
&lt;li&gt;Risks&lt;/li&gt;
&lt;li&gt;Customer requirements&lt;/li&gt;
&lt;li&gt;Constraints&lt;/li&gt;
&lt;li&gt;Processes&lt;/li&gt;
&lt;li&gt;System knowledge&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The important part is that these aren't treated as interchangeable pieces of text.&lt;/p&gt;

&lt;p&gt;A system configuration, an incident, and a decision all carry different meanings.&lt;/p&gt;




&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;VaultMind uses a full-stack architecture consisting of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;React + Vite&lt;/strong&gt; — frontend&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Django REST Framework&lt;/strong&gt; — backend API&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MongoDB&lt;/strong&gt; — application data and metadata&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hindsight&lt;/strong&gt; — persistent organizational memory&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM&lt;/strong&gt; — reasoning and response generation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JWT&lt;/strong&gt; — authentication&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RBAC&lt;/strong&gt; — authorization&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  High-level architecture
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;[ADD ARCHITECTURE DIAGRAM HERE]&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;MongoDB handles application-level information such as users, roles, documents, metadata, and audit records.&lt;/p&gt;

&lt;p&gt;Hindsight serves a different purpose: persistent organizational memory.&lt;/p&gt;

&lt;p&gt;Keeping these responsibilities separate means the application's operational data and the agent's memory don't have to be treated as the same thing.&lt;/p&gt;




&lt;h2&gt;
  
  
  Hindsight: Giving the Agent Persistent Memory
&lt;/h2&gt;

&lt;p&gt;Hindsight is at the center of VaultMind's memory layer.&lt;/p&gt;

&lt;p&gt;There are two important parts to the interaction: &lt;strong&gt;retaining&lt;/strong&gt; organizational experience and &lt;strong&gt;recalling&lt;/strong&gt; it later.&lt;/p&gt;

&lt;p&gt;When meaningful information enters the system, it can be retained as persistent memory.&lt;/p&gt;

&lt;p&gt;For example, an incident might establish:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The payment provider occasionally returned duplicate success responses during timeouts, so the retry policy was changed to avoid repeated payment attempts.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Later, an engineer might ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Why is the payment service so conservative about retries?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Instead of treating the question as completely new, VaultMind can recall the relevant organizational experience before generating the answer.&lt;/p&gt;

&lt;p&gt;The important distinction is that the LLM isn't expected to remember the organization on its own.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Hindsight provides the historical context; the LLM reasons over that context.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;[ADD HINDSIGHT RETAIN/RECALL SCREENSHOT HERE]&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The "Why" Layer
&lt;/h2&gt;

&lt;p&gt;The most interesting capability we explored with VaultMind is what we call the &lt;strong&gt;Why Engine&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Most knowledge systems are designed around questions like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“What is this?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Institutional memory often needs to answer:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;“Why is this the way it is?”&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Consider a customer requirement.&lt;/p&gt;

&lt;p&gt;A customer may have a seemingly unusual requirement that affects the way a system handles data.&lt;/p&gt;

&lt;p&gt;Months later, a developer sees the implementation and thinks:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Why don't we just simplify this?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A normal documentation search might find the implementation.&lt;/p&gt;

&lt;p&gt;Institutional memory should ideally surface the history:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The customer required this behavior because of a contractual reporting requirement. A previous implementation removed the extra processing and caused a reporting discrepancy. The current behavior was introduced after that incident.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Suddenly, the “weird” implementation makes sense.&lt;/p&gt;

&lt;p&gt;That's the value of the Why Engine.&lt;/p&gt;

&lt;p&gt;It isn't about giving the model more general technical knowledge.&lt;/p&gt;

&lt;p&gt;It's about helping it recover &lt;strong&gt;organization-specific reasoning&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Evidence Matters More Than Confidence
&lt;/h2&gt;

&lt;p&gt;This is one of the most important design principles behind VaultMind.&lt;/p&gt;

&lt;p&gt;A system that remembers organizational history should not invent that history.&lt;/p&gt;

&lt;p&gt;If the available memories only show that the architecture changed, but don't explain why, the system should not manufacture a plausible explanation.&lt;/p&gt;

&lt;p&gt;This is particularly important for institutional memory because a confident but incorrect historical explanation can become a new source of misinformation.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Memory should provide evidence, not just confidence.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Security: Memory Needs Boundaries
&lt;/h2&gt;

&lt;p&gt;Persistent organizational memory can contain sensitive information.&lt;/p&gt;

&lt;p&gt;Consider an employee asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Show me the contract value for Customer X.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If that information is restricted, it shouldn't be retrieved for the LLM and filtered out afterward.&lt;/p&gt;

&lt;p&gt;VaultMind places authorization around the memory retrieval process.&lt;/p&gt;

&lt;p&gt;The intended flow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Question
   ↓
Authentication
   ↓
Authorization
   ↓
Allowed Memories
   ↓
Hindsight Recall
   ↓
LLM
   ↓
Response
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;VaultMind includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JWT authentication&lt;/li&gt;
&lt;li&gt;Role-Based Access Control&lt;/li&gt;
&lt;li&gt;Multiple access levels&lt;/li&gt;
&lt;li&gt;PII and secret detection&lt;/li&gt;
&lt;li&gt;Audit logging&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;[ADD SECURITY/AUDIT SCREENSHOT HERE]&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This matters because persistent memory changes the security problem.&lt;/p&gt;

&lt;p&gt;A piece of information that is temporarily visible in a conversation is one thing.&lt;/p&gt;

&lt;p&gt;A piece of information that becomes part of an organization's long-term memory is much more consequential.&lt;/p&gt;

&lt;p&gt;That leads to a simple principle:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Not everything an organization knows should become persistent memory.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  When the Memory Itself Becomes the Problem
&lt;/h2&gt;

&lt;p&gt;Once organizational knowledge becomes persistent, new problems appear.&lt;/p&gt;

&lt;h3&gt;
  
  
  Knowledge Concentration
&lt;/h3&gt;

&lt;p&gt;What happens when most of the knowledge about a critical system exists with one employee?&lt;/p&gt;

&lt;p&gt;VaultMind can identify this kind of concentration and surface it as a continuity risk.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Payment Service&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
47 related memories&lt;br&gt;&lt;br&gt;
Most associated with one engineer&lt;br&gt;&lt;br&gt;
Limited secondary knowledge&lt;br&gt;&lt;br&gt;
&lt;strong&gt;High continuity risk&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The goal is to identify knowledge-loss risks &lt;strong&gt;before&lt;/strong&gt; someone leaves.&lt;/p&gt;

&lt;h3&gt;
  
  
  Knowledge Gaps
&lt;/h3&gt;

&lt;p&gt;Sometimes the most useful result is discovering that there isn't enough information.&lt;/p&gt;

&lt;p&gt;VaultMind can surface gaps such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No documented owner&lt;/li&gt;
&lt;li&gt;An incident with no recorded root cause&lt;/li&gt;
&lt;li&gt;An outdated or unverified policy&lt;/li&gt;
&lt;li&gt;No secondary knowledge holder&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In other words, the system can help answer not only:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“What do we know?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;but also:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;“What don't we know?”&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Conflicting Memories
&lt;/h3&gt;

&lt;p&gt;Organizational knowledge can also contradict itself.&lt;/p&gt;

&lt;p&gt;For example, one record might say:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The payment service retries failed requests three times.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;while a later record says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The payment service retries failed requests five times.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Rather than silently choosing one, VaultMind can surface the conflict along with its sources and dates, allowing someone to verify the current state.&lt;/p&gt;

&lt;p&gt;This matters because &lt;strong&gt;old information can still explain why a system works the way it does, even when it is no longer current.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Keeping the Timeline
&lt;/h3&gt;

&lt;p&gt;That leads to another important part of institutional memory: &lt;strong&gt;history matters.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A system might evolve through:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Initial architecture
       ↓
Production issue
       ↓
Workaround
       ↓
Architecture decision
       ↓
New implementation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The current system tells you where the organization ended up.&lt;/p&gt;

&lt;p&gt;The history tells you &lt;strong&gt;why&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;VaultMind therefore shouldn't simply replace old memories with new ones. Older information can still be valuable — as long as it's clear that it is historical rather than current.&lt;/p&gt;




&lt;h2&gt;
  
  
  The NovaPay Demo
&lt;/h2&gt;

&lt;p&gt;To demonstrate VaultMind, we created a fictional company called &lt;strong&gt;NovaPay&lt;/strong&gt; using synthetic organizational data.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Employees&lt;/li&gt;
&lt;li&gt;Architecture decisions&lt;/li&gt;
&lt;li&gt;Incidents&lt;/li&gt;
&lt;li&gt;Workarounds&lt;/li&gt;
&lt;li&gt;Customer requirements&lt;/li&gt;
&lt;li&gt;System knowledge&lt;/li&gt;
&lt;li&gt;Handover information&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The important part is that these aren't isolated examples.&lt;/p&gt;

&lt;p&gt;They are connected.&lt;/p&gt;

&lt;p&gt;For example, an incident might lead to an architecture decision, which affects a system, which is associated with an engineer's knowledge and eventually appears in a handover.&lt;/p&gt;

&lt;p&gt;That gives the agent something more interesting to work with than a collection of unrelated documents.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;[ADD NOVAPAY / UI SCREENSHOT HERE]&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  What Can VaultMind Actually Answer?
&lt;/h2&gt;

&lt;p&gt;Instead of demonstrating the same Redis/Kafka scenario repeatedly, we designed the demo around different kinds of institutional questions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Why does the payment service only retry three times?”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The system can connect the current behavior to the incident and reasoning that led to the policy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“What should I know before changing the customer reporting pipeline?”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The system can combine customer requirements, previous incidents, decisions, and known workarounds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Who has historically worked on this system?”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The answer can be based on the relationship between people and organizational memories rather than simply an employee directory.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Is there anything incomplete or conflicting in this system's documentation?”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The system can surface knowledge gaps, conflicting information, or stale memories.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Why was this architecture decision made?”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is where the Why Engine becomes particularly useful: the goal is to retrieve the historical evidence behind the decision rather than provide a generic technical explanation.&lt;/p&gt;

&lt;p&gt;The common thread is that these questions aren't asking only for facts.&lt;/p&gt;

&lt;p&gt;They're asking for &lt;strong&gt;organizational context&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Testing the System
&lt;/h2&gt;

&lt;p&gt;Memory systems have failure cases that ordinary question-answering systems don't necessarily have to deal with.&lt;/p&gt;

&lt;p&gt;VaultMind includes automated tests covering areas such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Authentication&lt;/li&gt;
&lt;li&gt;RBAC&lt;/li&gt;
&lt;li&gt;Hindsight integration&lt;/li&gt;
&lt;li&gt;PII detection&lt;/li&gt;
&lt;li&gt;Memory extraction&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We also considered cases such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No relevant memory exists&lt;/li&gt;
&lt;li&gt;Two memories conflict&lt;/li&gt;
&lt;li&gt;A user isn't authorized to access a memory&lt;/li&gt;
&lt;li&gt;A memory contains sensitive information&lt;/li&gt;
&lt;li&gt;Historical information is outdated&lt;/li&gt;
&lt;li&gt;There isn't enough evidence to answer a question&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For an institutional memory system, these aren't edge cases to ignore.&lt;/p&gt;

&lt;p&gt;They're fundamental to whether the system can be trusted.&lt;/p&gt;




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

&lt;p&gt;The biggest lesson from building VaultMind was that &lt;strong&gt;memory is not just storage&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Once information becomes persistent, entirely new problems appear.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Historical information can be valuable even when it isn't current.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An old decision may no longer describe the current system, but it can explain why the current system exists.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Missing information is itself information.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A system that can identify knowledge gaps is more useful than one that confidently fills every gap.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Knowledge concentration creates organizational risk.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If critical knowledge exists almost entirely with one person, the organization has a continuity problem even if all of its systems are currently working.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security has to happen before generation.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If sensitive information reaches the LLM first, filtering the final response is already too late.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI memory needs humility.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For institutional knowledge, an honest:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“There isn't enough evidence to determine that.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;can be much more valuable than a convincing guess.&lt;/p&gt;




&lt;h2&gt;
  
  
  Limitations
&lt;/h2&gt;

&lt;p&gt;VaultMind is currently a prototype.&lt;/p&gt;

&lt;p&gt;The NovaPay organization and its employee information are synthetic.&lt;/p&gt;

&lt;p&gt;The quality of the system depends heavily on the quality of the memories it receives.&lt;/p&gt;

&lt;p&gt;PII and secret detection cannot guarantee that every possible sensitive value will be identified.&lt;/p&gt;

&lt;p&gt;Historical memories can conflict, and automated systems cannot always determine which information represents the current truth.&lt;/p&gt;

&lt;p&gt;Important organizational decisions should therefore still involve human verification.&lt;/p&gt;

&lt;p&gt;VaultMind is intended as an &lt;strong&gt;institutional-memory assistant&lt;/strong&gt;, not an autonomous authority on organizational truth.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;There are several directions we'd like to explore further.&lt;/p&gt;

&lt;p&gt;The first is connecting VaultMind directly to the systems where organizational knowledge is created:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Slack&lt;/li&gt;
&lt;li&gt;Jira&lt;/li&gt;
&lt;li&gt;Confluence&lt;/li&gt;
&lt;li&gt;GitHub&lt;/li&gt;
&lt;li&gt;Incident-management systems&lt;/li&gt;
&lt;li&gt;Internal documentation platforms&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Another direction is &lt;strong&gt;memory verification&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of simply identifying stale or conflicting memories, the system could route them to the appropriate team or owner for verification.&lt;/p&gt;

&lt;p&gt;There is also an opportunity to build a richer organizational knowledge graph connecting:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;people → systems → incidents → decisions → customers → outcomes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The long-term idea is to move toward organizational memory that continuously evolves instead of requiring someone to manually maintain another knowledge base.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;The idea behind VaultMind started with a simple observation:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;When an employee leaves, an organization doesn't just lose their labor. It can lose years of context.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Traditional documentation can tell you what a system does.&lt;/p&gt;

&lt;p&gt;Institutional memory should also help explain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Why it does it that way&lt;/li&gt;
&lt;li&gt;What was tried before&lt;/li&gt;
&lt;li&gt;What failed&lt;/li&gt;
&lt;li&gt;What decisions shaped it&lt;/li&gt;
&lt;li&gt;What constraints still matter&lt;/li&gt;
&lt;li&gt;What mistakes should be avoided&lt;/li&gt;
&lt;li&gt;What information may be outdated&lt;/li&gt;
&lt;li&gt;What the organization still doesn't know&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's what we wanted VaultMind to explore.&lt;/p&gt;

&lt;p&gt;The goal isn't to build an AI that knows everything.&lt;/p&gt;

&lt;p&gt;It's to build an AI that &lt;strong&gt;remembers what an organization has learned.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Because sometimes the most valuable piece of information isn't the answer.&lt;/p&gt;

&lt;p&gt;It's &lt;strong&gt;why the organization arrived at that answer in the first place.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Project:&lt;/strong&gt; VaultMind&lt;br&gt;&lt;br&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/samyukthaareddy/vaultmind" rel="noopener noreferrer"&gt;https://github.com/samyukthaareddy/vaultmind&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tech:&lt;/strong&gt; React · Vite · Django REST Framework · MongoDB · Hindsight · LLM · JWT · RBAC&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>machinelearning</category>
      <category>mongodb</category>
    </item>
    <item>
      <title>Building AceExam: An AI-Powered Accessible Examination Platform with MongoDB</title>
      <dc:creator>Tanvi P</dc:creator>
      <pubDate>Mon, 27 Apr 2026 15:17:09 +0000</pubDate>
      <link>https://dev.to/tanvi_penu/building-aceexam-an-ai-powered-accessible-examination-platform-with-mongodb-5dha</link>
      <guid>https://dev.to/tanvi_penu/building-aceexam-an-ai-powered-accessible-examination-platform-with-mongodb-5dha</guid>
      <description>&lt;p&gt;By &lt;a href="https://dev.to/tanvi_penu"&gt;Tanvi&lt;/a&gt;, &lt;a href="https://dev.to/ranadeep_ponugoti_02cd7cb"&gt;Ranadeep&lt;/a&gt;, &lt;a href="https://dev.to/nachiketh"&gt;Nachiketh&lt;/a&gt;, Jeathraditya&lt;/p&gt;

&lt;p&gt;Developed under the guidance of Professor &lt;a href="https://dev.to/chanda_rajkumar"&gt;Chanda Raj Kumar&lt;/a&gt;, &lt;br&gt;
and we are thankful for his valuable support throughout this project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/NachtFaust2150/AceExam" rel="noopener noreferrer"&gt;Check out AceExam here&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Online exams aren't built for everyone.
&lt;/h2&gt;

&lt;p&gt;Most digital examination platforms assume every student sees the screen clearly, types comfortably, and processes text without difficulty. The reality for students with visual impairments, dyslexia, or motor disabilities is entirely different, they are left to patch together other methods like browser plugins, screen readers bolted on , or human invigilators typing on their behalf.&lt;br&gt;
The gap isn't just inconvenient. It's a systemic barrier to fair assessment.&lt;br&gt;
AceExam is our attempt to close it. We aim to implement accessibility at the architecture level, training custom AI models for exam interaction, and using MongoDB as the data backbone for a platform that serves genuinely different kinds of users from a single codebase.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Accessibility is not a feature. It is a starting point. AceExam treats accommodation types as first-class citizens, not optional add-ons."&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  How AceExam Is Structured
&lt;/h2&gt;

&lt;p&gt;AceExam follows a clean three-tier hierarchy with clear permissions at each level:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Organisation (super admin) → Teacher / Admin → Student
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The system has three roles Organisation, Teacher, and Student each with their own dashboard. A teacher creates an exam, adds questions with difficulty ratings, and assigns it to students. When adding a student, they specify the student's disability type. That single field disability_type is the key that unlocks everything.&lt;/p&gt;

&lt;p&gt;When a student logs in and starts their exam, the system reads their disability_type from MongoDB, activates the right accessibility feature profile automatically, extends the exam timer, and transforms the UI — before the first question even loads. No manual setup. No settings menus.&lt;/p&gt;

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

&lt;p&gt;Backend&lt;br&gt;
Python (Flask) with MongoDB — scoped queries and mutations per role, with MongoDB as the primary data store for flexible document structures across exam types.&lt;/p&gt;

&lt;p&gt;Frontend&lt;br&gt;
HTML, CSS, Vanilla JavaScript (Server-side rendering via Jinja2 templates) with a consistent light theme and a compact five-button accessibility toolbar that persists across all exam pages.&lt;/p&gt;

&lt;p&gt;AI / ML&lt;br&gt;
Custom PyTorch models for speech-to-text and eye tracking, plus Python NLP libraries for text simplification and TTS via the Web Speech API.&lt;/p&gt;

&lt;p&gt;Deployment&lt;br&gt;
Built as a web-based platform — no installation required for students. Accessibility features run client-side using browser APIs where possible.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why MongoDB?
&lt;/h2&gt;

&lt;p&gt;Exam data is not flat. A single student attempt bundles together their profile, accommodation type, question set, per-question response, timestamps, and accessibility state and these fields vary significantly between accommodation types. A blind student's record carries voice command logs; a dyslexic student carries font and overlay settings.&lt;/p&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%2F35phdri5541fjdwsnbh3.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.amazonaws.com%2Fuploads%2Farticles%2F35phdri5541fjdwsnbh3.png" alt="mongo db" width="800" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Forcing that into a rigid relational schema means either sparse columns everywhere or a patchwork of JOIN tables that make every query more complex than it needs to be.&lt;br&gt;
MongoDB's document model handles this naturally. Each student attempt is one document. Loading an attempt for grading or review is one read — no assembling rows from multiple tables, no N+1 queries. The flexible schema also means adding a new accommodation type or a new accessibility field doesn't require a migration that touches every existing record.&lt;br&gt;
We use MongoDB as the primary data store across three collections:&lt;br&gt;
users — organisation, teacher, and student accounts with roles and accommodation types&lt;br&gt;
exams — question banks, assignment metadata, and per-exam settings created by teachers&lt;br&gt;
attempts — one document per student attempt, with responses, scores, and accessibility state embedded&lt;br&gt;
The once-only constraint on attempts is enforced at the data layer. Once a student submits, the attempt document is locked — subsequent submission calls check the document status before writing anything.&lt;/p&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%2Fckwpq2019mer7zxwkmb1.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.amazonaws.com%2Fuploads%2Farticles%2Fckwpq2019mer7zxwkmb1.png" alt="mongo db" width="800" height="394"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Accessibility by Accommodation Type
&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%2Fjc44645az3brr1370je0.jpg" 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%2Fjc44645az3brr1370je0.jpg" alt="website" width="800" height="387"&gt;&lt;/a&gt;&lt;br&gt;
When a student logs in, AceExam reads their registered accommodation type and automatically enables the relevant feature set. No manual configuration. No settings menu to navigate.&lt;br&gt;
🔵 Blind&lt;br&gt;
Text-to-speech reads every question aloud. Voice commands handle navigation and answer selection.&lt;br&gt;
🟣 Dyslexic&lt;br&gt;
Dyslexia-friendly font, increased letter spacing, and pastel background overlays to reduce visual stress.&lt;br&gt;
🟢 Motor Impairment&lt;br&gt;
Full keyboard navigation with single-key shortcuts. Eye tracking allows gaze-based option selection without any physical input device.&lt;br&gt;
⚪ Standard&lt;br&gt;
The default interface, with the five-button accessibility toolbar available if needed.&lt;/p&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%2F4u9a2xb559enmsolzu0n.jpg" 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%2F4u9a2xb559enmsolzu0n.jpg" alt="Attempting qs" width="800" height="389"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The AI We Built: Custom Speech-to-Text
&lt;/h2&gt;

&lt;p&gt;Rather than dropping in a general-purpose speech API, we trained a custom keyword classification model — exam_listener_v1.pt — specifically for exam interaction using PyTorch.&lt;br&gt;
The model classifies audio input into exactly 11 command categories:&lt;br&gt;
&lt;code&gt;cancel · confirm · next · option_a · option_b · option_c · option_d · previous · read · silence · submit&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Why a narrow vocabulary?
&lt;/h2&gt;

&lt;p&gt;A general ASR model that understands free-form speech introduces significant surface area for misclassification during an exam. If a student says "I think it's option B" while thinking aloud, a general model might select option B unintentionally. Our model knows only the valid exam commands — and classifies only those.&lt;/p&gt;

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

&lt;p&gt;Our model trades raw accuracy for domain specificity. The accuracy gap reflects limited training data and noise sensitivity — known drawbacks we're addressing through data augmentation and noise-robust training in the next iteration.&lt;/p&gt;
&lt;h2&gt;
  
  
  Eye Tracking for Motor Accessibility
&lt;/h2&gt;

&lt;p&gt;For students with motor impairments, AceExam includes a webcam-based eye tracking module built in Python using OpenCV. It maps pupil position to on-screen MCQ options — sustained gaze on an option triggers selection with no mouse or keyboard required.&lt;/p&gt;

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

&lt;p&gt;The current implementation is computationally intensive and struggles under variable lighting — an acknowledged limitation. It demonstrates the feasibility of gaze-based exam interaction; production-grade accuracy would require a calibrated backbone like MediaPipe. That replacement is already on the roadmap.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Exam Attempt Flow
&lt;/h2&gt;

&lt;p&gt;Every student attempt follows the same path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Login
  → Accommodation type read from MongoDB
    → Accessibility features auto-enabled
      → Exam loads
        → Attempt (once only)
          → Submit confirmation dialog
            → Score written to MongoDB (attempt locked)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;During the attempt, three accessibility channels run in parallel: the five-button toolbar, single-key keyboard shortcuts, and voice commands. Students can use whichever channel suits them without any mode-switching.&lt;/p&gt;

&lt;h2&gt;
  
  
  What MongoDB Enables in Practice
&lt;/h2&gt;

&lt;p&gt;Flexible document structure across accommodation types. A blind student's attempt document carries different fields from a motor-impaired student's — MongoDB handles both without schema pressure.&lt;br&gt;
Single-read exam loading. The full context needed to render an exam attempt — questions, student profile, accessibility settings, prior responses — lives in one document. One read to load the exam. No assembly required.&lt;br&gt;
Atomic attempt locking. Once a student submits, a single $set on the attempt document marks it as locked. No race conditions, no partial writes, no separate status table to consult.&lt;br&gt;
Scalable across teacher and student volumes. MongoDB's horizontal scaling means adding new schools, new exam sets, and new student cohorts doesn't require redesigning the data layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;AceExam is a research prototype — a proof of concept that accessible digital examination is achievable with a focused stack and well-scoped AI models. The next directions:&lt;br&gt;
Automated question generation via NLP&lt;br&gt;
Semantic answer grading (not just keyword match)&lt;br&gt;
Text simplification for dyslexic users using transformer-based models&lt;br&gt;
MediaPipe-backed eye tracking to replace the current custom implementation&lt;br&gt;
Noise-robust STT training with data augmentation to close the accuracy gap&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;The decision to train domain-specific AI models rather than use off-the-shelf APIs was deliberate. A narrow vocabulary STT model makes fewer exam-context errors even at lower raw accuracy. A gaze-based selection system, even at 40% accuracy in prototype form, proves the interaction paradigm is viable and gives us a concrete upgrade path.&lt;br&gt;
MongoDB's document model was the right call for a platform where user data shapes vary significantly by role and accommodation type. Flexible schema meant faster iteration, and the single-document-per-attempt design kept the data access patterns clean.&lt;br&gt;
The goal was never to build a finished product. It was to demonstrate that the gap between standard exam platforms and genuinely accessible ones can be closed — and to show exactly where the hard problems still live.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>mongodb</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
