-
Notifications
You must be signed in to change notification settings - Fork 380
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] failed to Create documents: failed to insert documents: write tcp 172.18.0.4:48130->172.18.0.3:5432: write: connection reset by peer #218
Comments
|
Your Postgres database is running out of memory and crashing. Please see: https://docs.getzep.com/deployment/production/#database-requirements |
I still have the same issue. On a 32GB Cloud VPS, I added the postgres command settings in docker-compose.yaml and have 25GB for maintenance_work_mem, but it still fails with the same error:
when I do in psql "show all;" I can see my settings working
maintenance_work_mem | 25GB How much memory should I have for creating the index ? and are there other settings I should consider changing? Thanks @danielchalef in advance! |
Please would you share your Postgres logs?
You may find this tool useful: https://pgtune.leopard.in.ua/ |
I used the pgtune tool. I now have a 64GB RAM dedicated server and used the suggested settings from pgtune.
|
How large are your document batches and how large are the documents you're uploading? |
It's a combination of about 200 PDF files and 3500+ JSON text files. When saving the index to hard disk, the vector_store JSON file is about 2.7GB. |
How are you chunking the documents? And are you batching your uploads? |
I am using llama_index, if that helps. I am not sure what batching my uploads means. This is a simplified part of the code I have, which is taken from llama_index examples:
This will save the index in storage dir. For Zep API, I changed it to:
Sorry if I'm not answering the question properly. I am pretty new to Zep, LlamaIndex and chatbots in general, so I don't understand all the processes/terminology yet. Thanks again. |
I've updated the Update Zep:
Update
or use the Python package manager of your choice. |
It seems to work when building the index! thank you @danielchalef ! |
Great to hear! |
I am creating a large index using ZepVectorStore with this code
On Zep Docker Logs:
In the beginning it saved the index to the postgres without a problem. But I added a few more documents to the index, and now it won't save at all.
Can you point me to the right direction on how to solve this issue?
Thanks in advance.
The text was updated successfully, but these errors were encountered: