langchain-rust  by Abraxas-365

Rust SDK for building LLM applications

created 1 year ago
1,021 stars

Top 37.3% on sourcepulse

GitHubView on GitHub
Project Summary

This Rust library provides a comprehensive implementation of the LangChain framework, enabling developers to build complex LLM-powered applications in Rust. It offers a composable interface for integrating various LLMs, embedding models, vector stores, chains, and agents, targeting Rust developers seeking robust and performant LLM application development.

How It Works

The library follows the LangChain philosophy of composability, abstracting away the complexities of interacting with different LLM providers and data sources. It utilizes Rust's strong type system and asynchronous capabilities to provide a safe and efficient environment for building LLM workflows. Key features include support for multiple LLM APIs (OpenAI, Azure OpenAI, Anthropic, Ollama), various embedding models, and a range of vector stores (OpenSearch, Postgres, Qdrant, Sqlite, SurrealDB).

Quick Start & Requirements

  • Installation: Add langchain-rust to your Cargo.toml. Optional features for vector stores include sqlite-vss, sqlite-vec, postgres, surrealdb, and qdrant.
  • Prerequisites: Rust toolchain.
  • Example: The README provides detailed examples for using LLM chains, document loaders (PDF, DOCX, HTML, CSV, Git commits, source code), and agents.

Highlighted Details

  • Supports numerous LLM providers including OpenAI, Azure OpenAI, Anthropic, and Ollama.
  • Integrates with multiple vector stores like Qdrant, PostgreSQL, and SurrealDB.
  • Offers a variety of document loaders for common file formats and source code.
  • Includes agent capabilities with tool integration for tasks like web search and command execution.

Maintenance & Community

The project is actively maintained by Abraxas-365. Further community engagement details are not explicitly provided in the README.

Licensing & Compatibility

The project is licensed under the MIT license, permitting commercial use and integration with closed-source applications.

Limitations & Caveats

While the library offers extensive features, some integrations like specific vector stores may require additional setup or external dependencies as noted in the installation instructions. The README indicates ongoing development with a comprehensive list of implemented features.

Health Check
Last commit

6 days ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
112 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
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Anton Troynikov Anton Troynikov(Cofounder of Chroma), and
20 more.

llama_index by run-llama

0.3%
43k
Data framework for building LLM-powered agents
created 2 years ago
updated 19 hours ago
Feedback? Help us improve.