https://github.com/sayed-ashfaq/stocksnapai
RAG app that helps to analyze the stock, news, kpi's and reports
https://github.com/sayed-ashfaq/stocksnapai
Last synced: 10 months ago
JSON representation
RAG app that helps to analyze the stock, news, kpi's and reports
- Host: GitHub
- URL: https://github.com/sayed-ashfaq/stocksnapai
- Owner: sayed-ashfaq
- Created: 2025-08-10T07:25:44.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-08-10T08:37:58.000Z (12 months ago)
- Last Synced: 2025-08-10T10:14:23.148Z (12 months ago)
- Language: Jupyter Notebook
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
# ๐ค AI Finance Copilot (Prototype)
> โ ๏ธ **Prototype App** โ This project is an experimental build to test and validate the idea of an AI-powered finance assistant.
> ๐ A full **industry-grade web application** is planned for future development.
AI Finance Copilot is a **Streamlit-based prototype** that assists traders and analysts with **stock sentiment analysis** and **financial document insights**. It combines real-time market intelligence with AI-powered document analysis to demonstrate what a next-generation financial research tool could look like.
---
## โจ Features
### ๐ Stock News & Sentiment Analysis
* Add multiple stocks to a custom portfolio
* Get **real-time news analysis** with AI sentiment scoring
* Portfolio-level insights: themes, risks, opportunities
* Individual stock summaries with sentiment impact
* Portfolio distribution charts (bullish, bearish, neutral)
### ๐ Document Chat & Analysis
* Upload financial documents (earnings, annual reports, etc.)
* AI-powered summaries with **red flag detection**
* Chat with documents using natural language (with citations)
* Quick questions for faster insights
* Export chat history
---
## ๐ Dashboard
#### Link: https://stocksnapai.streamlit.app/
## ๐ผ๏ธ Screenshots
### Home & API Configuration

### Stock News & Portfolio Analysis

### Document Upload & Summaries

### Interactive Document Q\&A

---
## ๐ Getting Started
### 1. Clone Repository
```bash
git clone https://github.com/sayed-ashfaq/StockSnapAI
cd StockSnapAI
```
### 2. Install Dependencies
```bash
pip install -r requirements.txt
```
### 3. API Keys (Free Tiers Available)
* [OpenAI](https://platform.openai.com/api-keys) โ embeddings & analysis
* [Google AI](https://makersuite.google.com/app/apikey) โ Gemini model
* [Tavily](https://app.tavily.com/) โ real-time news search
Enter keys in the **sidebar** after starting the app.
### 4. Run the App
```bash
streamlit run main.py
```
---
## ๐ ๏ธ Tech Stack
* **Streamlit** โ Web interface
* **LangChain + LangGraph** โ AI orchestration
* **OpenAI Embeddings** โ Document vectorization
* **Google Gemini 2.0** โ LLM for chat & analysis
* **Tavily Search** โ Real-time financial news
---
## ๐ Project Structure
```
ai-finance-copilot/
โโโ main.py # Streamlit app entry point
โโโ requirements.txt # Dependencies
โโโ modules/
โโโ stock_analyzer.py # Stock sentiment logic
โโโ document_chat.py # Document RAG + Q&A
โโโ...
โโโ...
```
---
## โ ๏ธ Prototype Limitations
* Basic UI/UX
* No persistent data storage
* Limited error handling
* Session-based API key storage
* Charts & analytics are minimal
---
## ๐ฎ Roadmap (Industry-Grade Version)
Planned features for the full-scale application:
* Advanced dashboards & visualizations
* Persistent storage (DB-backed portfolio & documents)
* Real-time alerts & monitoring
* Multi-user support with authentication
* Enhanced security for sensitive documents
* Web based app
* Exception handing and custom logging
* Advanced vectorstore chunking, retriving methods
---
## ๐ Contact
For collaboration or updates on the full version:
* **Email**: [302syedashfaq@gmail.com](mailto:302syedashfaq@gmai.com)
* **LinkedIn**: [sayed-ashfaq](https://www.linkedin.com/in/sayed-ashfaq/)
---
โ๏ธ **Disclaimer**: This prototype is for demonstration purposes only. It does not provide financial advice.
โญ Star the repo if you find this project interesting!
---
## Notes
### ๐ Vector DBs Comparison for RAG Apps (2025)
| Feature / DB | **Chroma** ๐ข | **FAISS** ๐ | **Pinecone** ๐ต | **Weaviate** ๐ฃ | **Milvus** ๐ด | **Qdrant** ๐ค |
| ----------------------------------- | ----------------------------- | ---------------------------------- | --------------------------------- | ---------------------------- | -------------------------- | --------------------------------------- |
| **Type** | Local DB | Library (ANN) | Managed Cloud DB | Hybrid (self-host + cloud) | Open-source DB | Open-source DB |
| **Persistence** | โ
Yes | โ Manual | โ
Yes | โ
Yes | โ
Yes | โ
Yes |
| **Metadata filtering** | โ
Yes | โ No | โ
Yes | โ
Yes | โ
Yes | โ
Yes |
| **Multimodal support** (text+image) | โ ๏ธ Limited (custom) | โ No | โ
Yes (new multimodal support) | โ
Yes (via modules) | โ
Yes (via plugins) | โ
Yes (via payload) |
| **Scalability** | โ ๏ธ Smallโmedium (10kโ1M docs) | โ
Billions (single machine) | โ
Billions (distributed) | โ
Billions (distributed) | โ
Billions (distributed) | โ
100M+ (distributed) |
| **Cloud-managed option** | โ No | โ No | โ
Yes | โ
Yes (Weaviate Cloud) | โ
(Zilliz Cloud) | โ
(Qdrant Cloud) |
| **Self-hosting** | โ
Yes (simple) | โ
Yes | โ Cloud only | โ
Yes | โ
Yes | โ
Yes |
| **Ease of use** | โญโญโญโญ | โญโญ | โญโญโญโญ | โญโญโญ | โญโญโญ | โญโญโญโญ |
| **Community/Docs** | Medium | High (researchers) | Very High (enterprise) | High | High | Growing fast |
| **Best for** | Prototypes, small RAG apps | Hardcore performance, custom infra | Production SaaS, enterprise scale | Enterprise + semantic search | Open-source, huge datasets | Mid-scale open-source, Rust-based speed |
---
#### โก For Your Case (News + Financial Reports + Images in India)
* Start with **Chroma** โ simple, fast iteration.
* If you **need multimodal embeddings (text + image)**: