Notebooks
A
Azure
Basic Embeddings Example Sdk

Basic Embeddings Example Sdk

azure-openai-samplesBasic_Samplesembeddings

Python SDK Samples


Get Embeddings

Get a vector representation of a given input that can be easily consumed by machine learning models and other algorithms. In this example we'll see how to get embeddings using the Azure endpoints.

[1]

Setup Parameters

Here we will load the configurations from config.json file to setup deployment name, openai api base, openai api key and openai api version.

[2]
[3]
[-0.021214839071035385, -0.006876592990010977, -0.017789261415600777, -0.04175134748220444, 0.001721267937682569, -0.022232338786125183, 0.019400300458073616, 0.0380883552134037, -0.0007700130809098482, -0.012676333077251911, -0.021096132695674896, 0.0023317669983953238, 0.012905270792543888, -0.016127347946166992, 0.004701690282672644, 0.014473913237452507, 0.006194021087139845, 0.007809299509972334, -0.012303250841796398, 0.01172666810452938]
[ ]