# Chains and workflows — LangChain / LlamaIndex

Source: https://www.geekswithgeeks.com/en/langchain-llamaindex/langchain-llamaindex-06

> Apply Chains and workflows with clear evidence.

## Understand Chains and workflows

For **Chains and workflows**, begin with the problem it solves. Identify the inputs, constraints, and observable outcome before choosing an implementation.

## See the workflow

Use this path while practising **Chains and workflows**: understand, act, verify, and improve.

![Workflow for Chains and workflows.](assets/figures/langchain-llamaindex/section-2-map.svg) — Figure 2.1 — A repeatable workflow.

## A useful comparison

**Chains and workflows** is like a route plan: it keeps each step connected to a destination.

Check your reasoning.

**Quiz:** What is the best first step for Chains and workflows?

- [x] Define the goal and constraints.
- [ ] Copy an unverified example.
- [ ] Skip measurement.

*Answer:* Define the goal and constraints.. A clear goal and constraints make decisions reviewable.
