Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesOpenAI Embeddings: Complete Guide
Get started free

Online course, Engineering

OpenAI Embeddings Course: Search, Classification and RAG

8 lessons of 25 minutes built on OpenAI Cookbook recipes: Python code, a task and a quiz in each.

Start: 7 days freePreview the first lesson, no sign-in

No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.

Points on a plane: a query and its nearest neighboursLesson 1, 25 minEmbeddings: Basic Usage
  • Intermediatelevel
  • 3 h 20 min8 lessons, 4 modules
  • At your own paceupdated Dec 2, 2026
  • Certificatewith a check code
What you will learnLessonsCertificateQuestionsStart the course

What you will learn

  • Get embeddings with client.embeddings.create in batches, with retries on rate limits
  • Search by meaning: the query “bad delivery” finds reviews about delays with no words in common
  • Search functions in your own code by a plain-English description
  • Build two-stage search: embeddings pick 20 candidates, a GPT cross-encoder reorders them
  • Classify reviews from embeddings with Random Forest and read precision-recall curves
  • Cluster 359 bank transactions with K-Means, view the clusters with t-SNE and have GPT name them
  • Answer questions over a knowledge base with Search-Ask: chunks, top-K by cosine similarity, context in the prompt
  • Recommend similar articles by nearest neighbors and cache embeddings so you never pay to recompute them

What OpenAI embeddings are and what the course covers

An 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.

Pricing and what's free →
01
Free lesson

Embeddings: Basic Usage

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.

Open the lesson →

Lessons

Embedding basics → search and reranking → classification and clustering → RAG and recommendations. The first two lessons are free.

Module 1 · 1 lesson · 25 min

Embedding Fundamentals

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.
Module 2 · 3 lessons · 1 h 15 min

Search and Reranking

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.
Module 3 · 2 lessons · 50 min

Classification and Clustering

Using embeddings for text classification with ML models and clustering transactions with auto-generated labels via GPT.

Who it is for

  • Developers building search over documents, products or code
  • Engineers building RAG who want to understand the retrieval step
  • Data analysts who need to classify or cluster text without hand-crafted features
  • Anyone building “similar items” or “related articles” recommendations without user history

How the lessons work

  1. A 25-minute recipeThe task, the approach and Python code from OpenAI Cookbook examples, explained step by step.
  2. A hands-on task in every lessonFor example: index 20 functions from your own project and test the search with five queries, or build two-stage search and compare the order before and after reranking. Submit it and the AI reviews it (after sign-up).
  3. Ready-made prompt and common mistakesA prompt for the lesson's task and the mistakes that cost money or quality: recomputing embeddings without a cache, comparing vectors from different models, looping API calls without retries.
  4. 3-question quiz and AI tutorThe quiz checks the key points; the lesson's AI tutor answers questions on the topic.
  5. CertificateAfter all lessons you get a certificate with a unique verification code.

Certificate of completion

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 checked
Sample

Sources behind the course

The 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.

  • OpenAI — embeddings guide
  • OpenAI — API reference: embeddings
  • OpenAI Cookbook — official site
  • openai/openai-cookbook on GitHub
  • OpenAI — current models

What's free and what it costs

  • The first two lessons, the basic embeddings call and semantic search, are free after a free sign-up.
  • After sign-up you get 7 days of full access to all 8 lessons and the whole catalog, no card needed.
  • After that, Pro costs $9 a month or $79 a year. Online card payment is not connected yet: write to info@academl.com and we open access manually.
  • OpenAI API calls run on your own key and are billed by OpenAI at its rates; embeddings are priced per input token.

OpenAI Embeddings course: questions

What are OpenAI embeddings used for?+

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.

text-embedding-3-small or text-embedding-3-large?+

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.

Are OpenAI embeddings normalized to length 1?+

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.

How is semantic search different from reranking?+

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.

What experience do I need?+

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”.

How long is the course and is there a certificate?+

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.

The course in short

level
Intermediate
For whom
For developers
Task
Search in data, RAG
Format
Lessons, quizzes and tasks checked by AI
Lesson language
English

Is this course right for you?

Check your level in 3 minutes. We will show which course to start with.

Check my level

More courses on this topic

Full catalog
Intermediate

RAG & Vector Databases

12 Python lessons on RAG: embeddings, Qdrant and pgvector, chunking, hybrid BM25 + RRF search, reranking, HyDE, RAGAS evaluation and a production pipeline.

6 h 15 min, 12 lessonsCertificate
Intermediate

OpenAI RAG & Production Patterns

6 Python lessons: RAG over complex PDFs, search with HyDE, prompt caching, 429 retries, long document summarization and entity extraction. 2026 notes.

2 h 35 min, 6 lessonsCertificate
Intermediate

RAG and working with documents

A short RAG course: when RAG beats long context, how to chunk documents, measure Recall@K, add a reranker and keep the index fresh.

1 h 10 min, 4 lessonsCertificate
Advanced

OpenAI Fine-tuning: From Data to DPO

5 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.

3 h 10 min, 5 lessonsCertificate

Keep going

OpenAI API from A to Z: the basics before embeddings →OpenAI RAG and production patterns →RAG and vector databases →RAG over documents →OpenAI Cookbook course: 8 recipes →Hugging Face: embeddings and models without a closed API →Which OpenAI embedding model to choose →

Start with your first call

The 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 up
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
5
Text Classification via Embeddings
25 min
Predict a review's star rating (1-5) from its embedding using Random Forest. Full pipeline: embed → train_test_split → RandomForestClassifier → classification_report.
6Transaction Clustering with Auto-generated Labels25 minK-Means clustering of financial transactions by embeddings + GPT generates human-readable cluster names. Visualization via t-SNE.
Module 4 · 2 lessons · 50 min

RAG and Recommendations

Question 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.
Certificate
Your name
for the course
OpenAI Embeddings: Complete Guide
ACADEML · VERIFIED · ACADEML · VERIFIED · SAMPLE
How much does the course cost?+

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.