Skip to content

IndexError issue while uploading pdf file. #14

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

Open
coderooz opened this issue Aug 26, 2024 · 0 comments
Open

IndexError issue while uploading pdf file. #14

coderooz opened this issue Aug 26, 2024 · 0 comments

Comments

@coderooz
Copy link

While upooading a simple pdf file, this is the error that pops up.

IndexError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).

Traceback:

File "/home/adminuser/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 589, in _run_script exec(code, module.__dict__)

File "/mount/src/gemini_multipdf_chat/app.py", line 144, in <module> main()

File "/mount/src/gemini_multipdf_chat/app.py", line 103, in main get_vector_store(text_chunks)

File "/mount/src/gemini_multipdf_chat/app.py", line 43, in get_vector_store vector_store = FAISS.from_texts(chunks, embedding=embeddings)

File "/home/adminuser/venv/lib/python3.10/site-packages/langchain_community/vectorstores/faiss.py", line 931, in from_texts return cls.__from(

File "/home/adminuser/venv/lib/python3.10/site-packages/langchain_community/vectorstores/faiss.py", line 888, in __from index = faiss.IndexFlatL2(len(embeddings[0]))```

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

4 participants
@coderooz and others