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

https://github.com/shortthirdman/financial-insights-agent

Hybrid Web-Enhanced Chat for Real-Time Financial Insights
https://github.com/shortthirdman/financial-insights-agent

Last synced: 14 days ago
JSON representation

Hybrid Web-Enhanced Chat for Real-Time Financial Insights

Awesome Lists containing this project

README

          

# ๐Ÿ“Š Financial Insight Agent

An AI-powered stock analysis application that combines real-time market data with LLM-driven insights to deliver trend analysis, risk evaluation, and actionable investment guidance.

---

## ๐Ÿš€ Overview

**Financial Insight Agent** enables users to input a stock ticker and ask natural language questions like:

- *"Is this a good time to invest?"*
- *"What is the current trend?"*
- *"What are the risks associated with this stock?"*

The application fetches live market data, computes key technical indicators, and uses a large language model to generate **human-like financial insights**.

---

## ๐ŸŽฏ Key Features

- ๐Ÿ“ˆ **Real-time Market Data**
Fetches OHLCV data using `yfinance`

- ๐Ÿงฎ **Technical Indicators**
- Simple Moving Averages (SMA 20, SMA 50)
- RSI (Relative Strength Index)

- ๐Ÿค– **AI-Powered Insights**
Uses Groq-hosted LLMs (LLaMA 3) to generate:
- Trend analysis
- Risk assessment
- Buy/Hold/Sell suggestions

- ๐Ÿ’ฌ **Natural Language Queries**
Ask questions in plain English

- ๐Ÿ“Š **Interactive Visualizations**
Stock price + indicators using Plotly

---

## โœจ What This Adds

- ๐Ÿ’ฌ Conversational Q&A on top of stock insights
- ๐Ÿง  Context-aware answers (uses computed indicators)
- ๐Ÿ” Chat memory within session
- โšก Real-time exploration (feels like an agent)

---

## ๐Ÿ—๏ธ Tech Stack

- Frontend/UI: Streamlit
- Backend Logic: Python
- LLM Provider: Groq (LLaMA 3)
- Data Source: yfinance
- Visualization: Plotly
- Orchestration: LangChain (optional extensions)

---

## ๐Ÿง  How It Works

```text
User Input (Ticker + Query)
โ†“
Fetch Data (yfinance)
โ†“
Compute Indicators
โ†“
Build Prompt
โ†“
LLM (Groq - LLaMA 3)
โ†“
AI Insight + Visualization
```

---

โš™๏ธ Installation
1. Clone the Repository

```shell
git clone https://github.com/your-username/financial-insight-agent.git
cd financial-insight-agent
```

2. Install Dependencies

```shell
pip install -r requirements.txt
```

---

## ๐Ÿงช Example Usage

Enter stock ticker (e.g., AAPL, TSLA)

Ask a question:

> "Should I invest in this stock right now?"

View:
- ๐Ÿ“ˆ Price chart + indicators
- ๐Ÿง  AI-generated insights

---

## ๐Ÿ“Œ Why This Project Matters
Bridges quantitative finance + AI reasoning
Demonstrates real-world GenAI application (not just chatbots)
Showcases RAG-style thinking without heavy infra
Highlights LLM + structured data synergy

---

## โš ๏ธ Disclaimer

This application is for educational and informational purposes only.
It does not constitute financial advice. Always do your own research before making investment decisions.

---

## ๐Ÿค Contributing

Contributions are welcome!

Fork the repo
Create a new branch
Submit a pull request

---

## ๐Ÿ“„ License

MIT License

---

## ๐Ÿ‘จโ€๐Ÿ’ป Author

Built for hackathons, learning, and real-world AI experimentation.