Learn Python - Free Tutorials & AI Guides

Free Python Tutorials, AI Guides & Coding Projects

AI Inference
USearch Architecture: A Source Tour of Unum's Single-Header Vector Search Engine

USearch Architecture: A Source Tour of Unum's Single-Header Vector Search Engine

Most vector databases you encounter are services: a server process, a network protocol, a deployment story. USearch from Unum-cloud takes the opposite path. It is a single-file C++11 header — include/usearch/index.hpp — that implements a multi-layer proximity graph for approximate...

AI Inference
txtai Source Tour: Inside the Embeddings Database Engine

txtai Source Tour: Inside the Embeddings Database Engine

Most vector-search libraries hand you an index and stop there. txtai, from NeuML, takes the wider view: it is an embeddings database — a Python platform where you index text, documents, audio, images and video, keep the original content in...

AI Inference
pgvector Source Tour: How Vector Search Lives Inside Postgres

pgvector Source Tour: How Vector Search Lives Inside Postgres

Every retrieval-augmented application eventually faces the same storage question: where do the embeddings live? Many teams end up syncing a vector file with a relational database, and paying for two systems that drift apart. pgvector takes the opposite approach: it...

AI Inference
OpenAI Evals: A Source Tour of the LLM Evaluation Framework

OpenAI Evals: A Source Tour of the LLM Evaluation Framework

Every serious LLM project eventually hits the same wall: you changed one word in a prompt, or swapped one model checkpoint for another, and you have no idea whether the output got better or worse. OpenAI’s answer is evals, the...

AI Inference
Modin Source Tour: How One Import Scales pandas Across Every Core

Modin Source Tour: How One Import Scales pandas Across Every Core

pandas has a scaling problem that every data scientist eventually hits: it is single-threaded, and the moment your dataset outgrows a fraction of your machine’s memory, workflows that felt snappy on a laptop become slow, swap-thrashing misery. Modin is a...

AI Inference
Marqo Source Tour: Inside the AI-Native Vector Search Engine's Architecture

Marqo Source Tour: Inside the AI-Native Vector Search Engine's Architecture

Marqo is an open-source vector search engine with a simple pitch: you hand it documents — text, images, or mixed content — and it generates embeddings for you, stores them, and lets you query them in natural language through a...

AI Inference
Inside LM Evaluation Harness: How EleutherAI Turns a Model and a YAML File into a Benchmark Score

Inside LM Evaluation Harness: How EleutherAI Turns a Model and a YAML File in...

Every benchmark leaderboard you have seen — MMLU, HellaSwag, GSM8K — is computed by software that has to make hundreds of small, boring decisions correctly: how the prompt is assembled, how many few-shot examples are drawn and from which split,...

AI Inference
LlamaIndex Source Tour: How the Data Framework for LLM Apps Is Assembled

LlamaIndex Source Tour: How the Data Framework for LLM Apps Is Assembled

Ask a room of Python developers how they wire private documents into large language models, and sooner or later the answer will be LlamaIndex. The run-llama/llama_index repository is the home of that framework: a data layer that connects files, APIs,...

AI Inference
Instructor Source Tour: How the Structured-Outputs Library Turns LLM JSON Into Pydantic Models

Instructor Source Tour: How the Structured-Outputs Library Turns LLM JSON Int...

If you have ever extracted structured data from an LLM, you have probably met Instructor: define a Pydantic model, hand it to client.chat.completions.create(response_model=...), and get back a validated, typed object instead of a string of JSON you have to scrape...

AI Inference
Guidance Source Tour: The Architecture Behind Constrained LLM Generation

Guidance Source Tour: The Architecture Behind Constrained LLM Generation

Most libraries that talk to language models treat the model as an oracle: you send a prompt, you get text back, and you pray it parses. Guidance — the open-source project maintained under the guidance-ai organization and originally developed at...

AI Inference
Coqui TTS Anatomy: the Zoo Facade, the Wrappers, the Vocoder Shelf - Inside coqui-ai/TTS

Coqui TTS Anatomy: the Zoo Facade, the Wrappers, the Vocoder Shelf - Inside c...

Text-to-speech is the rare field where the whole lineage of a decade still runs side by side: attention-based seq2seq models from 2017, flow-based generators from 2020, adversarial end-to-end systems, and the GPT-style voice cloners of the streaming era. The Coqui...

AI Inference
Polars Under the Hood: How a Rust DataFrame Engine Rebuilt Python Data Work

Polars Under the Hood: How a Rust DataFrame Engine Rebuilt Python Data Work

Every Python developer eventually hits the same wall: a table too big for memory, a join that takes twenty minutes, a group-by that spills into swap. The usual answer has been to rent a bigger machine or to retreat into...

