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 …