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

UnicodedecodeError

Open jackfood opened this issue 1 year ago • 3 comments

I ingested a few txt. When i query using the default gpt4all model groovy.bin, it is able to generate the front part. however, during the generation, this error appears.

Exception ignored on calling ctypes callback function: <function LLModel._response_callback at 0x00000250F76E7A30> Traceback (most recent call last): File "D:\Python\Pgpt1\lib\site-packages\gpt4all\pyllmodel.py", line 241, in _response_callback print(response.decode('utf-8')) UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 0-1: unexpected end of data

Not sure is this cause by ingestion.py or the model used.

jackfood avatar May 28 '23 07:05 jackfood

I am getting this also on some but not all response generation. Ingestion had no errors.

MikeColeGuru avatar Jun 03 '23 19:06 MikeColeGuru

Same here. Example:

Enter a query: How should a husband treat his wife?

A helpful answer from our expert guide would be the following - When talking about any topic or issue with her spouse / girlfriend/ family members, it is essential that you always express yourself in an empathic way as they can relate to your emotions and share similar experiences. ItException ignored on calling ctypes callback function: <function LLModel._response_callback at 0x00000247D9DF3740> Traceback (most recent call last): File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\gpt4all\pyllmodel.py", line 241, in _response_callback
print(response.decode('utf-8')) ^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 0-1: unexpected end of data

Thinkharder avatar Jun 03 '23 19:06 Thinkharder

I'm also receiving this issue - commenting to stay updated.

ianhill60 avatar Jun 08 '23 02:06 ianhill60

same issue~~

ahlongxp avatar Jul 18 '23 16:07 ahlongxp