---
sidebar_label: LLM Chain
sidebar_position: 1
draft: true
---

import CodeBlock from "@theme/CodeBlock";
import ExampleLLM from "@examples/llm-chain-example/llm_chain.go";

# Getting Started: LLMChain

:::info
[Conceptual Guide](https://python.langchain.com/docs/modules/chains)
:::

An `LLMChain` is a simple chain that adds some functionality around language models. It is used widely throughout LangChain, including in other chains and agents.

An `LLMChain` consists of a `PromptTemplate` and a language model (either an [LLM](../models/llms/) or [chat model](../models/chat/)).

## Usage with LLMs

We can construct an LLMChain which takes user input, formats it with a PromptTemplate, and then passes the formatted response to an LLM:

<CodeBlock language="go">{ExampleLLM}</CodeBlock>


