Retrieve and process stock market data using lightweight AI models running locally on your machine.
Python
0
40 commits
updated Aug 22, 2025
Driftwood’s Python backend uses yFinance, a Yahoo Finance API wrapper, to retrieve historical stock data. This data is then processed entirely on your local machine using lightweight AI models.
The analysis pipeline consists of two main steps:
Sentiment Analysis with FinBERT Driftwood collects news articles related to a given stock and analyzes their titles and summaries using FinBERT, a transformer model fine-tuned for financial sentiment analysis. The resulting sentiment scores are embedded as vectors and stored locally for efficient retrieval.
Contextual Insights with an LLM Driftwood then uses a quantized large language model based on Hermes 2 Pro. During this step the application employs retrieval-augmented generation (RAG), using the stored sentiment vectors to produce more accurate and relevant insights about a given stock.
Next.js + React + TypeScript CSS
Python Flask LangChain Transformers
Folder structure:
client/ – contains all frontend (Next.js) codeserver/ – contains all backend (Flask + AI models) codegit clone https://github.com/yarimatusevich/driftwood-metrics.git
cd driftwood-metrics
cd client
npm install
npm run dev
cd server
pip install -r requirements.txt
python app.py
With both servers running, ensure that both terminals remain open and access the following urls in your browser:
Frontend: http://localhost:3000 Backend: http://localhost:5000
To terminate the servers use ctrl + c in their respective terminals.
Retrieve and process stock market data using lightweight AI models running locally on your machine.
Python
0
40 commits
updated Aug 22, 2025
Driftwood’s Python backend uses yFinance, a Yahoo Finance API wrapper, to retrieve historical stock data. This data is then processed entirely on your local machine using lightweight AI models.
The analysis pipeline consists of two main steps:
Sentiment Analysis with FinBERT Driftwood collects news articles related to a given stock and analyzes their titles and summaries using FinBERT, a transformer model fine-tuned for financial sentiment analysis. The resulting sentiment scores are embedded as vectors and stored locally for efficient retrieval.
Contextual Insights with an LLM Driftwood then uses a quantized large language model based on Hermes 2 Pro. During this step the application employs retrieval-augmented generation (RAG), using the stored sentiment vectors to produce more accurate and relevant insights about a given stock.
Next.js + React + TypeScript CSS
Python Flask LangChain Transformers
Folder structure:
client/ – contains all frontend (Next.js) codeserver/ – contains all backend (Flask + AI models) codegit clone https://github.com/yarimatusevich/driftwood-metrics.git
cd driftwood-metrics
cd client
npm install
npm run dev
cd server
pip install -r requirements.txt
python app.py
With both servers running, ensure that both terminals remain open and access the following urls in your browser:
Frontend: http://localhost:3000 Backend: http://localhost:5000
To terminate the servers use ctrl + c in their respective terminals.