Notebooks
A
Azure
Basic Embeddings Example Restapi

Basic Embeddings Example Restapi

azure-openai-samplesBasic_Samplesembeddings

REST API Reference 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 REST API Call.

[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.02121484, -0.006876593, -0.017789261, -0.041751347, 0.0017212679, -0.022232339, 0.0194003, 0.038088355, -0.0007700131, -0.012676333, -0.021096133, 0.002331767, 0.012905271, -0.016127348, 0.0047016903, 0.014473913, 0.006194021, 0.0078092995, -0.012303251, 0.011726668]
[ ]