A Streamlit application that analyzes news articles using Groq's Llama 3 model and FAISS vector search.
- Process up to 3 news article URLs simultaneously
- Extract and chunk text content
- Generate embeddings using HuggingFace models
- Query articles with natural language questions
- Source attribution for answers
- Python 3.8+
- Groq API key (get it from Groq Cloud)
-
Clone this repository
-
Install dependencies:
pip install -r requirements.txt
-
Create a .env file or set environment variable: text
GROQ_API_KEY=your_api_key_here
-
Run the application:
streamlit run app.py
-
In the sidebar:
Enter 1-3 news article URLs
Click "Process URLs"
-
Wait for processing to complete (embeddings generation may take 1-2 minutes)
-
Ask questions in the main input field