rigging  by dreadnode

LLM interaction framework for production code

created 1 year ago
301 stars

Top 89.6% on sourcepulse

GitHubView on GitHub
Project Summary

Rigging is a lightweight Python framework designed to simplify and enhance the interaction with large language models (LLMs) in production code. It targets developers building LLM-powered applications, agents, and services, offering a flexible and efficient way to integrate various LLM providers and features.

How It Works

Rigging leverages a Pydantic-based approach for structured LLM interactions, allowing seamless use of Pydantic models alongside unstructured text. It defaults to LiteLLM for broad model compatibility and supports defining prompts as Python functions with type hints and docstrings. Key features include simplified tool use (even for models without native support), a connection string system for managing models and configurations, and integrated tracing via Logfire.

Quick Start & Requirements

  • Install via pip: pip install rigging
  • Supports models from LiteLLM, vLLM, and Hugging Face Transformers.
  • API keys can be passed via connection strings (e.g., gpt-4-turbo,api_key=...) or environment variables (e.g., OPENAI_API_KEY).
  • Documentation: docs.dreadnode.io

Highlighted Details

  • Defines prompts as Python functions with type hints and docstrings.
  • Supports structured output parsing with Pydantic models.
  • Offers integrated tracing with Logfire for monitoring.
  • Enables tool use for models that don't natively support it.
  • Provides async batching and iteration for scalable generation.

Maintenance & Community

Rigging is actively developed and used daily by its creators at dreadnode.

Licensing & Compatibility

The README does not specify a license.

Limitations & Caveats

The license is not explicitly stated in the README, which may pose a concern for commercial or closed-source integration.

Health Check
Last commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
59
Issues (30d)
2
Star History
40 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Didier Lopes Didier Lopes(Founder of OpenBB), and
5 more.

lmql by eth-sri

0.2%
4k
LMQL: Language for constraint-guided LLM programming
created 2 years ago
updated 2 months ago
Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Stas Bekman Stas Bekman(Author of Machine Learning Engineering Open Book; Research Engineer at Snowflake), and
21 more.

guidance by guidance-ai

0.1%
21k
Guidance is a programming paradigm for steering LLMs
created 2 years ago
updated 1 day ago
Feedback? Help us improve.