---
title: "Discussion on \"Day 19: app.py - From Notebook to src/, and the Index That Went Stale\" | Hashnode"
description: "Discussion on \"Day 19: app.py - From Notebook to src/, and the Index That Went Stale\". I added the RAG paper to my RAG pipeline, and it told me it couldn't find anything about RAG."
url: "https://hashnode.com/posts/day-19-app-py-from-notebook-to-src-and-the-index-that-went-stale/6ab134c854f3783333f35b29"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Day 19: app.py - From Notebook to src/, and the Index That Went Stale](https://parthkg.hashnode.dev/day-19-app-py-from-notebook-to-src-and-the-index-that-went-stale?utm_source=hashnode&utm_medium=feed)

I added the RAG paper to my RAG pipeline, and it told me it couldn't find anything about RAG.

Sep 21 · 8 min read · parthkg.hashnode.dev  
Read the article

-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#python](https://hashnode.com/tag/python)
-   [#rag](https://hashnode.com/tag/rag)
-   [#faiss](https://hashnode.com/tag/faiss)
-   [#langchain](https://hashnode.com/tag/langchain)

## Written by

[Parth krishan Goswami](https://hashnode.com/@ParthKG)

@ParthKG

  
[View profile](https://hashnode.com/@ParthKG)

Learning AIML with everyone

## Responses 1

Markdown supported · ⌘↵ to post

[Mihai\_LeanZero](https://hashnode.com/@mihaileanzero)

[Sep 22](https://hashnode.com/posts/day-19-app-py-from-notebook-to-src-and-the-index-that-went-stale/6ab134c854f3783333f35b29/comment/6ab2423f6cae275f0e18290e)

The filename-set check is the right shape but it'll still miss the exact case you flagged at the end, a file that gets edited but keeps its name. Hashing file content instead of comparing names closes that gap without much more code, and it survives renames too since you'd key by hash rather than path. One thing worth watching as the corpus grows: "compare indexed vs on-disk" means loading the whole FAISS index and unpickling the metadata before you even know a rebuild is needed. Worth splitting out a small manifest file (filename to hash) so the staleness check itself stays cheap and doesn't require deserializing the full store first.
