Skip to content

D.Coder LLM Platform - Enterprise-grade, AI-native infrastructure for building and deploying Large Language Model applications

Notifications You must be signed in to change notification settings

D-Coder-ai/D.Coder

Repository files navigation

D.Coder LLM Platform

Enterprise-grade, AI-native infrastructure for building and deploying Large Language Model applications

License Node Python Nx

🎯 Overview

D.Coder is a comprehensive LLM platform designed specifically for Deloitte's insurance industry needs, with a focus on Guidewire Insurance Suite applications. The platform provides:

  • 70% reduction in LLM costs through semantic caching and prompt compression
  • 100% open-source stack with no vendor lock-in
  • Enterprise-ready with multi-tenancy, SOC2 compliance, and full audit trails
  • Deloitte IP protection with encrypted prompts accessible only at runtime

πŸ—οΈ Architecture

Hybrid Gateway Design

  • Kong Gateway (Port 8000): Platform service routing, rate limiting, observability
  • LiteLLM Proxy (Port 4000): LLM-native routing with Redis caching, prompt compression, cost-based routing

Core Services

Service Port Description
Platform API 8082 Multi-tenancy, authentication, quotas, governance
Agent Orchestrator 8083 Durable workflows with Temporal & LangGraph
Knowledge & RAG 8084 Document processing, semantic search (pgvector β†’ Milvus)
Integrations 8085 JIRA, Bitbucket, Confluence connectors
LLMOps 8081 Prompt engineering, A/B testing, evaluation (Agenta + MLFlow)

Infrastructure

  • PostgreSQL (5432), Redis (6379), MinIO (9000/9001), NATS (4222)
  • Temporal (7233), Logto (3001/3002), Flagsmith (8090)
  • Prometheus (9090), Grafana (3005), Loki (3100)

πŸš€ Quick Start

Prerequisites

  • Node.js 20+ and pnpm 8+
  • Docker & Docker Compose
  • Python 3.11+
  • Git

Installation

# Clone the repository
git clone https://github.com/deloitte/dcoder-platform.git
cd dcoder-platform

# Install dependencies
pnpm install

# Copy environment template
cp .env.example .env
# Edit .env with your API keys

# Start infrastructure
make infra-up

# Start full stack (optional)
docker-compose --profile full up -d

Verify Installation

# Check infrastructure status
make status

# View logs
make infra-logs

# Test connectivity
curl http://localhost:8000/health  # Kong
curl http://localhost:4000/health  # LiteLLM
curl http://localhost:8082/health  # Platform API

πŸ“ Repository Structure

D.Coder/
β”œβ”€β”€ services/               # All application services
β”‚   β”œβ”€β”€ kong-gateway/       # Kong platform gateway
β”‚   β”œβ”€β”€ litellm-proxy/      # LiteLLM LLM gateway
β”‚   β”œβ”€β”€ platform-api/       # Platform API service
β”‚   β”œβ”€β”€ agent-orchestrator/ # Agent orchestration
β”‚   β”œβ”€β”€ knowledge-rag/      # RAG service
β”‚   β”œβ”€β”€ integrations/       # External integrations
β”‚   β”œβ”€β”€ llmops/            # LLMOps platform
β”‚   └── client-apps/       # Client applications
β”‚
β”œβ”€β”€ packages/              # Shared libraries
β”‚   β”œβ”€β”€ python/            # Python packages
β”‚   β”‚   └── dcoder-common/ # Shared Python utilities
β”‚   └── typescript/        # TypeScript packages
β”‚       └── dcoder-sdk/    # Platform SDK
β”‚
β”œβ”€β”€ infrastructure/        # Infrastructure as code
β”‚   β”œβ”€β”€ docker-compose.base.yml
β”‚   β”œβ”€β”€ postgres/
β”‚   β”œβ”€β”€ redis/
β”‚   β”œβ”€β”€ observability/
β”‚   └── ...
β”‚
β”œβ”€β”€ tools/                 # Build tools and scripts
β”‚   β”œβ”€β”€ scripts/           # Helper scripts
β”‚   β”œβ”€β”€ docker/            # Docker utilities
β”‚   └── ci/                # CI/CD scripts
β”‚
β”œβ”€β”€ docs/                  # Documentation
β”œβ”€β”€ .github/               # GitHub workflows & CODEOWNERS
β”œβ”€β”€ nx.json                # Nx workspace config
β”œβ”€β”€ package.json           # Root package.json
β”œβ”€β”€ pnpm-workspace.yaml    # pnpm workspace
β”œβ”€β”€ docker-compose.yml     # Root orchestrator
└── Makefile              # Developer commands

πŸ’» Development

Common Commands

# Infrastructure management
make infra-up              # Start infrastructure
make infra-down            # Stop infrastructure
make infra-logs            # View infrastructure logs

# Service management
make service-up SERVICE=platform-api    # Start specific service
make service-logs SERVICE=platform-api  # View service logs
make dev-up                            # Start full stack

# Development workflows
make build-all             # Build all services
make test-all              # Run all tests
make lint-all              # Lint all services

# Nx commands
pnpm nx graph              # View dependency graph
pnpm nx affected --target=test    # Test affected services
pnpm nx affected --target=build   # Build affected services

# Cleanup
make clean                 # Clean build artifacts
make reset                 # Full reset (WARNING: deletes data!)

Working on a Service

# Option 1: Using make
make service-up SERVICE=platform-api

# Option 2: Direct docker-compose
cd services/platform-api
docker-compose up

# Option 3: Full stack
docker-compose --profile full up -d

Creating a Changeset

pnpm changeset

πŸ§ͺ Testing

# Test specific service
pnpm nx test platform-api

# Test all affected by changes
pnpm nx affected --target=test

# Test everything
make test-all

πŸ“Š Monitoring & Observability

πŸ” Security

Deloitte IP Protection

  • System prompts encrypted using envelope encryption (AES-GCM)
  • Runtime-only decryption
  • Complete audit trails with cryptographic signatures
  • Master control for access revocation

Authentication

  • SSO/OIDC integration via Logto
  • ABAC (Attribute-Based Access Control) with Casbin
  • Multi-tenancy at org/group/user levels
  • Feature flags and quota enforcement

πŸ“– Documentation

πŸ› οΈ Technology Stack

  • Gateways: Kong 3.8 OSS, LiteLLM Proxy
  • Backend: FastAPI (Python)
  • Orchestration: Temporal, NATS JetStream
  • LLM Ops: Agenta, MLFlow, Langfuse
  • RAG: LlamaIndex, pgvector (MVP) β†’ Milvus (scale)
  • UI: Open WebUI, Next.js
  • Observability: Prometheus, Grafana, Loki, OpenTelemetry
  • Auth: Logto / Keycloak
  • Build: Nx, pnpm workspaces

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

πŸ“ License

PROPRIETARY - Deloitte USI IGS. All rights reserved.

πŸ”— Links


Built with ❀️ by Deloitte USI IGS

About

D.Coder LLM Platform - Enterprise-grade, AI-native infrastructure for building and deploying Large Language Model applications

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •