
The Embeddings API converts text into numerical vectors that capture semantic meaning — enabling similarity search, clustering, and RAG applications.
response = client.embeddings.create(
model="text-embedding-3-small",
input="The quick brown fox"
)
vector = response.data[0].embedding
# Returns a list of 1536 floatsFind semantically similar documents without exact keyword matching — the core of every RAG application.
Reference:
TaskLoco™ — The Sticky Note GOAT