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

The deployment is version 1.9.1. When using the local vector model for vectorization processing, an error occurs. #2046

Open
szhong20 opened this issue Jan 20, 2025 · 0 comments

Comments

@szhong20
Copy link

部署的是1.9.1版本,在使用本地向量模型向量化处理的时候,出现报错
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2025-01-20 17:55:44 向量化段落:c8eb6ba6-d70c-11ef-be73-82e3c21abf47出现错误Expecting value: line 1 column 1 (char 0)Traceback (most recent call last):
File "/opt/py3/lib/python3.11/site-packages/requests/models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/maxkb/app/apps/common/event/listener_manage.py", line 138, in embedding_by_paragraph
VectorStore.get_embedding_vector().batch_save(data_list, embedding_model, is_the_task_interrupted)
File "/opt/maxkb/app/apps/embedding/vector/base_vector.py", line 102, in batch_save
self._batch_save(child_array, embedding, is_the_task_interrupted)
File "/opt/maxkb/app/apps/embedding/vector/pg_vector.py", line 62, in _batch_save
embeddings = embedding.embed_documents(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/maxkb/app/apps/setting/models_provider/impl/local_model_provider/model/embedding.py", line 44, in embed_documents
result = res.json()
^^^^^^^^^^
File "/opt/py3/lib/python3.11/site-packages/requests/models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

这个报错,说明后台没有拿到Json格式的文本,不知道是不是哪里配置有问题

image
image
image

Originally posted by @szhong20 in #2045

@shaohuzhang1 shaohuzhang1 changed the title 部署的是1.9.1版本,在使用本地向量模型向量化处理的时候,出现报错 The deployment is version 1.9.1. When using the local vector model for vectorization processing, an error occurs. Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant