Skip to content

Commit ea8cd1b

Browse files
committed
update
1 parent f7c78a9 commit ea8cd1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/ai-services/openai/tutorials/embeddings.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ import tiktoken
220220
from openai import AzureOpenAI
221221
```
222222

223+
---
224+
223225
Now we need to read our csv file and create a pandas DataFrame. After the initial DataFrame is created, we can view the contents of the table by running `df`.
224226

225227
```python
@@ -380,6 +382,7 @@ def generate_embeddings(text, model="text-embedding-ada-002"): # model = "deploy
380382
return client.embeddings.create(input = [text], model=model).data[0].embedding
381383

382384
df_bills['ada_v2'] = df_bills["text"].apply(lambda x : generate_embeddings (x, model = 'text-embedding-ada-002')) # model should be set to the deployment name you chose when you deployed the text-embedding-ada-002 (Version 2) model
385+
```
383386

384387
---
385388

0 commit comments

Comments
 (0)