AI Inference
OpenCV Source Tour: From the Mat Container to the DNN Engine Inside the World's Default Vision Library

OpenCV Source Tour: From the Mat Container to the DNN Engine Inside the World...

OpenCV is the library that every other computer vision tool gets compared to. Twenty-plus years in, it is the default import in tutorials, the runtime under countless factory robots and security cameras, and the compatibility target that newer frameworks measure...

AI Inference
Numba, From @jit to Machine Code: A Source Tour of the LLVM-Based JIT Compiler for Python

Numba, From @jit to Machine Code: A Source Tour of the LLVM-Based JIT Compile...

Numba occupies a unique spot in the Python performance world: it is a compiler that ships as a pip package. You put a decorator on a plain Python function, call the function once, and by the time that call returns,...

AI Inference
DuckDB: An In-Process Analytical SQL Engine, From SQL Text to Row Groups

DuckDB: An In-Process Analytical SQL Engine, From SQL Text to Row Groups

Most people meet DuckDB as a magic one-liner: pip install duckdb, then SQL that crunches hundreds of millions of rows inside the same Python process that would otherwise have churned through pandas loops. There is no server, no socket, no...

AI Inference
Demucs: An End-to-End Source Tour of Meta's Music Source-Separation Model

Demucs: An End-to-End Source Tour of Meta's Music Source-Separation Model

Music source separation is the task of taking one mixed recording and pulling it apart into its ingredients: drums, bass, the rest of the instruments, and the vocal. It sounds like an audio party trick, but it is a genuinely...

AI Inference
Dask Source Tour: Task Graphs, Expressions, and the Scheduler Loop

Dask Source Tour: Task Graphs, Expressions, and the Scheduler Loop

Dask has become the default answer to a very common moment in a data scientist’s life: the moment your pandas DataFrame no longer fits in RAM, or your numpy array of features outgrows a single machine. Instead of asking you...

AI Inference
BasicSR: Reading the Config-Driven Restoration Framework End to End

BasicSR: Reading the Config-Driven Restoration Framework End to End

If you have ever downloaded a Real-ESRGAN checkpoint and wondered what actually produced it, the answer is BasicSR. The repository, maintained by the XPixelGroup, is an open source PyTorch toolkit for image and video restoration — super resolution, denoising, deblurring,...

AI Inference
AudioCraft Source Tour: How Meta's MusicGen, AudioGen and EnCodec Fit Together

AudioCraft Source Tour: How Meta's MusicGen, AudioGen and EnCodec Fit Together

Meta’s AudioCraft is the library behind MusicGen and AudioGen, and it is one of the most instructive generative-audio codebases you can read. It commits to one architectural idea: treat audio generation as language modeling over discrete tokens produced by a...

AI Inference
Apache Arrow: A Source Tour of the Columnar Memory Format That Moves Your Data

Apache Arrow: A Source Tour of the Columnar Memory Format That Moves Your Data

Most machine learning stacks never admit how much time they spend converting data. NumPy wants one layout, pandas wants another, your trainer wants tensors, and the Parquet file on disk wants a third. Every conversion is a memcpy nobody budgeted...

AI Inference
XGBoost Source Tour: Inside the Gradient-Boosted-Tree Engine

XGBoost Source Tour: Inside the Gradient-Boosted-Tree Engine

XGBoost has been the default answer for tabular machine learning for the better part of a decade, and unlike many tools that survive by inertia, its source code is still worth reading in 2026. The repository is really two programs...

AI Inference
sherpa-onnx: Streaming Speech Recognition, TTS and VAD on onnxruntime

sherpa-onnx: Streaming Speech Recognition, TTS and VAD on onnxruntime

Most speech toolkits make you choose: a research framework that is flexible but heavy, or an embedded library that is fast but frozen. sherpa-onnx, from the k2-fsa team, is a deliberate third option. It is a C++ library — no...

AI Inference
Qwen3: A Source Tour of the Evaluation, Demo, and Benchmark Code

Qwen3: A Source Tour of the Evaluation, Demo, and Benchmark Code

When the Qwen team released the Qwen3 family — dense models from 0.6B to 32B plus the MoE siblings 30B-A3B and 235B-A22B, later refreshed as the Instruct-2507 and Thinking-2507 variants with 256K context extendable to a million tokens — the...

AI Inference
pandas Under the Hood: The DataFrame Engine from Python API to Cython Kernels

pandas Under the Hood: The DataFrame Engine from Python API to Cython Kernels

pandas is the quiet substrate of half the data work done in Python. Every notebook that starts with import pandas as pd, every PyTorch preprocessing script that glances at a CSV, every feature table fed into scikit-learn passes through one...

Watch PyShine on YouTube