How 7642-bot/-electronic_news works
Electronics Technology Intelligence ingests electronics news and dictionary PDFs, indexes them in ChromaDB, and serves grounded technical summaries through a Streamlit demo. In the main user workflow, a query enters the LangGraph RAG application, is routed to news retrieval or dictionary lookup, then receives an LLM-generated summary and quality score. Separate UI capabilities support corpus search, RSS ingestion, and a LinUCB simulator. Fine-tuning is present as scaffolding. Some links, especially dictionary indexing and orchestration internals, are documented in the README rather than shown in sampled source.
Main entry points: daily_pipeline.py Daily pipeline · streamlit_app.py Demo UI · graph.py RAG orchestrator · nodes.py News retrieval
Components 23
User experience
- Demo UI
streamlit_app.py
Ingestion and indexing
- RSS fetcher
app/ingestion/rss_fetcher.py - Deduplication
app/ingestion/deduplicator.py - Article corpus
data/processed - Dictionary loader
app/ingestion/dictionary_loader.py - Vector indexer
app/ingestion/vector_indexer.py - ChromaDB
chroma_db - Daily pipeline
app/pipeline/daily_pipeline.py
Grounded summaries
- RAG orchestrator
app/rag/graph.py - RAG state
app/rag/state.py - Query router
app/rag/nodes.py - News retrieval
app/rag/nodes.py - Dictionary lookup
app/rag/nodes.py - Summary generation
app/rag/nodes.py - Quality verification
app/rag/nodes.py
Personalization
- LinUCB bandit
app/bandit/linucb.py
Fine-tuning
- Dataset builder
app/finetuning/dataset_builder.py - QLoRA trainer
app/finetuning/train_qlora.py
Other components
- User
- RSS feeds
- Dictionary PDFs
- Groq LLM
- Application settings
app/config/settings.py
Connections 31
- User → Demo UI: uses
README.md - Demo UI → RAG orchestrator: submits query
streamlit_app.py - Demo UI → ChromaDB: searches corpus
streamlit_app.py - Demo UI → Daily pipeline: triggers ingestion
streamlit_app.py - Demo UI → LinUCB bandit: simulates preferences
streamlit_app.py - RSS feeds → RSS fetcher: provides articles
app/ingestion/rss_fetcher.py - Daily pipeline → RSS fetcher: fetches feeds
app/pipeline/daily_pipeline.py - Daily pipeline → Deduplication: deduplicates articles
app/pipeline/daily_pipeline.py - Deduplication → Article corpus: appends articles
app/ingestion/deduplicator.py - Daily pipeline → Article corpus: reads corpus
app/pipeline/daily_pipeline.py - Dictionary PDFs → Dictionary loader: loads PDFs
README.md - Dictionary loader → Vector indexer: chunks documents
README.md - Daily pipeline → Vector indexer: indexes news
app/pipeline/daily_pipeline.py - Vector indexer → ChromaDB: writes vectors
app/ingestion/vector_indexer.py - Daily pipeline → RAG orchestrator: summarizes articles
app/pipeline/daily_pipeline.py - RAG orchestrator → Query router: routes queries
README.md - Query router → News retrieval: routes news
README.md - Query router → Dictionary lookup: routes definitions
README.md - News retrieval → ChromaDB: retrieves news
app/rag/nodes.py - Dictionary lookup → ChromaDB: retrieves definitions
app/rag/nodes.py - News retrieval → Summary generation: provides context
README.md - Dictionary lookup → Summary generation: provides context
README.md - Summary generation → Groq LLM: generates summary
app/rag/nodes.py - Quality verification → Groq LLM: rates summary
app/rag/nodes.py - RAG orchestrator → Quality verification: verifies output
README.md - RAG orchestrator → RAG state: passes state
- Application settings → RSS fetcher: configures feeds
app/ingestion/rss_fetcher.py - Application settings → Vector indexer: configures index
app/ingestion/vector_indexer.py - Application settings → News retrieval: configures retrieval
app/rag/nodes.py - Dataset builder → Dictionary loader: loads dictionary pages
app/finetuning/dataset_builder.py - Dataset builder → QLoRA trainer: creates training data