A chain is made up of links, which can be either primitives or other chains. Primitives can be either prompts, models, arbitrary functions, or other chains. The examples here are broken up into three sections:
Covers both generic chains (that are useful in a wide variety of applications) as well as generic functionality related to those chains.
Chains related to working with indexes.
All other chains
All other types of chains!
- API Chains
- Self-Critique Chain with Constitutional AI
- LLM Math
- Router Chains: Selecting from multiple prompts with MultiPromptChain
- Router Chains: Selecting from multiple prompts with MultiRetrievalQAChain
- OpenAPI Chain
- SQL Chain example