Skip to content

Grar00t/GraTech-Nexus-Prime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 GraTech Nexus Prime

The Three-Lobe AI Architecture

Python FastAPI Azure License

Sovereign AI Platform - Data Never Leaves Your Infrastructure


🎯 Vision

"Building AI systems that think, learn, and evolve autonomously β€” without dependency on external APIs."

β€” Suliman Alshammari


🧠 The Three-Lobe Architecture

Inspired by the human brain, engineered for machines.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                       THREE-LOBE AI ARCHITECTURE                        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                                         β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚   FRONTAL LOBE   │◄─────────────────────────►│  EXECUTIVE LOBE  β”‚   β”‚
β”‚  β”‚   (Reasoning)    β”‚                           β”‚  (Orchestrator)  β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                           β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β”‚           β”‚                                              β”‚              β”‚
β”‚           β”‚         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                 β”‚              β”‚
β”‚           └────────►│   LIMBIC LOBE    β”‚β—„β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β”‚
β”‚                     β”‚   (Emotional)    β”‚                                β”‚
β”‚                     β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                β”‚
β”‚                              β”‚                                          β”‚
β”‚                     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”                                β”‚
β”‚                     β”‚  TEMPORAL LOBE   β”‚                                β”‚
β”‚                     β”‚   (Memory)       β”‚                                β”‚
β”‚                     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                β”‚
β”‚                                                                         β”‚
β”‚  ════════════════════════════════════════════════════════════════════  β”‚
β”‚                          SMART MODEL ROUTER                             β”‚
β”‚         πŸ‡ΈπŸ‡¦ Arabic β†’ Claude | πŸ’» Code β†’ GPT-4o | ⚑ Fast β†’ Gemini       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ—οΈ Architecture Components

1. Executive Lobe (The Orchestrator)

- Manages information flow between lobes
- Coordinates cognitive processes
- Ensures goal achievement
- Handles task prioritization

2. Sensory Lobe (The Filter)

- Input sanitization
- PII protection & privacy
- Context preparation
- Data normalization

3. Cognitive Lobe (The Cortex)

- Azure AI Foundry integration
- Smart Model Routing:
  β†’ Arabic content    β†’ Claude 3.5 Sonnet
  β†’ Code generation   β†’ GPT-4o
  β†’ Deep analysis     β†’ DeepSeek R1
  β†’ General tasks     β†’ Gemini 1.5 Pro

πŸš€ Quick Start

# Clone the repository
git clone https://github.com/Grar00t/GraTech-Nexus-Prime.git
cd GraTech-Nexus-Prime

# Install dependencies
pip install -r requirements.txt

# Configure Azure (edit .env or app/core/config.py)
cp .env.example .env

# Run the Nexus
python -m app.main

# Access API documentation
# http://localhost:8000/docs

πŸ“‘ API Endpoints

Chat with Smart Router

POST /v1/chat
Content-Type: application/json

{
  "message": "Write a Python function to sort a list",
  "context": "programming"
}

Response automatically routes to the best model based on content analysis.

Direct Model Access

POST /v1/models/{model_name}/chat

System Health

GET /health

βš™οΈ Configuration

# Azure AI Foundry
AZURE_ENDPOINT=https://your-endpoint.azure.com
AZURE_API_KEY=your-key

# Model Deployments
GPT4O_DEPLOYMENT=gpt-4o
CLAUDE_DEPLOYMENT=claude-35-sonnet
GEMINI_DEPLOYMENT=gemini-15-pro
DEEPSEEK_DEPLOYMENT=deepseek-r1

# Memory Settings
MEMORY_PERSISTENCE=true
MEMORY_PATH=./data/memory

πŸ”’ Sovereign AI Principles

Principle Implementation
Data Sovereignty All data stays within your infrastructure
No External Dependencies Works offline after initial setup
Full Audit Trail Complete logging of all AI decisions
Customizable Routing Define your own model selection rules

πŸ“Š Performance

Metric Value
Response Time <500ms average
Concurrent Users 1000+
Memory Efficiency Optimized caching
Uptime Target 99.9%

πŸ›£οΈ Roadmap

  • Three-Lobe Architecture core
  • Smart Model Router
  • Azure AI integration
  • Local model support (Ollama)
  • Voice interface
  • Multi-modal processing
  • Distributed memory system

πŸ“„ License

MIT License - Built by Suliman Alshammari


The Future of Autonomous AI

Built with ❀️ by GraTech

GitHub

About

🧠 Three-Lobe AI Architecture (Executive/Sensory/Cognitive) β€” Sovereign AI core. Arabic-first. FastAPI. PDPL compliant.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors