mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
Add comment on where to learn about rate limits
This commit is contained in:
parent
3f715f554e
commit
3826607431
@ -281,6 +281,9 @@ df.n_tokens.hist()
|
||||
### Step 10
|
||||
################################################################################
|
||||
|
||||
# Note that you may run into rate limit issues depending on how many files you try to embed
|
||||
# Please check out our rate limit guide to learn more on how to handle this: https://platform.openai.com/docs/guides/rate-limits
|
||||
|
||||
df['embeddings'] = df.text.apply(lambda x: openai.Embedding.create(input=x, engine='text-embedding-ada-002')['data'][0]['embedding'])
|
||||
df.to_csv('processed/embeddings.csv')
|
||||
df.head()
|
||||
|
Loading…
x
Reference in New Issue
Block a user