
project_gex_code0
First agentic pipeline
Repository Info
About This Server
First agentic pipeline
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Financial Assistant Application
A comprehensive financial advisory system that provides personalized financial advice, investment opportunities, and account management based on user profiles and transaction history. Dataset: https://www.kaggle.com/datasets/priyamchoksi/credit-card-transactions-dataset
Table of Contents
- Overview
- Features
- Architecture
- Components
- Setup
- Usage
- Security
- Data Storage
- API Integration
Overview
The Financial Assistant is a Streamlit-based web application that combines AI-powered financial advice with user profile management and transaction analysis. It uses LangChain, Ollama, and Tavily Search to provide personalized financial recommendations.
Features
User Management
- Secure login and signup system
- User profile management
- Session-based authentication
- Profile persistence using YAML configuration
Financial Analysis
- Transaction history analysis
- Account summary generation
- Spending pattern analysis
- Category-based expense tracking
Investment Research
- Location-specific investment opportunities
- Risk tolerance-based recommendations
- Market trend analysis
- Tax implications and benefits
AI-Powered Advice
- Personalized financial recommendations
- Context-aware responses
- Conversation history tracking
- Real-time streaming responses
Architecture
Core Components
-
User Interface (Streamlit)
- Interactive web interface
- Real-time chat interface
- Profile management forms
- Document upload system
-
AI Engine
- LangChain for agent management
- Ollama for LLM processing
- Tavily Search for investment research
- Custom callback handlers
-
Data Management
- YAML-based configuration
- Transaction data processing
- Investment records storage
- Conversation history tracking
Data Flow
- User input → Streamlit interface
- Query processing → LangChain agent
- Tool execution → External APIs
- Response generation → LLM
- Result storage → Local files
- Response display → User interface
Components
Main Application (main.py)
- Streamlit application setup
- User authentication
- Profile management
- Financial advice generation
- Investment opportunity search
- Conversation handling
Server Component (mcp_server.py)
- FastAPI server implementation
- API key validation
- Query processing
- Context-aware responses
Configuration (config.yaml)
- User credentials
- Profile information
- System settings
Setup
Prerequisites
- Python 3.8+
- Ollama running locally
- Tavily API key
- Required Python packages (see requirements.txt)
Installation
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Create
.envfile with API keys:TAVILY_API_KEY=your_api_key - Start Ollama service
- Run the application:
streamlit run main.py - setup using uv and run:
uv run python -m streamlit run main.py
Usage
User Authentication
- Sign up with profile information
- Log in with credentials
- Update profile as needed
Financial Advice
- Enter queries in the chat interface
- Upload financial documents
- View personalized recommendations
- Track conversation history
Investment Research
- Search for opportunities
- View location-specific results
- Analyze market trends
- Get personalized recommendations
Security
Authentication
- Password hashing using SHA-256
- Session-based authentication
- API key validation
- Secure credential storage
Data Protection
- Environment variable management
- Secure file handling
- Input validation
- Error handling
Data Storage
User Data
- Stored in
config.yaml - Encrypted passwords
- Profile information
- Session data
Investment Records
- Stored in
investment_records/ - JSON format
- Timestamp-based naming
- Complete context storage
Transaction Data
- CSV file processing
- In-memory caching
- Real-time analysis
- Historical tracking
- create a folder data/###.csv (Download from https://www.kaggle.com/datasets/priyamchoksi/credit-card-transactions-dataset)
API Integration
Tavily Search
- Investment research
- Market analysis
- Location-specific queries
- Real-time data retrieval
Ollama
- LLM processing
- Response generation
- Context management
- Streaming support
FastAPI Server
- Query processing
- Context handling
- Response formatting
- API key validation
Quick Start
Clone the repository
git clone https://github.com/krisadi/project_gex_code0Install dependencies
cd project_gex_code0
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.