mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
Update Get_embeddings_from_dataset.ipynb from engine to model as function argument to get_embeddings (#903)
This commit is contained in:
parent
2bd7585bc8
commit
39a434ab41
@ -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…
x
Reference in New Issue
Block a user