You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the bug?
It is the same bug as described in the #1666, but with the connector to Azure OpenAI embedding model. I was able to add connector for the Azure OpenAI Ada embedding using this issue: #1367
When attempting to return an embedding for a string containing some German characters like ë, ä, I get the error
[2024-01-17T13:39:57,049][ERROR][o.o.m.e.a.r.RemoteModel ] [05f4d0a3acfe] Failed to call remote model
org.opensearch.OpenSearchStatusException: Error from remote service: {
"error": {
"message": "Your request contained invalid JSON: 'utf-8' codec can't decode byte 0xeb in position 43: invalid continuation byte",
"type": "invalid_request_error",
"param": null,
"code": null
}
}
When I remove the German character it works. I am retrieving the embedding from the _predict endpoint:
POST http://localhost:9200/_plugins/_ml/models/{model_id}/_predict
{
"parameters": {
"input": ["This is a string containing Moët Hennessy"]
}
}
Removing the special character and replacing it with e works. If I request the embedding directly from Azure Open AI (with special character) it works fine.
How can one reproduce the bug?
Steps to reproduce the behavior:
@ylwu-amzn Thanks for fixing the issue. Unfortunately, the problem still persists if the OpenSearch cluster is deployed on Cloud (managed by AWS). OpenSearch version: 2.13.
What is the bug?
It is the same bug as described in the #1666, but with the connector to Azure OpenAI embedding model. I was able to add connector for the Azure OpenAI Ada embedding using this issue:
#1367
When attempting to return an embedding for a string containing some German characters like ë, ä, I get the error
When I remove the German character it works. I am retrieving the embedding from the _predict endpoint:
Removing the special character and replacing it with e works. If I request the embedding directly from Azure Open AI (with special character) it works fine.
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Embedding should be returned for strings containing special characters.
What is your host/environment?
Do you have any screenshots?
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: