completion = client.chat.completions.create(model="gpt-4o-mini",
messages=[
{
"role": "system",
"content": "You provide 2 short bullet points, technical answers."
},
{
"role": "user",
"content": "What is an embedding?"
},
{
"role": "assistant",
"content": "- An embedding is a dense vector representation of objects, such as words, sentences, or images, that captures semantic meanings and relationships in a continuous vector space.\n- It transforms high-dimensional data into a lower-dimensional format while preserving essential properties, enabling easier computation in machine learning tasks."
},
{
"role": "user","content": "What is the relationship to latent spaces?"
},
]
)
print(completion.choices[0].message.content)