Back to Projects
Case Study

Consilium – Multi-Model AI Council

A Next.js AI chat application that provides a council-style AI assistant experience, generating responses based on multiple perspectives through Gradio's Karpathy LLM Council.

Next.js React Tailwind AI IndexedDB Groq Gradio

Project Overview

Consilium (Arabic: مجلس) is a Next.js AI chat application that provides a multi-model council-style AI assistant experience. The app allows users to have conversations with an AI "council" that generates responses based on multiple perspectives, aggregated through Gradio's Karpathy LLM Council. Users can engage in rich conversations that benefit from diverse AI viewpoints, with persistent storage and automatic conversation organization.

Problem & Solution

Problem:

Users often struggle to get comprehensive answers from single AI models, which may have blind spots or limited perspectives. Traditional chat interfaces provide linear conversations without capturing the nuanced decision-making process that comes from considering multiple viewpoints.

Solution:

Consilium addresses this by implementing a "council of experts" approach:

Key Features

Core AI Features

Multi-Model AI Council

Integrates with Gradio's Karpathy LLM Council to generate responses from multiple AI models, providing diverse perspectives.

Conversation Management

Create, switch, delete, and auto-rename conversations seamlessly.

Real-time Chat Interface

Rich markdown rendering with GFM support and LaTeX math using KaTeX.

IndexedDB Storage

Large capacity local storage for persistent conversation history.

Responsive Design

Desktop sidebar and mobile drawer layouts for all device sizes.

Bilingual Support

Full Arabic RTL support with CSS flexbox considerations.

Advanced Features

Two-Stage Memory

Groq LLM summarizes conversation history into memory (max 150 words).

URL-Based Sharing

Share conversations via URL-based conversation sharing.

Tech Stack

Next.js 16.1.7 React 19.2.3 Tailwind CSS v4 daisyUI v5.5.19 Groq SDK Gradio Client react-markdown remark-gfm remark-math rehype-katex IndexedDB ESLint 9

Architecture Highlights

Challenges & Solutions

Screenshots

Consilium Homepage Screenshot
Council Response Screenshot

Future Improvements

Try the App GitHub Repository