Hi,
we have added a custom model among the machine learning models.
During testing, we obtain, as a result, a vector that we use in the following query:
GET indexname/_search
{
"query": {
"script_score": {
"query": {
"exists": {
"field": "content_embedding"
}
},
"script": {
"source": "cosineSimilarity(params.queryVector, 'content_embedding') + 1.0",
"params": {
"queryVector": [
<VECTOR-RESULT-FROM-ML-TEST>
]
}
}
}
}
}
We wonder if there is a possibility to automate the query without necessarily having to write it in DevTools, by copying the vector of obtained results.
Thank you in advance.
Federica