Padding Tutorials
AI and machine learning
Put models to work: APIs, retrieval, evaluation and the plumbing around them.
Filter
3 tutorials
All in this category
How to Do Vector Similarity Search in PostgreSQL with pgvector
You will install PostgreSQL 18 with the pgvector extension on Ubuntu 26.04, store and compare vectors with SQL, load the chunks from the previous tutorial into a table, and add an HNSW index to make nearest-neighbour search fast.
Intermediate · 22 min · AI and machine learning
How to Get Reliable JSON Output from an LLM
You will make Claude Haiku 5.5 return a support ticket as typed data with Anthropic's structured outputs and a Pydantic model, see the schema the API receives, and handle the three ways a reply can still fail to match.
Intermediate · 20 min · AI and machine learning
How to Build a RAG Question-Answering Endpoint in Python
You will embed your document chunks with Voyage AI, store the vectors in PostgreSQL, and serve a FastAPI endpoint that retrieves the closest chunks and has Claude answer from them with cited sources, and you will make the endpoint fail safely.
Intermediate · 30 min · AI and machine learning