Log in
Log into community
Find answers from the community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Inactive
Updated 10 months ago
0
Follow
Embed
Embed
Inactive
0
Follow
At a glance
s
snackbar
10 months ago
Β·
i'm trying to modify the openaiembedding class to properly rate limit... but I'm not sure if this is the right module to modify:
https://github.com/run-llama/llama_index/blob/47ec97fd11776fa701a3e0e5b2865f7eaacb215a/llama-index-integrations/embeddings/llama-index-embeddings-openai/llama_index/embeddings/openai/base.py#L222
I've made changes to this, uninstalled llama-index, and done 'poetry install --with dev' but it doesn't seem to have applied the changes
L
2 comments
Share
Open in Discord
L
Logan M
10 months ago
You'd have to install the package directly
pip install -e llama-index-integrations/embeddings/llama-index-embeddings-openai
L
Logan M
10 months ago
There is retries already for rate limiting. Maybe the wait time just needs to be adjusted
https://github.com/run-llama/llama_index/blob/47ec97fd11776fa701a3e0e5b2865f7eaacb215a/llama-index-integrations/embeddings/llama-index-embeddings-openai/llama_index/embeddings/openai/base.py#L19
Add a reply
Sign up and join the conversation on Discord
Join on Discord