onlyphantom/llm-python
Large Language Models (LLMs) tutorials & sample scripts, ft. langchain, openai, llamaindex, gpt, chromadb & pinecone
What it solves
Learning how to build LLM applications and agents from scratch can be overwhelming. This project provides a collection of small, focused Python scripts and video lessons that let you pick a topic, run the code, and see how it works. It covers everything from basic OpenAI calls to advanced multi-agent patterns, so you don't have to stitch together scattered tutorials.
How it works
The repository contains numbered Python scripts, each demonstrating a single concept or workflow. They are self-contained and follow the latest versions of popular libraries like LangChain, LlamaIndex, Chroma, Pinecone, and OpenAI's Agent SDK. For most lessons, a corresponding YouTube video walks through the code step by step. To get started, you clone the repo, install the dependencies, add your API keys to a .env file, and run any script. The README also links to free public courses, including one on building search engines with AI and a series on generative AI for finance.
Who it's for
This is for developers and learners who prefer hands-on, example-driven learning. It's suitable for beginners who want to see real code for Q&A systems, embeddings, and local LLMs, as well as for more experienced builders exploring agentic patterns and RAG systems. The self-contained nature means you can skip straight to the topic you care about.
Highlights
- 14 video tutorials covering topics like building Q&A systems, querying databases, using Hugging Face, understanding embeddings, and making a game with LLMs.
- 6 recent scripts demonstrating key agentic patterns: hand-off, tool-use, deterministic chains, judge/critic, parallelization, and guardrails, using OpenAI's Agent SDK.
- Additional free courses on AI-powered search and generative AI for finance, with accompanying code.
- Uses industry-standard tools: LangChain, LlamaIndex, Chroma, Pinecone, Cohere, Stability AI, and more.
- MIT-licensed and maintained with community contributions welcome.
Related
- Project
- Project
- Project
- Project