private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

Getting this error : 1 validation error for GPT4All . Invalid model directory (type=value_error)

Open ar-ohi-srivastav opened this issue 2 years ago • 5 comments

ar-ohi-srivastav avatar Jun 03 '23 13:06 ar-ohi-srivastav

My .env file PERSIST_DIRECTORY=db MODEL_TYPE=GPT4All MODEL_PATH=Downloads/ggml-gpt4all-j-v1.3-groovy.bin EMBEDDINGS_MODEL_NAME=all-MiniLM-L6-v2 MODEL_N_CTX=1000 TARGET_SOURCE_CHUNKS=4

ar-ohi-srivastav avatar Jun 03 '23 13:06 ar-ohi-srivastav

Did you download the model into models? See this: https://github.com/imartinez/privateGPT/issues/78#issuecomment-1546545092

I had this error too but then followed that comment to download the models and now working. Downloading the model would be a small improvement to the README that I glossed over.

dnordgren avatar Jun 03 '23 13:06 dnordgren

Did you download the model into models? See this: #78 (comment)

That seems to do it, they should update the README.

arnaupool avatar Jun 04 '23 10:06 arnaupool

Did you download the model into models? See this: #78 (comment)

I had this error too but then followed that comment to download the models and now working. Downloading the model would be a small improvement to the README that I glossed over.

The comment mentions two models to be downloaded. Is it using two models or just one?

harsiddhdave44 avatar Jun 04 '23 13:06 harsiddhdave44

Did you download the model into models? See this: #78 (comment) I had this error too but then followed that comment to download the models and now working. Downloading the model would be a small improvement to the README that I glossed over.

The comment mentions two models to be downloaded. Is it using two models or just one?

Just the one provided.

arnaupool avatar Jun 04 '23 13:06 arnaupool

The model path is relative, you have to provide the full path or relative path. I have no idea how to explain the concept.

maozdemir avatar Jun 04 '23 21:06 maozdemir

@dnordgren thanks it worked

ar-ohi-srivastav avatar Jun 05 '23 07:06 ar-ohi-srivastav