Logo Lanfrica

hamza12225/Morocco-Regional-Investment-Chatbot-

Domain:

socioeconomic

Record type:

software
Creator:
ham
Host:
Morocco Regional Investment Chatbot # Morocco Investment Assistant πŸ‡²πŸ‡¦ A sophisticated AI-powered investment advisory system that provides comprehensive guidance for investing in Morocco. Built with LangChain, FastAPI, and DeepSeek AI, this system features specialized agents for regional analysis, regulatory compliance, and financial planning. ## ✨ Features ### Multi-Agent System - **Regional Expert**: Analyzes regions, sectors, infrastructure, and workforce - **Regulatory Specialist**: Handles legal processes, permits, and compliance - **Financial Advisor**: Provides cost analysis, incentives, and financing options ### Advanced AI Capabilities - πŸ€– **DeepSeek AI Integration** for intelligent responses - πŸ” **Vector Search** with Chroma DB for accurate information retrieval - 🧠 **Memory Management** maintains conversation context - πŸ› οΈ **LangChain Tools** for specialized calculations and data access - πŸ“Š **Ensemble Retrieval** combining vector and keyword search ### Comprehensive Knowledge Base - Latest Morocco Investment Charter (2023-2026) - Regional economic profiles and sector analysis - Investment incentives and tax benefits - Regulatory processes and timelines - Cost calculations and ROI analysis ## πŸš€ Quick Start ### Prerequisites - Python 3.8+ - Redis server - DeepSeek API key ### Installation 1. **Clone the repository** ```bash git clone github.com cd Morocco-Regional-Investment-Chatbot ``` 2. **Create and activate virtual environment** ```bash python -m venv venv # On Windows venv\Scripts\activate # On macOS/Linux source venv/bin/activate ``` 3. **Install dependencies** ```bash pip install -r requirements.txt ``` 4. **Set up environment variables** Create a `.env` file in the project root: ```env DEEPSEEK_API_KEY=your_deepseek_api_key_here DEEPSEEK_BASE_URL=api.deepseek.com REDIS_URL=redis://localhost:6379 ``` 5. **Start Redis server** ```bash # On macOS with Homebrew brew services start redis # On Ubuntu/Debian sud …