How kritikaagrahari057-cmyk/raju-chai-wala works
Raju Tea Shop is a Streamlit question-answering assistant grounded in shop information, with an option to use uploaded documents. Users select a knowledge source, ask a question, and receive an answer generated from retrieved document chunks. The default index is loaded or built from the shop text; uploaded files are parsed and indexed for the session. The RAG pipeline coordinates retrieval and generation, using local HuggingFace embeddings, FAISS, and Groq. The map reflects the excerpts and README; unsampled UI behavior and integrations are not inferred.
Main entry points: main.py Streamlit assistant · rag_pipeline.py RAG orchestrator · embeddings.py Embedding creation · vector_store.py FAISS index operations
Components 15
User experience
- Streamlit assistant
main.py
Knowledge ingestion
- Default document loader
src/loader.py - Shop knowledge text
data/raju_shop.txt - Uploaded file parsing
main.py - Document chunking
src/splitter.py
RAG runtime
- Runtime configuration
src/config.py - RAG orchestrator
src/rag_pipeline.py - Similarity retrieval
src/retriever.py - Prompt and model setup
src/llm.py
Models and storage
- Embedding creation
src/embeddings.py - HuggingFace embeddings
- FAISS index operations
src/vector_store.py - FAISS vector index
- Groq language model
Other components
- Shop assistant user
Connections 18
- Shop assistant user → Streamlit assistant: asks questions
README.md - Streamlit assistant → Runtime configuration: validates settings
main.py - Streamlit assistant → RAG orchestrator: gets index; asks
main.py - Streamlit assistant → Uploaded file parsing: parses uploads
main.py - Streamlit assistant → Document chunking: chunks uploads
main.py - Streamlit assistant → Embedding creation: embeds uploads
main.py - Streamlit assistant → FAISS index operations: indexes uploads
main.py - RAG orchestrator → Default document loader: loads default text
src/rag_pipeline.py - Default document loader → Shop knowledge text: reads
src/loader.py - RAG orchestrator → Document chunking: chunks documents
src/rag_pipeline.py - RAG orchestrator → Embedding creation: creates embeddings
src/rag_pipeline.py - RAG orchestrator → FAISS index operations: builds or loads index
src/rag_pipeline.py - Embedding creation → HuggingFace embeddings: creates model
src/embeddings.py - FAISS index operations → FAISS vector index: builds or loads
src/vector_store.py - RAG orchestrator → Similarity retrieval: retrieves chunks
src/rag_pipeline.py - Similarity retrieval → FAISS vector index: searches index
src/retriever.py - RAG orchestrator → Prompt and model setup: builds prompt
src/rag_pipeline.py - Prompt and model setup → Groq language model: configures model
src/llm.py