ipex-llm icon indicating copy to clipboard operation
ipex-llm copied to clipboard

Langchain-Chatchat error while uploading pdf

Open js333031 opened this issue 1 year ago • 3 comments

RemoteProtocolError: API communication encountered an error: peer closed connection without sending complete message body

Full error logs are attached. Setup of the project is based on instructions provided at this repo. Instructions for entering issues there say to enter the issues here.

ipex-llm-langchain-chatchat.txt

js333031 avatar Jul 16 '24 17:07 js333031

Hi, @js333031,

We noticed that you put embedding model on xpu and llm on cpu. However, Langchain-chatchat is currently not supporting putting embedding model and llm on different devices. Could you please try to put embedding model and llm on the same device?

If you want to run langchain-chatchat on linux with Xeon CPU, please refer to this guide.

Please feel free to ask for any further problem : )

JinBridger avatar Jul 18 '24 01:07 JinBridger

Thank you, that was partially the issue. With large file, another error happens. large-file-error.txt

Can you please tell me how to determine if AMX is being used on 4th Gen Xeon. That's what my system has and I would like to test with and without AMX using same precision in both cases. Can you please provide the steps?

js333031 avatar Jul 18 '24 12:07 js333031

With large file, another error happens. large-file-error.txt

Hi @js333031,

To resolve this issue, you could try to decrease the "max length of each text" for text splitting: image Or if there is a "Table of Contents" page in your PDF, you could also remove that page and have a try again as there could be some bug in text splitting for TOC with lots of ".........................".

Can you please tell me how to determine if AMX is being used on 4th Gen Xeon. That's what my system has and I would like to test with and without AMX using same precision in both cases. Can you please provide the steps?

AMX is automatically used for ipex-llm optimizations on 4th Gen Xeon.

Please let us know for any further questions :)

Oscilloscope98 avatar Jul 19 '24 02:07 Oscilloscope98