How pragatigaddewar-hub/rag-notes-qa works
RAG Notes QA is a small interactive question-answering program: it reads the local notes, chunks them by paragraph, embeds the chunks, retrieves the two most similar chunks for each question, and asks Gemini to answer from that context. The main program owns these actions; the nodes separate its domain stages rather than imply separate modules. The source excerpt shows the complete runtime flow. Gemini is external, and notes.txt is the local knowledge source.
Main entry points: rag_app.py Interactive RAG app · notes.txt Notes corpus
Components 9
Knowledge and input
- Interactive RAG app
rag_app.py - Notes corpus
notes.txt - Paragraph chunking
rag_app.py
Retrieval
- Gemini embeddings
- Top-two similarity search
rag_app.py
Answer generation
- Context prompt assembly
rag_app.py - Gemini answer generation
- Answer and cited chunks
rag_app.py
Other components
- Questioner
Connections 14
- Questioner → Interactive RAG app: enters question
rag_app.py - Interactive RAG app → Notes corpus: reads notes
rag_app.py - Notes corpus → Paragraph chunking: provides text
rag_app.py - Interactive RAG app → Paragraph chunking: splits paragraphs
rag_app.py - Interactive RAG app → Gemini embeddings: requests embeddings
rag_app.py - Paragraph chunking → Gemini embeddings: supplies chunks
rag_app.py - Interactive RAG app → Top-two similarity search: scores similarities
rag_app.py - Gemini embeddings → Top-two similarity search: returns vectors
rag_app.py - Interactive RAG app → Context prompt assembly: assembles context
rag_app.py - Top-two similarity search → Context prompt assembly: supplies top chunks
rag_app.py - Interactive RAG app → Gemini answer generation: requests answer
rag_app.py - Context prompt assembly → Gemini answer generation: supplies prompt
rag_app.py - Interactive RAG app → Answer and cited chunks: prints response
rag_app.py - Gemini answer generation → Answer and cited chunks: returns answer
rag_app.py