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

🐛 Bug Report: Error in faiss::FileIOReader::FileIOReader(const char*) #768

Closed
2 tasks done
kevin-pki opened this issue Nov 8, 2023 · 2 comments
Closed
2 tasks done

Comments

@kevin-pki
Copy link

kevin-pki commented Nov 8, 2023

📜 Description

I installed DocsGPT myself, used default, then asked and returned 500 errors.
/api/answer
request
{
"question": "What is DocsGPT?",
"api_key": "",
"embeddings_key": "",
"history": [
{
"prompt": "What is DocsGPT?"
}
],
"active_docs": "local/default/",
"conversation_id": null
}
return
{
"error": "Internal Server Error",
"message": "You exceeded your current quota, please check your plan and billing details."
}

Use python 3.11.1
/api/answer
request
{
"question": "What is DocsGPT?",
"api_key": "",
"embeddings_key": "",
"history": [
{
"prompt": "What is DocsGPT?"
}
],
"active_docs": "python/.project/3.11.1/openai_text-embedding-ada-002/",
"conversation_id": null
}
return
{
"error": "Internal Server Error",
"message": "Error in faiss::FileIOReader::FileIOReader(const char*) at /project/faiss/faiss/impl/io.cpp:67: Error: 'f' failed: could not open application/vectors/python/.project/3.11.1/openai_text-embedding-ada-002/index.faiss for reading: No such file or directory"
}

👟 Reproduction steps

I installed DocsGPT myself, used default, then asked and returned 500 errors
/api/answer
request
{
"question": "What is DocsGPT?",
"api_key": "",
"embeddings_key": "",
"history": [
{
"prompt": "What is DocsGPT?"
}
],
"active_docs": "local/default/",
"conversation_id": null
}
return
{
"error": "Internal Server Error",
"message": "You exceeded your current quota, please check your plan and billing details."
}

Use python 3.11.1
/api/answer
request
{
"question": "What is DocsGPT?",
"api_key": "",
"embeddings_key": "",
"history": [
{
"prompt": "What is DocsGPT?"
}
],
"active_docs": "python/.project/3.11.1/openai_text-embedding-ada-002/",
"conversation_id": null
}
return
{
"error": "Internal Server Error",
"message": "Error in faiss::FileIOReader::FileIOReader(const char*) at /project/faiss/faiss/impl/io.cpp:67: Error: 'f' failed: could not open application/vectors/python/.project/3.11.1/openai_text-embedding-ada-002/index.faiss for reading: No such file or directory"
}

👍 Expected behavior

Get the answer

👎 Actual Behavior with Screenshots

return 500 error

💻 Operating system

Linux

What browsers are you seeing the problem on?

No response

🤖 What development environment are you experiencing this bug on?

Docker

🔒 Did you set the correct environment variables in the right path? List the environment variable names (not values please!)

No response

📃 Provide any additional context for the Bug.

No response

📖 Relevant log output

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

🔗 Are you willing to submit PR?

None

🧑‍⚖️ Code of Conduct

  • I agree to follow this project's Code of Conduct
@dartpain dartpain changed the title 🐛 Bug Report: 🐛 Bug Report: Error in faiss::FileIOReader::FileIOReader(const char*) Nov 10, 2023
@dartpain
Copy link
Contributor

So you launched with docker-compose, whats in your .env file?

@kevin-pki
Copy link
Author

So you launched with docker-compose, whats in your .env file?

yes

.env file:
API_KEY=
LLM_NAME=openai
VITE_API_STREAMING=false

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