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 in __cdecl faiss::FileIOReader::FileIOReade #2

Closed
diouck opened this issue Oct 14, 2023 · 7 comments
Closed

Error in __cdecl faiss::FileIOReader::FileIOReade #2

diouck opened this issue Oct 14, 2023 · 7 comments

Comments

@diouck
Copy link

diouck commented Oct 14, 2023

hello, I am trying to use your code however I encounter this error:

Error in __cdecl faiss::FileIOReader::FileIOReader(const char *) at D:\a\faiss-wheels\faiss-wheels\faiss\faiss\impl\io.cpp:68: Error: 'f' failed: could not open vectorstore\db_faiss\index.faiss for reading: No such file or directory

Have you encountered it and if so how to resolve it

Thank you

@adamcodes716
Copy link

hello, I am trying to use your code however I encounter this error:

Error in __cdecl faiss::FileIOReader::FileIOReader(const char *) at D:\a\faiss-wheels\faiss-wheels\faiss\faiss\impl\io.cpp:68: Error: 'f' failed: could not open vectorstore\db_faiss\index.faiss for reading: No such file or directory

Have you encountered it and if so how to resolve it

Thank you

I am getting the same error. Has anyone figured out the issue?

@adamcodes716
Copy link

I did make a little bit of progress on this. I thought I was using the required version of python only to discover that I had not restarted my command prompt. Once I restarted the command prompt and verified 3.11.0, I am now getting a different error. I have not modified anything after downloading. I did try to generate prisma by issuing "prisma generate" but that did not help.

File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 677, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "C:\Users\auser\AppData\Local\Programs\Python\Python311\Lib\contextlib.py", line 204, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "", line 1231, in handle_fromlist
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\prisma_init
.py", line 45, in getattr
raise RuntimeError(
RuntimeError: The Client hasn't been generated yet, you must run prisma generate before you can use the client.
See https://prisma-client-py.readthedocs.io/en/stable/reference/troubleshooting/#client-has-not-been-generated-yet

@Yusuf-Demiryurek
Copy link

Hello, the issue is related to the absence of the vector database. The script generates the database only if the folder PrivateDocBot\vectorstore\db_faiss is empty. However, when you clone this repository, there is a readme file in that folder. Please delete the readme.md file from this folder and try the process again.

@diouck
Copy link
Author

diouck commented Nov 20, 2023

Thanks for your feedback. It works but we get this error:

401 Client Error. (Request ID: Root=1-655b5fa8-697813fe6ffd92f0377a0ac0;50ab74ec-cd96-4507-a668-e98306085975)

Repository Not Found for url: https://huggingface.co/api/models/models/mistral-7b-openorca.Q4_K_M.gguf/revision/main.
Please make sure you specified the correct repo_id and repo_type.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid username or password.

@Yusuf-Demiryurek
Copy link

You're welcome, did you try to download the model by yourself from huggingface and put it in the models folder ?

@Abhi5h3k
Copy link
Owner

Thanks for your feedback. It works but we get this error:

401 Client Error. (Request ID: Root=1-655b5fa8-697813fe6ffd92f0377a0ac0;50ab74ec-cd96-4507-a668-e98306085975)

Repository Not Found for url: https://huggingface.co/api/models/models/mistral-7b-openorca.Q4_K_M.gguf/revision/main. Please make sure you specified the correct repo_id and repo_type. If you are trying to access a private or gated repo, make sure you are authenticated. Invalid username or password.

@diouck Make sure you have downloaded a model and placed it in the 'models' directory.

dir_structure

@Abhi5h3k
Copy link
Owner

hello, I am trying to use your code however I encounter this error:

Error in __cdecl faiss::FileIOReader::FileIOReader(const char *) at D:\a\faiss-wheels\faiss-wheels\faiss\faiss\impl\io.cpp:68: Error: 'f' failed: could not open vectorstore\db_faiss\index.faiss for reading: No such file or directory

Have you encountered it and if so how to resolve it

Thank you

PrivateDocBot\vectorstore\db_faiss needs to be empty; currently, there is a README file. Changes have been made in the new code to ignore this file. Thanks to @Yusuf-Demiryurek for pointing it out.

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