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

Question - Writing into the embeddings file for LocalDocs while running multiple instances of GPT4All #2309

Open
SINAPSA-IC opened this issue May 6, 2024 · 1 comment
Labels
bug-unconfirmed chat gpt4all-chat issues

Comments

@SINAPSA-IC
Copy link

Hello.

Yet again, didn't know where to place this, so to speak, as it is more of a Question than a Discussion... for me, at least.

Given that

  • GPT4Alll v2.7.5, can run in multiple instances, each one with its own LLM being Loaded

  • the conversation may require the use of Local Documents

  • the embeddings database is first being (re)created by the first instance that was started

  • and this process can still be running when another instance of the program is started, with it also trying to Index the Local Documents

  • does the possibility exist that the embeddings file would get corrupted, with two or more instances of the program trying to write the same file? or:

  • is the embeddings file locked for writing, once an instance starts writing into it?

  • as such, is it possible-probable that the LocalDocs functionality would get broken while running multiple program instances?

@cebtenzzre
Copy link
Member

cebtenzzre commented May 7, 2024

GPT4All is not designed to have multiple instances running in parallel. I don't think multi-window or at least parallel chats are out of the question, but they are not currently implemented. We should implement a way for GPT4All to detect if it is already running (on Windows and Linux - macOS already prevents this AFAIK) and at least prevent another process from being started.

@cebtenzzre cebtenzzre added the chat gpt4all-chat issues label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-unconfirmed chat gpt4all-chat issues
Projects
None yet
Development

No branches or pull requests

2 participants