Plugin for the `llm` CLI tool orchestrating multiple LLMs
Top 95.5% on sourcepulse
This project provides a plugin for the llm
package to orchestrate multiple Large Language Models (LLMs) for complex problem-solving. It addresses the challenge of leveraging diverse LLM strengths by enabling iterative refinement and consensus-building among models, benefiting users who need robust, validated outputs for intricate tasks.
How It Works
The system orchestrates multiple LLMs by sending prompts to a configurable set of models, potentially running multiple instances of each. Responses are then synthesized, and a confidence score is calculated. If the confidence is below a threshold or minimum iteration count, an arbiter model is used to refine the synthesis and prepare for the next iteration, repeating until confidence is met or maximum iterations are reached. This iterative consensus approach aims to overcome individual model limitations and achieve higher quality, more reliable results.
Quick Start & Requirements
llm
via uv tool install llm
or pipx install llm
.llm install llm-consortium
.claude-3-opus-20240229
, claude-3-sonnet-20240229
, gpt-4
, and gemini-pro
.Highlighted Details
gpt-4o:2
).Maintenance & Community
llm
ecosystem.Licensing & Compatibility
Limitations & Caveats
The effectiveness is dependent on the quality of the underlying LLM APIs and the configuration of parameters like confidence thresholds and iteration counts. The default models require API access and associated costs.
1 week ago
1 week