llm-chain  by sobelio

Rust crate for building LLM chains

Created 2 years ago
1,550 stars

Top 26.9% on SourcePulse

GitHubView on GitHub
Project Summary

This Rust crate, llm-chain, provides a framework for building advanced LLM applications like chatbots and agents. It targets developers seeking to create sophisticated AI functionalities, offering features for prompt templating, multi-step chaining, and vector store integrations for enhanced memory and knowledge.

How It Works

llm-chain facilitates LLM application development through a modular Rust crate system. It emphasizes prompt templating for structured interactions and chaining prompts for complex, multi-step tasks. The framework supports various LLMs, including ChatGPT, LLaMa, and Alpaca, and integrates with llm.rs for C++-free LLM usage. It also includes tool integrations for agents to perform actions like executing code or web searches.

Quick Start & Requirements

  • Install via Cargo: llm-chain = "0.12.0", llm-chain-openai = "0.12.0"
  • Requires Rust 1.65.0 or newer.
  • OpenAI integration requires OPENAI_API_KEY environment variable.
  • See tutorial and examples.

Highlighted Details

  • Supports ChatGPT, LLaMa, and Alpaca models.
  • Integrates with llm.rs for C++-free LLM execution.
  • Enables agent capabilities with tools like Bash, Python, and web search.
  • Provides vector store integrations for long-term memory.

Maintenance & Community

  • Community-driven with contributions welcomed.
  • Join the community discord for questions and feedback.

Licensing & Compatibility

  • Licensed under the MIT License.
  • Permissive license suitable for commercial use and closed-source linking.

Limitations & Caveats

The project is community-driven, and while it lists support for several models, the breadth and depth of support for each may vary. Specific performance benchmarks or detailed compatibility matrices are not explicitly provided in the README.

Health Check
Last Commit

10 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
17 stars in the last 30 days

Explore Similar Projects

Starred by Yiran Wu Yiran Wu(Coauthor of AutoGen) and Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research).

PocketFlow by The-Pocket

1.0%
8k
Minimalist LLM framework for agentic coding
Created 8 months ago
Updated 1 month ago
Starred by Alex Yu Alex Yu(Research Scientist at OpenAI; Former Cofounder of Luma AI), Didier Lopes Didier Lopes(Founder of OpenBB), and
5 more.

eliza by elizaOS

0.5%
17k
Agentic framework for autonomous agents
Created 1 year ago
Updated 17 hours ago
Feedback? Help us improve.