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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue