---
title: "llm-python"
type: "tool"
slug: "onlyphantom-llm-python"
canonical_url: "https://www.graphcanon.com/tools/onlyphantom-llm-python"
github_url: "https://github.com/onlyphantom/llm-python"
homepage_url: "https://www.youtube.com/playlist?list=PLXsFtK46HZxUQERRbOmuGoqbMD-KWLkOS"
stars: 923
forks: 317
primary_language: "Jupyter Notebook"
license: "MIT"
categories: ["developer-tools", "llm-frameworks"]
tags: ["gpt-3", "llmops", "pinecone", "llamaindex", "chromadb", "openai-api", "tutorial", "langchain-python"]
updated_at: "2026-07-07T18:48:49.679566+00:00"
---

# llm-python

> LLMs tutorials & sample scripts with langchain, openai, llamaindex, gpt, chromadb & pinecone

A collection of instructional materials and Python scripts for LLM development using various tools like LangChain, OpenAI API, Llamaindex, GPT, ChromaDB, and Pinecone.

## Facts

- Repository: https://github.com/onlyphantom/llm-python
- Homepage: https://www.youtube.com/playlist?list=PLXsFtK46HZxUQERRbOmuGoqbMD-KWLkOS
- Stars: 923 · Forks: 317 · Open issues: 0 · Watchers: 14
- Primary language: Jupyter Notebook
- License: MIT
- Last pushed: 2026-02-20T10:42:19+00:00

## Categories

- [Developer Tools](/categories/developer-tools.md)
- [LLM Frameworks](/categories/llm-frameworks.md)

## Tags

gpt-3, llmops, pinecone, llamaindex, chromadb, openai-api, tutorial, langchain-python

## Related tools

- [ECC](/tools/affaan-m-ecc.md) - The agent harness performance optimization system (★ 226,962)
- [AutoGPT](/tools/significant-gravitas-autogpt.md) - AutoGPT: Build, Deploy, and Run AI Agents (★ 185,417)
- [ollama](/tools/ollama-ollama.md) - Get up and running with Kimi-K2.6, GLM-5.1, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models. (★ 175,659)
- [prompts.chat](/tools/f-prompts-chat.md) - The world's largest open-source prompt library for AI (★ 165,019)
- [transformers](/tools/huggingface-transformers.md) - 🤗 Transformers: the model-definition framework for state-of-the-art machine learning models (★ 162,347)
- [JavaGuide](/tools/snailclimb-javaguide.md) - Snailclimb/JavaGuide: 面试 & 后端通用面试指南，覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发 (★ 156,863)
- [open-webui](/tools/open-webui-open-webui.md) - User-friendly AI Interface (Supports Ollama, OpenAI API, ...) (★ 144,575)
- [awesome-llm-apps](/tools/shubhamsaboo-awesome-llm-apps.md) - 100+ AI Agent & RAG apps you can actually run — clone, customize, ship. (★ 116,702)

## README (excerpt)

```text
# 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](https://www.youtube.com/samuelchan).





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:

| Part | LLM Tutorial                                                                         | Link                                                          | Video Duration |
| ---- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------- | -------------- |
| 1    | OpenAI tutorial and video walkthrough                                                | [Tutorial Video](https://youtu.be/skw-togjY7Q)                | 26:56          |
| 2    | LangChain + OpenAI tutorial: Building a Q&A system w/ own text data                  | [Tutorial Video](https://youtu.be/DYOU_Z0hAwo)                | 20:00          |
| 3    | LangChain + OpenAI to chat w/ (query) own Database / CSV                             | [Tutorial Video](https://youtu.be/Fz0WJWzfNPI)                | 19:30          |
| 4    | LangChain + HuggingFace's Inference API (no OpenAI credits required!)                | [Tutorial Video](https://youtu.be/dD_xNmePdd0)                | 24:36          |
| 5    | Understanding Embeddings in LLMs                                                     | [Tutorial Video](https://youtu.be/6uyBc0jm1xQ)                | 29:22          |
| 6    | Query any website with LLamaIndex + GPT3 (ft. Chromadb, Trafilatura)                 | [Tutorial Video](https://youtu.be/6K1lyyzpxtk)                | 11:11          |
| 7    | Locally-hosted, offline LLM w/LlamaIndex + OPT (open source, instruction-tuning LLM) | [Tutorial Video](https://youtu.be/qAvHs6UNb2k)                | 32:27          |
| 8    | Building an AI Language Tutor: Pinecone + LlamaIndex + GPT-3 + BeautifulSoup         | [Tutorial Video](https://youtu.be/k8G1EDZgF1E)                | 51:08          |
| 9    | Building a queryable journal 💬 w/ OpenAI, markdown & LlamaIndex 🦙                  | [Tutorial Video](https://youtu.be/OzDhJOR5IfQ)                | 40:29          |
| 10   | Making a Sci-Fi game w/ Cohere LLM + Stability.ai: Generative AI tutorial            | [Tutorial Video](https://youtu.be/uR93yTNGtP4)                | 1:02:20        |
| 11   | GPT builds entire party invitation app from prompt (ft. SMOL Developer)              | [Tutorial Video](https://www.youtube.com/watch?v=Ll_VIsIjuFg) | 41:33          |
| 12   | A language for LLM prompt design: Guidance                                           | [Tutorial Video](https://youtu.be/k4Ejc3bLQiU)                | 43:15          |
| 13   | You should use LangChain's Caching!                                                  | [Tutorial Video](https://youtu.be/Uk_SJSnQRU8)                | 25:37          |
| 14   | Build Chat AI apps with Steamlit + LangChain                                         | [Tutorial Video](https://youtu.be/7QR6hXx_Nms)                | 32:11          |

The full lesson playlist can be found [here](https://www.youtube.com/playlist?list=PLXsFtK46HZxUQERRbOmuGoqbMD-KWLkOS).

## Updates

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

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

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/onlyphantom-llm-python`](/api/graphcanon/tools/onlyphantom-llm-python)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
