Skip to content

harsh-mahobia/AI-Workflows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

AI Workflow Repo: An Interactive LangChain Tutorial

Welcome to AI Workflow Repo! This repository is designed as a hands-on tutorial for learners who want to understand and experiment with modern AI agent workflows using LangChain, LangGraph, and popular transformer-based models.

Here, you'll find practical code samples, notebook workflows, and step-by-step guides to help you learn about:

  • Building chatbots with transformer models
  • Designing chains and workflows for AI agents
  • Using structured outputs and output parsers
  • Implementing stateful and stateless conversational agents
  • Leveraging retrievers for information extraction

Table of Contents


Getting Started

  • Clone the repo:
    git clone https://github.com/harsh-mahobia/psychic-couscous.git
    cd psychic-couscous
  • Install dependencies (see each example for specific requirements, usually langchain, transformers, etc.)
  • Run any script or notebook directly; no strict config is required for most examples.

Core Concepts

LangChain Basics

LangChain lets you build sophisticated AI agents by connecting models, prompts, and output parsers.
See LangChain/python.py for a basic example using HuggingFace's Inference API to count letters in a string.

Chains and Parsers

Learn to build chains combining prompts, models, and parsers.
Check out LangChain/Chains/simple_chain.py for a chain that generates facts about animals.

Explore output parsing with JSON and string formats in LangChain/OutputParser/json.py.

Chatbots

Try different chatbot architectures:

Structured Output

Learn to use Python TypedDict for structured model outputs:

Retrievers

Understand how retrievers work for fetching data from various sources:

LangGraph Workflows

Explore graph-based agent workflows:

  • BMI Calculator (Sequential):
  • Cricket Match Stats Calculator (Parallel):
    • Notebook example: Calculates strike rate, boundary percent, and more using parallel graph nodes.

Tutorials & Examples


Resources


Contributing

This repository is a tutorial resource—feel free to fork, experiment, and submit issues or suggestions for improvement!


License

MIT License


Happy Learning! Dive into the code, experiment, and build your own agents 🚀

About

Just learnin’ LangChain & LangGraph, tinkering, learning, and building small AI flows—lowkey enjoying the grind and growing one commit at a time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors