Find answers from the community

s
F
Y
a
P
Home
Members
robwhelanatx
r
robwhelanatx
Offline, last seen last month
Joined September 25, 2024
I'm using 0.10.5 in an AWS Lambda for handling queries from a frontend client. On this line, according to the logs, it tries to download NLTK ... why?? I'm also getting a lambda error, "read only file system" so I want to avoid downloading nltk.

Plain Text
from llama_index.embeddings.openai import OpenAIEmbedding

logs:
[ERROR] OSError: [Errno 30] Read-only file system: '/var/task/llama_index/core/_static/nltk_cache/corpora' Traceback (most recent call last): File "/var/lang/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load ...
8 comments
r
L