Skip to content

Nithin00614/Market-Intelligence-Layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 AI Market Intelligence System

Python FastAPI LLM LangGraph

An LLM-powered multi-agent system that generates structured market intelligence reports by combining real-time data, financial metrics, and retrieval-augmented knowledge.


🧠 What it does

Given a company name, the system:

  • Fetches real-time news
  • Retrieves financial metrics
  • Augments context using RAG (FAISS)
  • Applies LLM reasoning
  • Generates:
    • Market summary
    • Risks & opportunities
    • Investment strategy + confidence

⚙️ Architecture (Simplified)

UI → FastAPI → LangGraph → Agents → LLM → Response

➡️ For detailed architecture, design, tradeoffs :


🧩 Tech Stack

  • Backend: FastAPI
  • Orchestration: LangGraph
  • LLM: Groq (LLaMA3)
  • Embeddings: HuggingFace
  • Vector DB: FAISS
  • Frontend: Streamlit

📁 Project Structure

app/
├── agents/
├── api/
├── config/
├── prompts/
├── schemas/
├── services/
├── tools/
├── workflows/
└── main.py

data/
docker/ system_design.md


🚀 Getting Started

  1. Clone repo

git clone https://github.com/Nithin00614/Market-Intelligence-Layer

cd Market-intelligence-agent

  1. Setup environment

python -m venv venv

Activate:

  • Windows → "venv\Scripts\activate"
  • Mac/Linux → "source venv/bin/activate"
  1. Install dependencies

pip install -r requirements.txt

  1. Configure environment variables

Create ".env" file:

  • GROQ_API_KEY=your_api_key
  • MODEL_NAME=llama3-8b-8192
  • NEWS_API_KEY = your_api_key
  • FINANCIAL_API_KEY = your_api_key
  1. Run backend

uvicorn app.main:app --reload

  1. Run UI

streamlit run app.py


📤 Example Request

{ "company": "Apple", "question": "Analyze market position" }


📈 Example Output

{ "analysis": { "summary": "...", "key_risks": [...], "opportunities": [...] }, "strategy": { "decision": "Hold", "confidence": "High" } }


⚠️ Limitations

  • Relies on external APIs (latency dependent)
  • LLM outputs are probabilistic
  • FAISS is not distributed (local setup)

🎯 Key Highlights

  • Multi-agent AI system using LangGraph
  • Tool-augmented LLM reasoning
  • Retrieval-Augmented Generation (RAG)
  • Modular, production-style architecture

About

LLM-Powered Multi-Agent System for Market Intelligence using LangGraph, RAG, and Tool-Based Reasoning to Generate Structured Financial Insights.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors