A comprehensive multi-modal, multi-agent AI framework designed for intelligent data processing, analysis, and insights generation. Built with modern web technologies, Re-Zero leverages specialized AI agents powered by OpenAI to transform raw data into actionable business intelligence.
Re-Zero is an enterprise-grade AI platform that processes various types of data through a sophisticated multi-agent system. Whether you're analyzing financial reports, summarizing news articles, extracting structured data from documents, or generating strategic recommendations, Re-Zero provides intelligent automation and insights.
- Data Ingestion: Upload text files, PDFs, URLs, or paste content directly
- Agent Selection: Choose from specialized AI agents based on your analysis needs
- Intelligent Processing: Agents work independently or collaboratively to analyze your data
- Results & Insights: Get structured results, visualizations, and actionable recommendations
- Task Management: Track progress, view results, and manage your analysis pipeline
- Financial Analysis: Analyze company financials, calculate ratios, assess risk
- Document Processing: Extract structured data from PDFs, reports, and documents
- News Intelligence: Summarize articles, analyze sentiment, track trends
- Strategic Planning: Generate recommendations, compare options, scenario analysis
- Data Extraction: Parse tables, entities, and key-value pairs from unstructured data
- Multi-Agent Architecture: 5 specialized AI agents for different analytical tasks
- Real-time Processing: Asynchronous task processing with live status updates
- Multi-format Data Ingestion: Support for text, URLs, PDFs, and file uploads
- Intelligent Analysis: Advanced data extraction, analysis, and insights generation
- Modern Web Interface: Responsive React frontend with intuitive user experience
- Secure Authentication: JWT-based user management with role-based access
- Comprehensive Testing: Unit, integration, and end-to-end test coverage
-
Data Extraction Agent π
- Extracts structured data from unstructured text, PDFs, and documents
- Parses tables, entities, key-value pairs, and financial data
- Supports multiple extraction types: general, tables, entities, structured, financial
- Returns JSON-formatted data ready for further analysis
-
Financial Analysis Agent π°
- Performs comprehensive financial ratio analysis and calculations
- Conducts trend analysis, forecasting, and risk assessment
- Provides valuation models and investment recommendations
- Supports various analysis types: comprehensive, ratios, trends, risk, valuation
-
News Summarization Agent π°
- Summarizes news articles, reports, and long-form content
- Performs sentiment analysis and extracts key insights
- Generates executive summaries and actionable recommendations
- Supports multiple summary types: comprehensive, brief, detailed, executive
-
Analyst Support Agent π―
- Provides comparative analysis and pros/cons evaluation
- Conducts scenario analysis and sensitivity testing
- Generates strategic recommendations and decision support
- Offers multi-perspective analysis for complex business decisions
-
Recommender Agent π
- Creates personalized recommendations based on data patterns
- Implements content-based and collaborative filtering algorithms
- Provides hybrid recommendation systems for various use cases
- Generates actionable suggestions and next steps
-
Upload & Ingest Data
User uploads file/URL β System validates β Content extracted β Stored in MongoDB -
Create Analysis Task
Select agents β Configure parameters β Task queued β Processing begins -
Agent Processing
Each agent processes data independently β OpenAI API calls β Results generated -
Result Aggregation
Individual results collected β Meta-agent coordination β Final output generated -
Delivery & Visualization
Results stored β Frontend updates β User views insights β Download/export available
- Independent Processing: Each agent works on the same data independently
- Meta-Agent Coordination: Orchestrates multiple agents for complex analysis
- Result Synthesis: Combines outputs from multiple agents for comprehensive insights
- Quality Assurance: Built-in validation and error handling for reliable results
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β React Client β β Express Server β β MongoDB β
β βββββΊβ βββββΊβ β
β - Dashboard β β - REST API β β - Users β
β - Upload β β - Auth β β - Tasks β
β - Tasks β β - Agents β β - Results β
β - Reports β β - Meta-Agent β β - Audit Logs β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β
βΌ
βββββββββββββββββββ
β OpenAI API β
β β
β - GPT Models β
β - Embeddings β
β - Retry Logic β
βββββββββββββββββββ
- Node.js with Express.js
- MongoDB with Mongoose ODM
- OpenAI API for AI capabilities
- JWT for authentication
- Jest for testing
- Winston for logging
- React 18 with functional components
- React Router for navigation
- React Query for data fetching
- Tailwind CSS for styling
- React Hook Form for forms
- Cypress for E2E testing
- Node.js 18+
- MongoDB 6.0+
- OpenAI API key
- Git
π For detailed installation instructions, see INSTALLATION.md π For production deployment (Render/Vercel/Docker), see DEPLOYMENT.md
- Node.js 18+ - Download here
- MongoDB 6.0+ - Download here or use MongoDB Atlas
- OpenAI API Key - Get your key here
- Git - Download here
git clone <repository-url>
cd re-zeroCreate environment files for both client and server:
# Server environment
cp server/.env.example server/.env
# Client environment
cp client/.env.example client/.envConfigure your environment variables (see INSTALLATION.md for details).
# Install server dependencies
cd server
npm install
# Install client dependencies
cd ../client
npm install# Using Docker (recommended)
docker run -d -p 27017:27017 --name mongodb mongo:6.0
# Or using local installation
mongod# Terminal 1: Start the server
cd server
npm run dev
# Terminal 2: Start the client
cd client
npm run dev- Frontend: http://localhost:3000
- Backend API: http://localhost:4000
- API Health Check: http://localhost:4000/health
- Register a new account at http://localhost:3000/register
- Login to access the dashboard
- Upload a document or paste text content
- Select AI agents for analysis
- View results and insights
npm testcd server
npm test # Unit tests
npm run test:coverage # With coverage
npm run lint # Lintingcd client
npm test # Unit tests
npm run test:coverage # With coverage
npm run lint # Lintingnpm run test:e2e # Run E2E tests# Register
POST /api/v1/auth/register
{
"name": "John Doe",
"email": "[email protected]",
"password": "password123"
}
# Login
POST /api/v1/auth/login
{
"email": "[email protected]",
"password": "password123"
}
# Get Profile
GET /api/v1/auth/profile
Authorization: Bearer <token># Upload Text
POST /api/v1/ingest
{
"type": "text",
"content": "Your text content here",
"metadata": {
"title": "Document Title"
}
}
# Upload URL
POST /api/v1/ingest
{
"type": "url",
"content": "https://example.com/article"
}
# Upload File
POST /api/v1/ingest/upload
Content-Type: multipart/form-data
file: <file># Create Task
POST /api/v1/tasks
{
"ingestId": "ingest_id",
"name": "Analysis Task",
"selectedAgents": ["data_extraction", "financial_analysis"],
"parameters": {}
}
# Get Task
GET /api/v1/tasks/:id
# List Tasks
GET /api/v1/tasks?status=completed&priority=high
# Get Available Agents
GET /api/v1/tasks/agents/available| Variable | Description | Default |
|---|---|---|
OPENAI_API_KEY |
OpenAI API key | Required |
OPENAI_MODEL |
OpenAI model to use | gpt-4o-mini |
MONGODB_URI |
MongoDB connection string | mongodb://localhost:27017/rezero |
PORT |
Server port | 4000 |
JWT_SECRET |
JWT signing secret | Required |
NODE_ENV |
Environment mode | development |
RATE_LIMIT_WINDOW_MS |
Rate limit window | 900000 (15 min) |
RATE_LIMIT_MAX_REQUESTS |
Max requests per window | 100 |
Each agent can be configured with custom parameters:
{
"data_extraction": {
"extractionType": "general", // general, tables, entities, structured, financial
"includeMetadata": true
},
"financial_analysis": {
"analysisType": "comprehensive", // comprehensive, ratios, trends, risk, valuation
"includeProjections": true,
"riskAssessment": true
},
"news_summarization": {
"summaryType": "comprehensive", // comprehensive, brief, detailed, executive
"includeSentiment": true,
"maxLength": 500
}
}# Build client
cd client
npm run build
# Start server in production
cd server
NODE_ENV=production npm start# Dockerfile example
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN cd client && npm run build
EXPOSE 4000
CMD ["npm", "start"]- Set up MongoDB cluster
- Configure environment variables
- Set up reverse proxy (nginx)
- Configure SSL certificates
- Set up monitoring and logging
- JWT-based authentication
- Rate limiting on all endpoints
- Input validation and sanitization
- CORS configuration
- Helmet.js security headers
- File upload restrictions
- Environment variable protection
- Winston logging with multiple transports
- Request/response logging
- Error tracking and reporting
- Performance monitoring
- Health check endpoints
- 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 ESLint configuration
- Write tests for new features
- Update documentation
- Follow conventional commit messages
- Ensure all tests pass
This project is licensed under the MIT License - see the LICENSE file for details.
-
MongoDB Connection Error
- Ensure MongoDB is running
- Check connection string in
.env - Verify network connectivity
-
OpenAI API Errors
- Verify API key is correct
- Check API quota and billing
- Ensure model is available
-
Port Already in Use
- Change PORT in
.env - Kill existing processes
- Use different ports for dev/prod
- Change PORT in
-
Build Failures
- Clear node_modules and reinstall
- Check Node.js version compatibility
- Verify all environment variables
- Check the Issues page
- Review the API documentation
- Check server logs for detailed error messages
- Ensure all dependencies are installed correctly
- Redis integration for job queues
- Additional AI model providers
- Real-time WebSocket updates
- Advanced analytics dashboard
- Plugin system for custom agents
- Multi-tenant support
- API rate limiting per user
- Advanced caching strategies
- OpenAI for providing the AI capabilities
- The React and Node.js communities
- MongoDB for the database solution
- All contributors and testers
Re-Zero AI Framework - Empowering intelligent data processing with multi-agent AI systems.