Expand description
๐ llm-chain ๐
llm-chain
is the ultimate toolbox for developers looking to supercharge their applications with the power of Large Language Models (LLMs)! ๐
This super handy crate lets you chain together LLMs, which is incredibly useful for:
- Summarizing lengthy documents with ease ๐
- Chaining together multiple prompts to tackle complex tasks like a boss ๐
But wait, thereโs more! llm-chain
is also your best friend when it comes to creating and managing prompts for LLMs. No more hassle, no more bloated syntax! Quickly create and manage prompts with our templating system, and let llm-chain
do the rest! ๐คฉ
Heads up! This crate is just a library, meaning it doesnโt come with any LLMs included. But donโt worry! We also make the llm-chain-openai crate, which brings the power of OpenAIโs LLMs to your fingertips! ๐ช You should probably start with that crate. ๐
So, gear up, and enjoy the amazing world of LLMs! Get ready to unlock the full potential of your applications with llm-chain! ๐๐ฅ
Happy coding, and may your LLM adventures be both exciting and productive! ๐ฅณ๐
Re-exports
pub use prompt::PromptTemplate;
pub use prompt::PromptTemplateError;
Modules
- 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.
- A frame is the combination of a
Step
and anExecutor
. It wraps common behavior used by different chain types. - Prompts module
- Envelope Serialization
- Tokens Module
- Tool Access Module
- Traits Module
Macros
- Creates a
TextPrompt
or aChatPrompt
based on the number of arguments provided.
Structs
- Parameters define the parameters sent into each step. The parameters are used to fill in the prompt template, and are also filled in by the output of the previous step. Parameters have a special key,
text
, which is used as a default key for simple use cases.