mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Obs AI Assistant] Use sparse_vector
instead of text_expansion
(#202891)
Closes #202313 The [text expansion query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-text-expansion-query.html) was deprecated in 8.15 and is being replaced by [sparse vector query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-sparse-vector-query.html).
This commit is contained in:
parent
9e1ff1f95d
commit
30c7ce6a15
1 changed files with 5 additions and 6 deletions
|
@ -155,12 +155,11 @@ async function recallFromLegacyConnectors({
|
|||
bool: {
|
||||
should: [
|
||||
{
|
||||
text_expansion: {
|
||||
[vectorField]: {
|
||||
model_text: text,
|
||||
model_id: modelId,
|
||||
boost,
|
||||
},
|
||||
sparse_vector: {
|
||||
field: vectorField,
|
||||
query: text,
|
||||
inference_id: modelId,
|
||||
boost,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue