Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Llama_Index RAG plugin - NLTK related (WSL) #165

Open
mferris77 opened this issue Oct 17, 2024 · 1 comment
Open

Error with Llama_Index RAG plugin - NLTK related (WSL) #165

mferris77 opened this issue Oct 17, 2024 · 1 comment

Comments

@mferris77
Copy link

Hi there - first off, I wanted to commend you on this application. It's clear you've put a LOT of work into this and I'm quite surprised it hasn't received more attention - please keep up the fantastic work.

I'm running on Windows via WSL, and generally everything is working well, until I installed the RAG plugin and tried to Query Docs. When I try to run this, I get an error and the output points to an NLTK error pointing to a missing file path, specifically:

  File "/home/user/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/nltk/data.py", line 312, in __init__
    raise OSError("No such file or directory: %r" % _path)
OSError: No such file or directory: '/home/user/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/llama_index/core/_static/nltk_cache/tokenizers/punkt/PY3_tab'

I tried to figure this out myself but I'm not sure how best to fix this without breaking something. I did try the "import nltk / nltk.download('punkt')" trick but it isn't downloading them to that location even though I have the conda env activated. Running 'pip list' shows I have the following versions installed:

nltk 3.8.1
llama-index 0.11.18

I did find this discussion on the NLTK GH page which says NLTK v3.8.1 doesn't support punkt_tab and some suggest upgrading NLTK to 3.9.1. I tried to figure out what version it should be, but I'm unable to find any version references to either llama_index or NLTK.

I suppose the simplest thing to try is to upgrade NTLK to 3.9.1, but wanted to inquire here as 1) this may indicate an update is needed with an installation somewhere along the line and 2) if I should instead try something else (different llama-index version, etc).

Thanks and keep up the good work!

@aliasaria
Copy link
Member

Thank you for your kind comment. I think we haven't tested this plugin on WSL and we're noticing that many things that interact with the filesystem need special work. We'll take a look at this asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants