An open API service indexing awesome lists of open source software.

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

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

Screenshot 2025-09-01 122910

### Stock News & Portfolio Analysis

StockSnapAI-1

### Document Upload & Summaries

StockSnapAI-2

### Interactive Document Q\&A

StocksnapAI-3

---

## ๐Ÿš€ 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)**: