A sophisticated multi-agent AI system that combines web search capabilities with comprehensive financial analysis. Built using FastAPI and the Phi framework, this application leverages multiple AI agents to provide intelligent financial insights and research.
Application URL: [https://financial-agentic-ai-app.onrender.com/]
- Web Search Agent: Powered by DuckDuckGo for real-time web information
- Financial Analysis Agent: Advanced financial data analysis using YFinance
- Multi-Agent Orchestration: Combines both agents for comprehensive responses
- Real-time stock prices and market data
- Analyst recommendations and ratings
- Company fundamentals analysis
- Latest financial news and updates
- Tabular data presentation for better readability
- Clean, responsive UI built with HTML/CSS/JavaScript
- Real-time query processing
- Markdown-formatted responses
- Mobile-friendly design
Financial-Agentic-AI-App/
βββ app.py # Main FastAPI application
βββ playground.py # Alternative Phi playground interface
βββ Dockerfile # Docker containerization
βββ requirements.txt # Python dependencies
βββ .env # Environment variables (not tracked)
βββ templates/
β βββ index.html # Frontend template
βββ static/css/
β βββ styles.css # Application styling
βββ .github/
βββ workflows/
βββ deploy.yml # CI/CD pipeline
# Build the Docker image
docker build -t financial-ai-app .
# Run the container
docker run -p 7860:7860 --env-file .env financial-ai-app
This application is configured for automatic deployment on Render with:
- Automatic builds from GitHub
- Environment variable management
- Health checks and monitoring
- SSL certificate provisioning
- Continuous Integration: Automated testing and linting
- Continuous Deployment: Auto-deploy to Render on main branch updates
- Docker Integration: Containerized deployment for consistency
- Python 3.9+
- Docker (optional)
- Git
-
Clone the repository
git clone https://github.com/Adonpm/Financial-Agentic-AI-App.git cd Financial-Agentic-AI-App
-
Set up virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Configure environment variables
cp .env.example .env # Edit .env with your API keys
-
Run the application
python app.py
-
Access the application
- Open your browser to
http://localhost:7860
- Open your browser to
Create a .env
file with the following variables:
GROQ_API_KEY=your_groq_api_key_here
PHI_API_KEY=your_phi_api_key_here
GET /
- Home page with web interfacePOST /query
- Submit queries to the multi-agent system
import requests
response = requests.post("http://localhost:7860/query",
json={"query": "What's the current stock price of AAPL?"})
print(response.json())
- Real-time web information retrieval
- Source attribution and verification
- DuckDuckGo integration for privacy-focused search
- Stock Data: Real-time prices, historical data, technical indicators
- Fundamentals: P/E ratios, market cap, financial statements
- News: Company-specific news and market updates
- Recommendations: Analyst ratings and price targets
- Intelligent query routing
- Cross-agent information synthesis
- Comprehensive response generation
- Backend: FastAPI, Python 3.9+
- AI Framework: Phi (Multi-agent orchestration)
- LLM: Groq (Llama 3.3 70B)
- Financial Data: YFinance API
- Web Search: DuckDuckGo API
- Frontend: HTML5, CSS3, JavaScript
- Containerization: Docker
- Deployment: Render
- CI/CD: GitHub Actions
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Follow PEP 8 style guidelines
- Add tests for new features
- Update documentation as needed
- Ensure Docker builds successfully
This project is licensed under the MIT License - see the LICENSE file for details.
- Issues: GitHub Issues
- Documentation: This README and inline code comments
- Community: Feel free to reach out for questions or suggestions
- Phi Framework for multi-agent capabilities
- Groq for fast LLM inference
- YFinance for financial data
- FastAPI for the web framework
- β Core functionality implemented
- β Docker containerization complete
- β CI/CD pipeline configured
- β Production deployment on Render
- π Ongoing improvements and feature additions
Built with β€οΈ by Adonpm
For the latest updates and announcements, please star β this repository!