Versions: 3.3
Describe the issue: I am getting an error when creating a semantic filed with a remote model based on this guide.
Configuration:
{
"name": "OpenAI embedding model",
"model_group_id": "XXXX",
"algorithm": "REMOTE",
"model_version": "1",
"description": "test model",
"model_state": "DEPLOYED",
"created_time": 1765476293237,
"last_updated_time": 1765564615515,
"last_deployed_time": 1765564615514,
"auto_redeploy_retry_times": 0,
"planning_worker_node_count": 1,
"current_worker_node_count": 1,
"planning_worker_nodes": [
"XXXXX"
],
"deploy_to_all_nodes": true,
"is_hidden": false,
"connector_id": "XXXXX"
}
Relevant Logs or Screenshots:
If I try to create a simple index with semantic field mapping as shown in the docs:
PUT /my-nlp-index
{
"settings": {
"index": {
"knn": true
}
},
"mappings": {
"properties": {
"passage": {
"type": "semantic",
"model_id": "XXXXX"
}
}
}
}
I get the following error:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Failed to transform the mapping for the semantic field at passage due to Model config is null for the remote model XXXXX."
}
],
"type": "illegal_argument_exception",
"reason": "Failed to transform the mapping for the semantic field at passage due to Model config is null for the remote model XXXXX.",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Model config is null for the remote model XXXXX."
}
},
"status": 400
}