llm-chain

Library Listed Dormant

A library for running chains of LLMs (such as ChatGPT) in series to complete complex tasks, such as text summation.

Checked ยท Sources

Downloads
2,575
Dependents
1
Stars
1,602
Forks
141
Contributors
39
Commits
400
Latest release
0.13.0 ยท

About

From the project README ยท

llm-chain is a collection of Rust crates designed to help you create advanced LLM applications such as chatbots, agents, and more. As a comprehensive LLM-Ops platform we have strong support for both cloud and locally-hosted LLMs. We also provide robust support for prompt templates and chaining together prompts in multi-step chains, enabling complex tasks that LLMs can't handle in a single step. We also provide vector store integrations making it easy to give your model long-term memory and subject matter knowledge. This empowers you to build sophisticated applications.

Examples ๐Ÿ’ก

To help you get started, here is an example demonstrating how to use llm-chain. You can find more examples in the examples folder in the repository.

let exec = executor!()?;
let res = prompt!(
    "You are a robot assistant for making personalized greetings",
    "Make a personalized greeting for Joe"
)
.run(parameters()!, &exec)
.await?;
println!("{}", res);

โžก๏ธ tutorial: get started with llm-chain โžก๏ธ quick-start: Create project based on our template

Read the full README

Features ๐ŸŒŸ

  • Prompt templates: Create reusable and easily customizable prompt templates for consistent and structured interactions with LLMs.
  • Chains: Build powerful chains of prompts that allow you to execute more complex tasks, step by step, leveraging the full potential of LLMs.
  • ChatGPT support: Supports ChatGPT models, with plans to add OpenAI's other models in the future.
  • LLaMa support: Provides seamless integration with LLaMa models, enabling natural language understanding and generation tasks with Facebook's research models.
  • Alpaca support: Incorporates support for Stanford's Alpaca models, expanding the range of available language models for advanced AI applications.
  • llm.rs support: Use llms in rust without dependencies on C++ code with our support for llm.rs
  • Tools: Enhance your AI agents' capabilities by giving them access to various tools, such as running Bash commands, executing Python scripts, or performing web searches, enabling more complex and powerful interactions.
  • Extensibility: Designed with extensibility in mind, making it easy to integrate additional LLMs as the ecosystem grows.
  • Community-driven: We welcome and encourage contributions from the community to help improve and expand the capabilities of llm-chain.

Getting Started ๐Ÿš€

To start using llm-chain, add it as a dependency in your Cargo.toml (you need Rust 1.65.0 or newer):

[dependencies]
llm-chain = "0.12.0"
llm-chain-openai = "0.12.0"

The examples for llm-chain-openai require you to set the OPENAI_API_KEY environment variable which you can do like this:

export OPENAI_API_KEY="sk-YOUR_OPEN_AI_KEY_HERE"

Then, refer to the documentation and examples to learn how to create prompt templates, chains, and more.

Contributing ๐Ÿค

We warmly welcome contributions from everyone! If you're interested in helping improve llm-chain, please check out our CONTRIBUTING.md file for guidelines and best practices.

License ๐Ÿ“„

llm-chain is licensed under the MIT License.

Connect with Us ๐ŸŒ

If you have any questions, suggestions, or feedback, feel free to open an issue or join our community discord. We're always excited to hear from our users and learn about your experiences with llm-chain.

We hope you enjoy using llm-chain to unlock the full potential of Large Language Models in your projects. Happy coding! ๐ŸŽ‰

Runs on
CUDA
What shows it
  • CUDA: llm-chain-llama-sys feature cuda
Native code
Required
  • Binds native code: llm-chain-llama-sys
  • Build uses a native toolchain: bindgen
Python bindings
No Python binding crate found
License
MIT

Compare with similar projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.

llm-chain beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
llm-chain This page Listed Dormant

A library for running chains of LLMs (such as ChatGPT) in series to complete complex tasks, such as text summation.

2,575 downloads over 30 days 1 1,602 0.13.0 CUDA Binds native code: llm-chain-llama-sys. Build uses a native toolchain: bindgen MIT
rig Featured

An opinionated library for building LLM powered applications.

64,485 downloads over 30 days 234 9,096 0.46.0 GPU support unknown Binds native code: libsqlite3-sys (feature sqlite), ring (feature surrealdb) MIT
autoagents Listed

Agent Framework for Building Autonomous Agents

8,627 downloads over 30 days 4 779 0.4.0 CUDA, WebGPU, Metal, ROCm, Vulkan Binds native code: llama-cpp-sys-2, ort-sys, alsa-sys (feature audio-capture), intel-mkl-src (feature full), rquickjs-sys (feature codeact) Apache-2.0 OR MIT
memvid Listed

