Esta página se muestra en inglés. Una traducción al español está en curso.
ScriptsJul 21, 2026·2 min de lectura

LLM Council — Multi-Model Answer Aggregation by Karpathy

Open-source framework that queries multiple LLMs in parallel and aggregates their answers to produce higher-quality, more reliable responses.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
LLM Council
Comando de instalación directa
npx -y tokrepo@latest install 5c5fc87c-8523-11f1-9bc6-00163e2b0d79 --target codex

Ejecutar después de confirmar el plan con dry-run.

Introduction

LLM Council, created by Andrej Karpathy, sends your question to multiple LLMs simultaneously and synthesizes their responses into a single, higher-quality answer. The approach leverages model diversity to reduce hallucinations and improve factual accuracy.

What LLM Council Does

  • Queries multiple LLMs in parallel with the same prompt
  • Collects and compares responses across model providers
  • Synthesizes a consensus answer from diverse model outputs
  • Highlights areas of agreement and disagreement between models
  • Supports configurable model lists and API endpoints

Architecture Overview

The system dispatches a user query to a configurable set of LLM APIs concurrently using async Python. Responses are collected and fed into a synthesis stage where a judge model evaluates, reconciles, and merges the answers. The final output represents a consensus view weighted by response quality and inter-model agreement.

Self-Hosting & Configuration

  • Requires Python 3.10+ with asyncio support
  • API keys for each model provider set via environment variables
  • Model list is configurable in a JSON or YAML config file
  • Supports OpenAI, Anthropic, Google, and OpenAI-compatible endpoints
  • Rate limiting and retry logic are built into the dispatcher

Key Features

  • Parallel multi-model querying for fast aggregate answers
  • Automatic disagreement detection across model responses
  • Configurable synthesis strategy (majority vote, judge model, merge)
  • Cost tracking across multiple API providers
  • Extensible to any OpenAI-compatible endpoint including local models

Comparison with Similar Tools

  • LiteLLM — unified LLM proxy; Council adds multi-model aggregation and synthesis
  • Portkey AI Gateway — routing and caching; Council focuses on answer quality via consensus
  • OpenRouter — model access unification; Council runs models in parallel and merges results
  • Manifest — cost-optimized routing; Council prioritizes answer accuracy over cost

FAQ

Q: How many models should I use? A: Three to five models provide good diversity without excessive cost; diminishing returns above seven.

Q: Does it work with local models? A: Yes, any OpenAI-compatible API endpoint works, including Ollama and vLLM.

Q: How is the final answer selected? A: A configurable synthesis step uses a judge model to merge and reconcile the best parts of each response.

Q: What is the latency impact? A: Queries run in parallel, so total latency is roughly that of the slowest model plus synthesis time.

Sources

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados