llm icon indicating copy to clipboard operation
llm copied to clipboard

9장 예제9.2 실습하는데 RateLimitError가 납니다.

Open hyottz opened this issue 2 years ago • 1 comments

스크린샷 2024-10-17 오후 6 16 58

오류명 : WARNING:llama_index.embeddings.openai.utils:Retrying llama_index.embeddings.openai.base.get_embeddings in 0.268626828313564 seconds as it raised RateLimitError: Error code: 429- {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}.

안녕하세요 예제 9.2 데이터 100개를 뽑아 임베딩 벡터로 변환하고 저장하는 실습에서 이런에러가 납니다 책에는 따로 언급하신게 없어서 그러는데 혹시 openai api를 결제해야 실습 할 수 있나요? 찾아보니 무료 임베딩 모델을 허깅페이스에서 사용하면 된다고 하는데, 이런식으로라도 진행해야할까요..?

hyottz avatar Oct 17 '24 09:10 hyottz

안녕하세요. 허정준입니다. 실습에 불편을 드려 죄송합니다.

OpenAI Rate Limit 페이지를 봤을 때는 Free Tier인 경우도 100개에 대해서는 제한이 걸리지 않는데요. (참고) https://platform.openai.com/docs/guides/rate-limits/usage-tiers

현재 계정의 티어를 확인해보시고, 에러가 반복된다면 신용카드 등록을 통해서 문제가 해결되는지 확인 한 번 부탁드립니다.

그리고 말씀해주신 허깅페이스 모델을 사용하셔서 실습을 진행하셔도 괜찮습니다.

감사합니다. 허정준 드림

shangrilar avatar Oct 27 '24 13:10 shangrilar