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

pull/886/head^2
Caio Curitiba Marcellos 5 months ago committed by GitHub
parent 2bd7585bc8
commit 39a434ab41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"
]
}

Loading…
Cancel
Save