Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): Latest on Docker
Describe the issue: I am trying to use new index field type “semantic” in a index as follows:
PUT /test2
{
“settings”: {
“index”: {
“knn”: “true”
}
},
“mappings”: {
“properties”: {
“submissionCombined”: {
“type”: “semantic”,
“model_id”: “5ZOVKpkBwr2LEJfgZHiJ”,
“search_model_id”: “5ZOVKpkBwr2LEJfgZHiJ”,
“semantic_info_field_name”: “submissionCombined_Embedding2”,
“chunking”: true
}
}
}
}
Here model is “huggingface/sentence-transformers/paraphrase-mpnet-base-v2” which uses space_type = cosine and a OS local model.
When I try to create index, error is
"type": "mapper_parsing_exception",
"reason": "Invalid space_type: cosine"
Is there a bug or semantic does not support models w/ cosine space type?
Thanks
Configuration:
Relevant Logs or Screenshots: