A collection of practical LangChain workflow implementations built using Groq LLMs and LangChain's runnable architecture.
This project explores different chaining patterns such as sequential pipelines, branching logic, parallel execution, and structured output parsing using real-world examples.
Basic prompt → model → parser workflow for generating AI responses.
Multi-step workflow where the output of one chain becomes the input for another.
Runs multiple tasks simultaneously and combines the results into a single output.
Uses conditional routing to generate different responses based on sentiment classification.
- Python
- LangChain
- Groq API
- Pydantic
- Runnable Chains
- Prompt Templates
langchain-runnable-chains/
│
├── chains/
│ ├── simple_chain.py
│ ├── sequential_chain.py
│ ├── parallel_chain.py
│ └── branching_chain.py
│
├── screenshots/
│
├── .env.example
├── .gitignore
├── requirements.txt
└── README.mdgit clone https://github.com/your-username/langchain-runnable-chains.gitcd langchain-runnable-chainspip install -r requirements.txtCreate a .env file and add:
GROQ_API_KEY=your_groq_api_keyExample:
python chains/simple_chain.pyYou can similarly run:
sequential_chain.pyparallel_chain.pybranching_chain.py
- Runnable chains
- Prompt pipelines
- Output parsers
- Structured responses
- Parallel execution
- Conditional branching
- Chain visualization
- LLM workflow orchestration
Add terminal outputs or chain graphs inside the screenshots/ folder and reference them here.
Example:
Vrundali Rahangdale