Core library for Memvid v2, a crash-safe, deterministic, single-file AI memory.

5,276 downloads over 30 days 2 17,386 2.0.140 CUDA, Metal Binds native code: zstd-sys, link-cplusplus (feature llama-cpp), llama_cpp_sys (feature llama-cpp), ort-sys (feature logic_mesh) Apache-2.0
floneum Listed

A simple interface for pretrained AI models

649 downloads over 30 days 7 2,236 0.4.0 CUDA, Metal Binds native code: alsa-sys, lmdb-master-sys, accelerate-src (feature accelerate), intel-mkl-src (feature mkl), ort-sys (feature voice_detection) and 1 more Apache-2.0 OR MIT
autogpt Listed

๐Ÿฆ€ A Pure Rust Framework For Building AGIs.

2 downloads over 30 days 0 117 0.4.5 GPU support unknown Binds native code: ring, zstd-sys, libgit2-sys (feature git), libz-sys (feature git) MIT
axp App Listed

An open protocol that gives AI agents a secure, sandboxed place to run code and use tools โ€” with lean context usage. AXP works alongside MCP

Not measured Not applicable 3 Not measured Not measured Not measured Apache-2.0
Why ListedNo archive, New or Featured rule places it, so it is Listed.

What it lacks for Featured

  • It has 0 active dependents and 0 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 1,602 stars, 141 forks and 39 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.
  • The project is dormant and not finished. Dormancy rule

What else the check found

  • The last activity is on 31 Oct 2024, 739 days ago. That reaches the 365 days the rules expect, so the project is dormant. Dormancy rule
  • The oldest outside issue waits 1290 days for a reply, past the limit of 270. No maintainer replied in 365 days. Rot signals rule
  • The latest release requires the deprecated dependency paste. RUSTSEC-2024-0436 Rot signals rule
  • The project is dormant with 2 rot signals, which reaches the limit of 2. This is dead check 1 of 2, so the entry is not yet archived. Dead rule

Not measured: Latest release fails cargo check.

Exact rules: Listed, Featured library. The check on applied thresholds version 9.

Every rule outcome, as the check records it
  • expected-interval: version 0.13.0 base 140, raised to the 365-day floor: E = 365 days
  • dormancy: last activity 2024-10-31, 739 days ago, E = 365: dormant
  • rot: oldest unanswered issue 1290 days (limit 270), no maintainer reply in 365 days
  • rot: deprecated requirement `paste (RUSTSEC-2024-0436, https://rustsec.org/advisories/RUSTSEC-2024-0436.html)`
  • dead: dormant with 2 rot signals (limit 2): dead on check 1 of 2, not yet archived
  • featured: not featured: active_users 0 < 11 and new_adopters 0 < 9 and repository route stars 1602 (needs 4539), forks 141 (needs 434), contributors 39 (needs 79); dormant and not stable
  • listed: listed: no archive, new or featured rule applies
Crates12 crates

Measurements and sources

Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.

Sources6 sources
Adoption0 active dependents, 0 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents0crates.io database dumpYes
New dependents (365 days)0crates.io database dumpYes
Peak active dependents1crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 2 years ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2024-10-31GitHub repositoryYes
Latest release2023-11-15crates.io database dumpYes
First release2023-03-25crates.io database dumpYes
Latest version0.13.0crates.io database dumpYes
Days the oldest outside issue waits for a reply1290GitHub repositoryYes
Maintainer replies over 365 days0GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repotruecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementpaste (RUSTSEC-2024-0436, https://rustsec.org/advisories/RUSTSEC-2024-0436.html)crates.io database dumpYes
Distribution30 releases, 2,575 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases30crates.io database dumpYes
Downloads over 30 days2575crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository1,602 stars, 141 forks, 39 contributors, 400 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars1602GitHub repositoryYes โ€” one part of the repository route
GitHub forks141GitHub repositoryYes โ€” one part of the repository route
Contributors with a GitHub account39GitHub contributorsYes โ€” one part of the repository route
Commits on the default branch400GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseMITcrates.io database dumpNo
Runs on, from listed crates and their direct dependenciesCUDAcrates.io database dumpNo
What shows each backendCUDA: llm-chain-llama-sys feature cudacrates.io database dumpNo
Native code, from listed crates and their dependenciesBinds native code: llm-chain-llama-sys. Build uses a native toolchain: bindgencrates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly1crates.io database dumpNo

Corrections and review history

Report a correction

No correction applies to this entry.

Judgments

A judgment enters only through an approved issue and a merged pull request.

No judgment applies to this entry.