llm_chain/chains/
mod.rs

1//! Chains are multi-step modes of execution for LLMs such as Sequential or MapReduce.
2//!
3//! This module contains submodules for various types of chains. Chains are powerful tools that allow you to connect multiple steps together in a sequence. They take a set of parameters and an executor, perform the steps, and return the result.
4//!
5//! Currently, we support two types of chains that cater to different use cases. But worry not! We will be adding more in the future
6//!
7//! Here are the supported chain types:
8//! 1. **Sequential**: This chain type executes the steps one after another in a linear sequence. It's perfect for tasks that need a clear and simple order of execution.
9//! 2. **MapReduce**: This chain type follows the MapReduce paradigm, where the steps are divided into mapping and reducing phases. It's great for tasks that require parallel processing and data aggregation.
10//! 3. **Converstation**: This chain type models a conversation between the LLM and some other entity. It's great for tasks that require a back-and-forth between the LLM and the user.
11//! Stay tuned for more chain types, and feel free to contribute your own! 🎉
12
13pub mod conversation;
14pub mod map_reduce;
15pub mod sequential;