#Trying to generate embedding vectors and hitting a quota limit

9 messages · Page 1 of 1 (latest)

nimble wasp
#

I am here: https://github.com/openai/openai-cookbook/blob/main/examples/Obtain_dataset.ipynb and at this block, I get a quota limit error. I thought embeddings were 0.0005$ per vector? I think i'm this notebook does 1000? Do I need to request a quota increase?

This may take a few minutes

df["embedding"] = df.combined.apply(lambda x: get_embedding(x, engine=embedding_model))
df.to_csv("data/fine_food_reviews_with_embeddings_1k.csv")

I get this error:


RateLimitError Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/tenacity/init.py in call(self, fn, *args, **kwargs)
408 try:
--> 409 result = fn(*args, **kwargs)
410 except BaseException: # noqa: B902

14 frames
RateLimitError: You exceeded your current quota, please check your plan and billing details.

The above exception was the direct cause of the following exception:

RetryError Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/tenacity/init.py in iter(self, retry_state)
361 if self.reraise:
362 raise retry_exc.reraise()
--> 363 raise retry_exc from fut.exception()
364
365 if self.wait:

RetryError: RetryError[<Future at 0x7fa2f17e06d0 state=finished raised RateLimitError>]

GitHub

Examples and guides for using the OpenAI API. Contribute to openai/openai-cookbook development by creating an account on GitHub.

sonic rivet
nimble wasp
#

yeah i have everything remaining up to 120$

sonic rivet
#

When did you add a card to your account? It takes 48 for the restrictions to be removed

nimble wasp
sonic rivet
#

Yea that'd be it then. Options are add delays so you do it in chunks of 60 requests a minute or just wait 48 hours

nimble wasp
sonic rivet
#

It's still per token, ada is $0.0004 / 1K tokens