This project consists of two main components:
- News Ingestion Service - Continuously fetches financial news from Alpaca and stores it in QdrantDB
- News RAG Service - Provides question-answering capabilities using the stored news data
- Clone the repository
- Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Copy
.env.example
to.env
and fill in your API keys:- ALPACA_API_KEY
- ALPACA_SECRET_KEY
- QDRANT_API_KEY
- QDRANT_URL
- OPENAI_API_KEY
python news_ingestion_service.py
This will start the continuous news ingestion process.
python news_rag_service.py
- News Ingestion Service (
news_ingestion_service.py
):
- News RAG Service (
news_rag_service.py
):