Close Menu
techwavedispatch.com

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Faster Decoding with Any Assistant Model

    November 11, 2026

    [2505.04005] Iterative Orthogonalization Scaling Laws

    November 11, 2026

    Easily Build Fine-Tuning and Evaluation Datasets on the Hub — No Code Required

    November 11, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Faster Decoding with Any Assistant Model
    • [2505.04005] Iterative Orthogonalization Scaling Laws
    • Easily Build Fine-Tuning and Evaluation Datasets on the Hub — No Code Required
    • MammothDP: Private Boosted Decision Trees Ready for Trusted Hardware and Leakage-free Hyperparameters
    • On-Device Personal Assistant with a Sub-Billion-Parameter Agentic Language Model
    • Data-Driven Discovery of First Integrals via Backward Generation and Guided Reinforcement Learning
    • Hugging Face + PyCharm
    • Regularization Amplifies Subliminal Learning
    Facebook X (Twitter) Instagram
    techwavedispatch.com
    Subscribe
    Wednesday, November 11
    • Home
    • AI Tools & Software
    • Machine Learning
    • Generative AI
    • Robotics & Automation
    • Future Tech & Hardware
    • AI in Business
    • Ethics & Regulations
    • More
      • Gadgets & Smart Devices
      • Cybersecurity & AI
      • Tech Breakthroughs
    techwavedispatch.com
    Home»AI Tools & Software»Consilium: When Multiple LLMs Collaborate
    AI Tools & Software

    Consilium: When Multiple LLMs Collaborate

    adminBy adminNovember 9, 2026No Comments9 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Consilium: When Multiple LLMs Collaborate
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Picture this: four AI experts sitting around a poker table, debating your toughest decisions in real-time. That’s exactly what Consilium, the multi-LLM platform I built during the Gradio Agents & MCP Hackathon, does. It lets AI models discuss complex questions and reach consensus through structured debate.

    The platform works both as a visual Gradio interface and as an MCP (Model Context Protocol) server that integrates directly with applications like Cline (Claude Desktop had issues as the timeout could not be adjusted). The core idea was always about LLMs reaching consensus through discussion; that’s where the name Consilium came from. Later, other decision modes like majority voting and ranked choice were added to make the collaboration more sophisticated.



    From Concept to Architecture

    This wasn’t my original hackathon idea. I initially wanted to build a simple MCP server to talk to my projects in RevenueCat. But I reconsidered when I realized a multi-LLM platform where these models discuss questions and return well-reasoned answers would be far more compelling.

    The timing turned out to be perfect. Shortly after the hackathon, Microsoft published their AI Diagnostic Orchestrator (MAI-DxO), which is essentially an AI doctor panel with different roles like “Dr. Challenger Agent” that iteratively diagnose patients. In their setup with OpenAI o3, they correctly solved 85.5% of medical diagnosis benchmark cases, while practicing physicians achieved only 20% accuracy. This validates exactly what Consilium demonstrates: multiple AI perspectives collaborating can dramatically outperform individual analysis.

    After settling on the concept, I needed something that worked as both an MCP server and an engaging Hugging Face space demo. Initially I considered using the standard Gradio Chat component, but I wanted my submission to stand out. The idea was to seat LLMs around a table in a boardroom with speech bubbles, which should capture the collaborative discussion while also making it visually engaging. As I did not manage to style a standard table nicely so it was actually recognized as a table, I went for a poker-style roundtable. This approach also let me submit to two hackathon tracks by building a custom Gradio component and MCP server.



    Building the Visual Foundation

    The custom Gradio component became the heart of the submission; the poker-style roundtable where participants sit and display speech bubbles showing their responses, thinking status, and research activities immediately caught the eye of anyone visiting the space. The component development was remarkably smooth thanks to Gradio’s excellent developer experience, though I did encounter one documentation gap around PyPI publishing that led to my first contribution to the Gradio project.

    
    roundtable = consilium_roundtable(
        label="AI Expert Roundtable",
        label_icon="https://huggingface.co/front/assets/huggingface_logo-noborder.svg",
        value=json.dumps({
            "participants": [],
            "messages": [],
            "currentSpeaker": None,
            "thinking": [],
            "showBubbles": [],
            "avatarImages": avatar_images
        })
    )
    

    The visual design proved robust throughout the hackathon; after the initial implementation, only features like user-defined avatars and center table text were added, while the core interaction model remained unchanged.

    If you are interested in creating your own custom Gradio component you should take a look at Custom Components in 5 minutes and yes the title does not lie; it literally only takes 5 minutes for the basic setup.



    Session State Management

    The visual roundtable maintains state through a session-based dictionary system where each user gets isolated state storage via user_sessions[session_id]. The core state object tracks participants, messages, currentSpeaker, thinking, and showBubbles arrays that are updated through update_visual_state() callbacks. When models are thinking, speaking, or research is being executed, the engine pushes incremental state updates to the frontend by appending to the messages array and toggling speaker/thinking states, creating the real-time visual flow without complex state machines – just direct JSON state mutations synchronized between backend processing and frontend rendering.



    Making LLMs Actually Discuss

    While implementing, I realized there was no real discussion happening between the LLMs because they lacked clear roles. They received the full context of ongoing discussions but didn’t know how to engage meaningfully. I introduced distinct roles to create productive debate dynamics, which, after a few tweaks, ended up being like this:

    self.roles = {
        'standard': "Provide expert analysis with clear reasoning and evidence.",
        'expert_advocate': "You are a PASSIONATE EXPERT advocating for your specialized position. Present compelling evidence with conviction.",
        'critical_analyst': "You are a RIGOROUS CRITIC. Identify flaws, risks, and weaknesses in arguments with analytical precision.",
        'strategic_advisor': "You are a STRATEGIC ADVISOR. Focus on practical implementation, real-world constraints, and actionable insights.",
        'research_specialist': "You are a RESEARCH EXPERT with deep domain knowledge. Provide authoritative analysis and evidence-based insights.",
        'innovation_catalyst': "You are an INNOVATION EXPERT. Challenge conventional thinking and propose breakthrough approaches."
    }
    

    This solved the discussion problem but raised a new question: how to determine consensus or identify the strongest argument? I implemented a lead analyst system where users select one LLM to synthesize the final result and evaluate whether consensus was reached.

    I also wanted users to control communication structure. Beyond the default full-context sharing, I added two alternative modes:

    • Ring: Each LLM only receives the previous participant’s response  
    • Star: All messages flow through the lead analyst as a central coordinator

    Finally, discussions need endpoints. I implemented configurable rounds (1-5), with testing showing that more rounds increase the likelihood of reaching consensus (though at higher computational cost).



    LLM Selection and Research Integration

    The current model selection includes Mistral Large, DeepSeek-R1, Meta-Llama-3.3-70B, and QwQ-32B. While notable models like Claude Sonnet and OpenAI’s o3 are absent, this reflected hackathon credit availability and sponsor award considerations rather than technical limitations.

    self.models = {
        'mistral': {
            'name': 'Mistral Large',
            'api_key': mistral_key,
            'available': bool(mistral_key)
        },
        'sambanova_deepseek': {
            'name': 'DeepSeek-R1',
            'api_key': sambanova_key,
            'available': bool(sambanova_key)
        }
        ...
    }
    

    For models supporting function calling, I integrated a dedicated research agent that appears as another roundtable participant. Rather than giving models direct web access, this agent approach provides visual clarity about external resource availability and ensures consistent access across all function-calling models.

    def handle_function_calls(self, completion, original_prompt: str, calling_model: str) -> str:
        """UNIFIED function call handler with enhanced research capabilities"""
        
        message = completion.choices[0].message
        
        
        if not hasattr(message, 'tool_calls') or not message.tool_calls:
            return message.content
        
        
        for tool_call in message.tool_calls:
            function_name = tool_call.function.name
            arguments = json.loads(tool_call.function.arguments)
            
            
            result = self._execute_research_function(function_name, arguments, calling_model_name)
    

    The research agent accesses five sources: Web Search, Wikipedia, arXiv, GitHub, and SEC EDGAR. I built these tools on an extensible base class architecture for future expansion while focusing on freely embeddable resources.

    class BaseTool(ABC):
        """Base class for all research tools"""
        
        def __init__(self, name: str, description: str):
            self.name = name
            self.description = description
            self.last_request_time = 0
            self.rate_limit_delay = 1.0
        
        @abstractmethod
        def search(self, query: str, **kwargs) -> str:
            """Main search method - implemented by subclasses"""
            pass
        
        def score_research_quality(self, research_result: str, source: str = "web") -> Dict[str, float]:
            """Score research based on recency, authority, specificity, relevance"""
            quality_score = {
                "recency": self._check_recency(research_result),
                "authority": self._check_authority(research_result, source),
                "specificity": self._check_specificity(research_result),
                "relevance": self._check_relevance(research_result)
            }
            return quality_score
    

    Since research operations can be time-intensive, the speech bubbles display progress indicators and time estimates to maintain user engagement during longer research tasks.



    Discovering the Open Floor Protocol

    After the hackathon, Deborah Dahl introduced me to the Open Floor Protocol, which aligns perfectly with the roundtable approach. This protocol provides standardized JSON message formatting for cross-platform agent communication. Its key differentiator from other agent-to-agent protocols is that all agents maintain constant conversation awareness exactly like sitting at the same table. Another feature I have not seen with other protocols is that the floor manager can dynamically invite and remove agents from the floor and agents.

    The protocol’s interaction patterns map directly to Consilium’s architecture:

    • Delegation: Transferring control between agents  
    • Channeling: Passing messages without modification  
    • Mediation: Coordinating behind the scenes  
    • Orchestration: Multiple agents collaborating

    I’m currently integrating Open Floor Protocol support to allow users to add any OFP-compliant agents to their roundtable discussions. You can follow this development at: https://huggingface.co/spaces/azettl/consilium_ofp



    Lessons Learned and Future Implications

    The hackathon introduced me to multi-agent debate research I hadn’t previously encountered, including foundational studies like Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debate. The community experience was remarkable; all participants actively supported each other through Discord feedback and collaboration. Seeing my roundtable component integrated into another hackathon project was one of my highlights working on Consilium.

    I will continue to work on Consilium and with expanded model selection, Open Floor Protocol integration, and configurable agent roles, the platform could support virtually any multi-agent debate scenario imaginable.

    Building Consilium reinforced my conviction that AI’s future lies not just in more powerful individual models but in systems enabling effective AI collaboration. As specialized smaller language models become more efficient and resource-friendly, I believe roundtables of task-specific SLMs with dedicated research agents may provide compelling alternatives to general-purpose large language models for many use cases.

    collaborate Consilium LLMs Multiple
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    admin
    • Website

    Related Posts

    Faster Decoding with Any Assistant Model

    November 11, 2026

    Easily Build Fine-Tuning and Evaluation Datasets on the Hub — No Code Required

    November 11, 2026

    On-Device Personal Assistant with a Sub-Billion-Parameter Agentic Language Model

    November 11, 2026
    Leave A Reply Cancel Reply

    Top Posts

    NVIDIA Is Investigating Reports That CEO Jensen Huang Was The Target Of Chinese Spy Efforts

    November 8, 202619 Views

    Shaping & Monitoring Models through their Internal Representations

    November 7, 20263 Views

    If AGI is so close, why is everyone leaving? The neolabs and their bets

    November 6, 20263 Views

    F1 in Brazil: Drivers at their very best in tricky conditions

    November 9, 20262 Views
    Don't Miss
    AI Tools & Software

    Faster Decoding with Any Assistant Model

    By adminNovember 11, 20260

    TL;DR: Many LLMs such as gemma-2-9b and Mixtral-8x22B-Instruct-v0.1 lack a much smaller version to use…

    [2505.04005] Iterative Orthogonalization Scaling Laws

    November 11, 2026

    Easily Build Fine-Tuning and Evaluation Datasets on the Hub — No Code Required

    November 11, 2026

    MammothDP: Private Boosted Decision Trees Ready for Trusted Hardware and Leakage-free Hyperparameters

    November 11, 2026
    About Us

    Welcome to TechWave Dispatch

    At TechWave Dispatch, we bring you the latest news, insights, and developments from the ever-evolving world of technology. Our mission is to keep readers informed about the innovations shaping our digital future.

    From artificial intelligence and machine learning to cybersecurity, robotics, smart devices, and groundbreaking technologies, we cover the topics that matter in today's fast-moving tech landscape.

    Our Picks

    Faster Decoding with Any Assistant Model

    November 11, 2026

    [2505.04005] Iterative Orthogonalization Scaling Laws

    November 11, 2026

    Easily Build Fine-Tuning and Evaluation Datasets on the Hub — No Code Required

    November 11, 2026
    Most Popular

    Ramp data shows AI spending stalling just as Anthropic nears its IPO

    November 6, 20260 Views

    AI Companies Really, Really Want to Buy Your Work Files and Emails

    November 6, 20260 Views

    Who Controls Scientific Discovery? – O’Reilly

    November 6, 20260 Views
    Facebook X (Twitter) Instagram Pinterest
    • Terms and Conditions
    • Privacy Policy
    • Contact Us
    • About Us
    © 2026 TechWave Dispatch. All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.