How udit-tripathi07/newsrag works
NewsRAG is a Streamlit app for asking questions over three isolated source workspaces: newspaper coverage, cross-publisher topic searches, and uploaded PDFs. Users choose a workspace, load sources, and chat; follow-up questions are rewritten using that workspace’s history before retrieval, and answers are generated with Groq. The README documents session-only FAISS storage and the major capabilities, but app.py was not inspected, so the graph reflects documented behavior rather than verified internal call sites.
Main entry points: app.py Query Rewriting
Components 17
Workspaces
- Workspace Picker
app.py - Newsroom
app.py - Topic Radar
app.py - Document Vault
app.py
Source Loading
- Article Loading
app.py - PDF Parsing
app.py - Text Chunking
app.py - Embeddings
app.py - Session FAISS
app.py
Retrieval and Answers
- Query Rewriting
app.py - Scoped Retrieval
app.py - Summary Context
app.py - Chat History
app.py - Generated Answer
app.py
Other components
- User
- NewsAPI
- Groq LLM
Connections 24
- User → Workspace Picker: opens
README.md - Workspace Picker → Newsroom: selects
README.md - Workspace Picker → Topic Radar: selects
README.md - Workspace Picker → Document Vault: selects
README.md - Newsroom → Article Loading: loads coverage
README.md - Topic Radar → Article Loading: searches articles
README.md - NewsAPI → Article Loading: provides articles
README.md - Document Vault → PDF Parsing: uploads PDFs
README.md - Article Loading → Text Chunking: indexes articles
README.md - PDF Parsing → Text Chunking: extracts pages
README.md - Text Chunking → Embeddings: embeds chunks
README.md - Embeddings → Session FAISS: stores vectors
README.md - Newsroom → Query Rewriting: asks questions
README.md - Topic Radar → Query Rewriting: asks questions
README.md - Document Vault → Query Rewriting: asks questions
README.md - Query Rewriting → Scoped Retrieval: contextualizes query
README.md - Chat History → Query Rewriting: supplies history
README.md - Scoped Retrieval → Session FAISS: searches scope
README.md - Scoped Retrieval → Summary Context: uses full context
README.md - Scoped Retrieval → Groq LLM: provides context
README.md - Summary Context → Groq LLM: provides context
README.md - Groq LLM → Generated Answer: generates answer
README.md - Generated Answer → Chat History: updates history
README.md - Generated Answer → User: returns answer
README.md