severian42 / GraphRAG-Local-UI

GraphRAG using Local LLMs - Features robust API and multiple apps for Indexing/Prompt Tuning/Query/Chat/Visualizing/Etc. This is meant to be the ultimate GraphRAG/KG local LLM app.
MIT License
1.51k stars 173 forks source link

UnicodeEncodeError: 'gbk' codec can't encode character '\U0001f680' in position 0: illegal multibyte sequence #66

Closed cooldeaaap1 closed 1 month ago

cooldeaaap1 commented 1 month ago

The project I am running locally has encountered an error. It seems that there is an error in the file format, but the file I uploaded is indeed encoded in UTF-8, and the YAML file and input txt file are also encoded in UTF-8. What is the problem? My machine runs on Windows 11, with LLM model Llama3.1 and embedding model nomic-embedded text: latest. Both models are run locally using OLLAMA 微信图片_20240728035021 微信图片_20240728035027 微信图片_20240728035032 微信图片_20240728035110

lovexujia commented 1 month ago

This problem is caused by the project coding, so just adjust the project coding, or specify utf-8 as the installed python environment.

cooldeaaap1 commented 1 month ago

This problem is caused by the project coding, so just adjust the project coding, or specify utf-8 as the installed python environment.

屏幕截图 2024-08-01 232805 but,my python is utf-8

nbdongdong commented 1 month ago

I had a similar problem, how was this problem solved

delbern310 commented 1 month ago

I have the same problem ,but my python environment encoding is utf-8 ,how can I solved?