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! ๐ฅณ๐
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.
- Welcome to the
traits
module! This is where llm-chain houses its public traits, which define the essential behavior of steps and executors. These traits are the backbone of our library and are used to implement a new model.
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. - A template for a prompt. This is a string that can be formatted with a set of parameters.