Online course, Engineering
8 lessons of 25 minutes built on OpenAI Cookbook recipes: Python code, a task and a quiz in each.
No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.
Lesson 1, 25 minEmbeddings: Basic UsageAn embedding is a vector of numbers that captures the meaning of text: the closer two vectors, the closer the texts in meaning. The course shows how to get embeddings from the OpenAI API (text-embedding-3-small, 1536 dimensions) and build semantic search, code search, reranking, classification, clustering, Q&A over a knowledge base and recommendations. 8 lessons of 25 minutes.
Your first client.embeddings.create call, a reliable wrapper with retries via tenacity, and batching instead of calling the API in a loop. The task: embed five phrases and compare cosine similarity for close and distant pairs.
Embedding basics → search and reranking → classification and clustering → RAG and recommendations. The first two lessons are free.
What embeddings are, how to obtain them via the OpenAI API, and core patterns for working with vector representations.
1Embeddings: Basic Usagefree25 minObtain vector representations of text via the OpenAI API. We cover the text-embedding-3-small model, exponential backoff with tenacity, and best practices for batch processing.Semantic search over text and code, plus reranking with cross-encoders to improve result precision.
2Semantic Text Searchfree25 minBuild a search engine over product reviews: embed query → cosine similarity against all documents → top-N results. Full working example on the Amazon Fine Food Reviews dataset.3Code Search via Embeddings25 minIndex Python functions from the openai-python repository and search them with plain English queries. We cover function-level AST parsing, embedding code, and semantic code retrieval.4Reranking with Cross-Encoders25 minTwo-stage search: bi-encoder for fast candidate retrieval + GPT as a cross-encoder for precise reranking. We cover the logit_bias trick for binary Yes/No classification.You get it when you finish every lesson. Each certificate has its own code, so an employer can check it on our site. You can add it to LinkedIn.
See how a certificate is checkedThe lesson code is based on examples from the openai-cookbook repository (MIT license).
Model facts come from OpenAI's embeddings guide: text-embedding-3-small returns 1536 dimensions, text-embedding-3-large 3072, input is up to 8192 tokens, and vectors are normalized to length 1.
Chat models in some recipes (gpt-3.5-turbo, gpt-4, gpt-4o-mini) are as of publication, so check the current model list before you run them. On OpenAI's schedule, gpt-3.5-turbo and gpt-4 shut down on October 23, 2026, and the GPT-4o mini snapshot will shut down on January 14, 2027; OpenAI lists gpt-6-luna as its replacement. The reranking lesson already runs on gpt-6-luna.
They are vectors that the text-embedding-3 models compute from text so that texts with similar meaning get similar vectors. OpenAI lists the main uses as search, clustering, recommendations, anomaly detection, diversity measurement and classification. You compute a vector once, cache it and reuse it as often as you like.
3-small returns 1536 dimensions and 3-large 3072; both accept up to 8192 input tokens. OpenAI estimates about 62,500 pages of text per dollar for 3-small and about 9,615 for 3-large. The dimensions parameter shortens the vector while keeping its meaning-carrying properties, which saves space in a vector database. The course lessons use 3-small.
Yes. According to OpenAI's documentation, the vectors are normalized to length 1, so cosine similarity can be computed as a plain dot product, and ranking by cosine similarity or by Euclidean distance gives the same order. Vectors from different models cannot be compared with each other.
Semantic search (a bi-encoder) embeds the query and documents separately and quickly finds the nearest candidates. A cross-encoder scores each query-document pair as a whole: more accurate, and more expensive because it runs on every pair. The lesson combines them: embeddings pick 20 candidates and GPT reorders only those through logprobs.
Intermediate: Python, calling an API with a key, pandas and numpy; basic scikit-learn helps in the classification and clustering lessons. If you have never used the OpenAI API, start with “OpenAI API from A to Z”.
8 lessons of 25 minutes, about 3 hours in total. There is no schedule and progress is saved. After all lessons you get a certificate with a unique verification code.
Intermediate12 Python lessons on RAG: embeddings, Qdrant and pgvector, chunking, hybrid BM25 + RRF search, reranking, HyDE, RAGAS evaluation and a production pipeline.
Certificate
Intermediate6 Python lessons: RAG over complex PDFs, search with HyDE, prompt caching, 429 retries, long document summarization and entity extraction. 2026 notes.
Certificate
IntermediateA short RAG course: when RAG beats long context, how to chunk documents, measure Recall@K, add a reranker and keep the index fresh.
Certificate
Advanced5 Python lessons: JSONL checks and training cost, SFT, DPO, distillation and RFT with a grader. What changed in OpenAI fine-tuning in 2026 is on the page.
CertificateThe first two lessons are open after a free sign-up. Sign up with email or Google to get 7 days of full access to the whole course and catalog.
Sign upQuestion Answering via knowledge base search and recommendation systems based on nearest-neighbor search.
7Q&A via Embeddings-based Search25 minSearch-Ask architecture: embed → rank Wikipedia sections → put the found text into the GPT prompt → get an answer based on that text.8Recommendations via Nearest Neighbor Search25 minBuild a recommendation system for news articles: embed descriptions → cosine distances → k nearest neighbors. Cache embeddings in pickle to save API calls.The first two lessons are always free. Signing up gives 7 days of full access with no card. Pro opens every lesson in the catalog for $9 a month or $79 a year. OpenAI API usage is billed by OpenAI separately.