rig  by 0xPlaygrounds

Rust library for building LLM-powered applications

created 1 year ago
4,041 stars

Top 12.4% on sourcepulse

GitHubView on GitHub
Project Summary

Rig is a Rust library designed for building scalable, modular, and ergonomic LLM-powered applications. It provides abstractions over various LLM providers and vector stores, aiming to minimize boilerplate code for developers integrating AI capabilities into their projects. The library is suitable for engineers and researchers working with large language models who need a flexible and performant framework.

How It Works

Rig utilizes a Rust-centric approach, offering common abstractions for LLM completion and embedding workflows. It supports multiple model providers (like OpenAI) and vector stores (including MongoDB, SQLite, and in-memory solutions) through companion crates. This modular design allows users to select and integrate only the necessary components, promoting lightweight and efficient application development.

Quick Start & Requirements

  • Install: cargo add rig-core
  • Prerequisites: Rust toolchain, OPENAI_API_API_KEY environment variable for OpenAI examples. tokio with macros and rt-multi-thread features is recommended for async execution.
  • Documentation: docs.rig.rs
  • Examples: Available in each crate's examples directory.

Highlighted Details

  • Full support for LLM completion and embedding workflows.
  • Common abstractions over LLM providers (OpenAI, Cohere) and vector stores (MongoDB, SQLite, LanceDB, Neo4j, Qdrant, SurrealDB).
  • Minimal boilerplate for LLM integration.

Maintenance & Community

The project is actively developed, with a warning about potential breaking changes due to rapid feature development. Migration paths will be provided. Community contributions are encouraged via GitHub issues and a feedback form.

Licensing & Compatibility

The README does not explicitly state the license. However, the project is hosted on GitHub, implying a standard open-source license. Compatibility for commercial use or closed-source linking would depend on the specific license chosen.

Limitations & Caveats

The project explicitly warns of "dragons" and upcoming breaking changes, indicating an evolving API. Users should be prepared for potential migration efforts as new features are introduced.

Health Check
Last commit

3 days ago

Responsiveness

1 day

Pull Requests (30d)
52
Issues (30d)
64
Star History
563 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Tim J. Baek Tim J. Baek(Founder of Open WebUI), and
2 more.

llmware by llmware-ai

0.2%
14k
Framework for enterprise RAG pipelines using small, specialized models
created 1 year ago
updated 1 week ago
Feedback? Help us improve.