Skip to content

Examples and guides for using the OpenAI API

Update Get_embeddings_from_dataset.ipynb from engine to model as function argument to get_embeddings (#903)

Caio Curitiba Marcellos39a434ab4116
diff --git a/examples/Get_embeddings_from_dataset.ipynb b/examples/Get_embeddings_from_dataset.ipynb
index d2e82e67..d817af69 100644
--- a/examples/Get_embeddings_from_dataset.ipynb
+++ b/examples/Get_embeddings_from_dataset.ipynb
@@ -191,7 +191,7 @@
"# Ensure you have your API key set in your environment per the README: https://github.com/openai/openai-python#usage\n",
"\n",
"# This may take a few minutes\n",
- "df[\"embedding\"] = df.combined.apply(lambda x: get_embedding(x, engine=embedding_model))\n",
+ "df[\"embedding\"] = df.combined.apply(lambda x: get_embedding(x, model=embedding_model))\n",
"df.to_csv(\"data/fine_food_reviews_with_embeddings_1k.csv\")\n"
]
}