generated from langchain-ai/integration-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Content Parse Exception at Similarity Search due to "model_id doesn't support values of type: VALUE_NULL" #57
Comments
A complete stack trace of the error would provide additional context, because it isn't clear to me which API is actually failing. |
Status Description
BadRequestError('x_content_parse_exception', meta=ApiResponseMeta(status=400, http_version='1.1', headers={'Content-Length': '536', 'Content-Type': 'application/vnd.elasticsearch+json;compatible-with=8', 'X-Cloud-Request-Id': '1MzcKiMQSxadcuBLAEuk-A', 'X-Elastic-Product': 'Elasticsearch', 'X-Found-Handling-Cluster': '5a2c769be6384728b57297ccb80933c7', 'X-Found-Handling-Instance': 'instance-0000000011', 'Date': 'Fri, 06 Dec 2024 12:32:17 GMT'}, duration=0.07297730445861816, node=NodeConfig(scheme='https', host='<link to elastic>, port=443, path_prefix='', headers={'user-agent': 'elasticsearch-py/8.15.0 (Python/3.11.2; elastic-transport/8.15.0)'}, connections_per_node=10, request_timeout=10.0, http_compress=False, verify_certs=True, ca_certs=None, client_cert=None, client_key=None, ssl_assert_hostname=None, ssl_assert_fingerprint=None, ssl_version=None, ssl_context=None, ssl_show_warn=True, _extras={})), body={'error': {'root_cause': [{'type': 'x_content_parse_exception', 'reason': "[1:142] [text_embedding] model_id doesn't support values of type: VALUE_NULL"}], 'type': 'x_content_parse_exception', 'reason': '[1:142] [knn] failed to parse field [query_vector_builder]', 'caused_by': {'type': 'x_content_parse_exception', 'reason': '[1:142] [query_vector_builder] failed to parse field [text_embedding]', 'caused_by': {'type': 'x_content_parse_exception', 'reason': "[1:142] [text_embedding] model_id doesn't support values of type: VALUE_NULL"}}}, 'status': 400})Traceback (most recent call last): File "c:\Users\<path to venvs>\site-packages\langchain_core\tools.py", line 590, in run response = context.run(self._run, *tool_args, **tool_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File <path to file>", line 764, in similarity_search hits = self._store.search( ^^^^^^^^^^^^^^^^^^^ File <path to file>, line 281, in search response = self.client.search( ^^^^^^^^^^^^^^^^^^^ File "c:\Users\<path to venvs>\elasticsearch\_sync\client\utils.py", line 446, in wrapped return api(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^ File "c:\Users\<path to venvs>\site-packages\elasticsearch\_sync\client\__init__.py", line 4149, in search return self.perform_request( # type: ignore[return-value] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\<path to venvs\site-packages\elasticsearch\_sync\client\_base.py", line 271, in perform_request response = self._perform_request( ^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\<path to venvs\site-packages\elasticsearch\_sync\client\_base.py", line 352, in _perform_request raise HTTP_EXCEPTIONS.get(meta.status, ApiError)( elasticsearch.BadRequestError: BadRequestError(400, 'x_content_parse_exception', "[1:142] [text_embedding] model_id doesn't support values of type: VALUE_NULL") @miguelgrinberg I had to anonymize couple of path information as it contained sensitive information, but this should not be related to the eroor anyways.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there,
I recently got back to a ElasticDB relying LLM project and got hit with following error when running a query (although i have not updated dependencies):
BadRequestError: BadRequestError(400, 'x_content_parse_exception', "[1:142] [text_embedding] model_id doesn't support values of type: VALUE_NULL")
Executing script where it fails:
Dependency versions:
Really looking forward for any sort of help. I saw that the
model_id
was newly introduced to also support hosted models in elastic. But i am not using hosted models in Elastic.The text was updated successfully, but these errors were encountered: