Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated 4 months ago
0
Follow
llama_index/llama-index-core/llama_index...
llama_index/llama-index-core/llama_index...
Inactive
0
Follow
S
SUBHAM
4 months ago
ยท
Recently I am getting this error for llama-index when it is used aws lambda.
The error is happening mainly due to punkt_download
After going through the llamaindex code, the error is happening due to this following dld
https://github.com/run-llama/llama_index/blob/main/llama-index-core/llama_index/core/utils.py
Attachment
L
S
12 comments
Share
Open in Discord
L
Logan M
4 months ago
punkt_tab is bundled with the wheel, and the code is already setup to look for it
L
Logan M
4 months ago
what version of llama-index are you using?
S
SUBHAM
4 months ago
I am using llamaindex0.11. If it is bundled to look for it, it is causing error to run in AWS lambdas
L
Logan M
4 months ago
unless you are setting NLTK_DATA in your env var
https://github.com/run-llama/llama_index/blob/ecd9147fb8f8fac030950ac134349ba9a892430f/llama-index-core/llama_index/core/utils.py#L51
L
Logan M
4 months ago
0.11.what though? 0.11.0? 0.11.1? There was some bug in the initial 0.11 versions for this
L
Logan M
4 months ago
llama-index-core==0.11.5
should be working fine
S
SUBHAM
4 months ago
I have 0.11.2
S
SUBHAM
4 months ago
Should we upgrade to 0.11.5
L
Logan M
4 months ago
yea
S
SUBHAM
4 months ago
Hey @Logan M was this something introduced in the latest llamaindex version v0.11 or It was there in the earlier version too?
S
SUBHAM
4 months ago
Because we have been using llamaindex in aws lambda for quite a long time. We haven't faced this error.
L
Logan M
4 months ago
nltk had a CVE, and there was some nonsense while nltk was fixing that
Add a reply
Sign up and join the conversation on Discord
Join on Discord