llm-python

onlyphantom/llm-python

Large Language Models tutorials and sample scripts featuring langchain, openai, llamaindex, gpt, chromadb & pinecone

923
Stars
317
Forks
0
Open issues
14
Watchers
Jupyter Notebook MITLast pushed Feb 20, 2026

Overview

A repository with instructional materials, code samples and Python scripts focused on building applications around LLMs through various tools like LangChain, OpenAI API, Chroma DB, Pinecone.

Categories

Tags

Relationships

Similar tools

Install

git clone https://github.com/onlyphantom/llm-python

README

llm-python

A set of instructional materials, code samples and Python scripts featuring LLMs (GPT etc) through interfaces like llamaindex, LangChain, OpenAI's Agent SDK, Chroma (Chromadb), Pinecone etc.

The code examples are aimed at helping you learn how to build LLM applications and Agents using Python. The code is designed to be self-contained and singularly focused, so you can pick and choose the usage patterns most relevant to your needs.

Many examples have accompanying videos on my YouTube channel.

Learn LangChain from my YouTube channel (~9 hours of LLM hands-on building tutorials); Each lesson is accompanied by the corresponding code in this repo and is designed to be self-contained -- while still focused on some key concepts in LLM (large language model) development and tooling.

Feel free to pick and choose your starting point based on your learning goals:

PartLLM TutorialLinkVideo Duration
1OpenAI tutorial and video walkthroughTutorial Video26:56
2LangChain + OpenAI tutorial: Building a Q&A system w/ own text dataTutorial Video20:00
3LangChain + OpenAI to chat w/ (query) own Database / CSVTutorial Video19:30
4LangChain + HuggingFace's Inference API (no OpenAI credits required!)Tutorial Video24:36
5Understanding Embeddings in LLMsTutorial Video29:22
6Query any website with LLamaIndex + GPT3 (ft. Chromadb, Trafilatura)Tutorial Video11:11
7Locally-hosted, offline LLM w/LlamaIndex + OPT (open source, instruction-tuning LLM)Tutorial Video32:27
8Building an AI Language Tutor: Pinecone + LlamaIndex + GPT-3 + BeautifulSoupTutorial Video51:08
9Building a queryable journal 💬 w/ OpenAI, markdown & LlamaIndex 🦙Tutorial Video40:29
10Making a Sci-Fi game w/ Cohere LLM + Stability.ai: Generative AI tutorialTutorial Video1:02:20
11GPT builds entire party invitation app from prompt (ft. SMOL Developer)Tutorial Video41:33
12A language for LLM prompt design: GuidanceTutorial Video43:15
13You should use LangChain's Caching!Tutorial Video25:37
14Build Chat AI apps with Steamlit + LangChainTutorial Video32:11

The full lesson playlist can be found here.

Updates

Multi-Agent and Agentic Patterns Update: May 3rd 2025

I've pushed 6 new scripts to the repo, `19_agent