llm-chain  by sobelio

Rust crate for building LLM chains

created 2 years ago
1,528 stars

Top 27.6% 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

9 months ago

Responsiveness

1 day

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

Explore Similar Projects

Feedback? Help us improve.