How mr-asif003/minirag works
MiniRAG is a personal-information question-answering application. A user enters profile data in the Streamlit app, which saves it and initiates document loading, chunking, and vector-store creation. For questions, the app calls the RAG pipeline, which retrieves matching chunks, builds context, and requests an answer from a language model; the app displays the answer and retrieved context. Core ingestion and retrieval calls are visible in excerpts. The README documents model integrations and overall behavior, but some implementation details were not sampled.
Main entry points: app.py Streamlit App · vector_store.py FAISS Store Access · rag_pipeline.py RAG Orchestrator · loader.py Document Loading
Components 13
User Interface
- Streamlit App
app.py
Information Ingestion
- Profile Saving
rag/data_manager.py - Document Loading
rag/loader.py - Text Chunking
rag/splitter.py
RAG Processing
- RAG Orchestrator
rag/rag_pipeline.py - Similarity Retrieval
rag/retriever.py - Answer Generation
rag/generator.py
Vector Storage
- Embedding Model
rag/embeddings.py - FAISS Store Access
rag/vector_store.py - FAISS Index
vectorstore - User Profiles
users.json
Other components
- User
- Hugging Face
Connections 16
- User → Streamlit App: enters data
README.md - User → Streamlit App: asks question
README.md - Streamlit App → Profile Saving: saves profile
app.py - Streamlit App → Document Loading: loads documents
app.py - Streamlit App → Text Chunking: splits documents
app.py - Streamlit App → FAISS Store Access: creates store
app.py - Document Loading → User Profiles: reads profiles
rag/loader.py - FAISS Store Access → Embedding Model: gets embeddings
rag/vector_store.py - FAISS Store Access → FAISS Index: saves or loads
rag/vector_store.py - Streamlit App → RAG Orchestrator: asks RAG
app.py - RAG Orchestrator → Similarity Retrieval: retrieves documents
rag/rag_pipeline.py - RAG Orchestrator → Answer Generation: generates answer
rag/rag_pipeline.py - Similarity Retrieval → FAISS Store Access: searches vectors
rag/retriever.py - Answer Generation → Hugging Face: uses model
README.md - Embedding Model → Hugging Face: uses models
README.md - Streamlit App → User: shows answer
README.md