Skip to main content

Vector search

This example finds articles by the meaning of a text instead of its words. The articles have the property descriptionEmbedding, a vector whose embedding is calculated by the embedding provider test from the title and the description of each article:

{
"type": "vector",
"embedding": {
"provider": "test",
"source": "document.title != nil && document.description != nil ? document.title + \": \" + document.description : nil"
},
"index": "vector"
}

The search has three steps:

  1. The text-embedding step turns the text of the search into a vector, with the same provider which calculated the vectors of the articles. Vectors of different models can not be compared.
  2. The Elasticsearch step runs a kNN query on descriptionEmbedding. The vector of the first step is inserted with the expression {{ stepResults[0].vector }}. num_candidates is the number of nearest articles which Elasticsearch considers.
  3. The element hydration step returns the articles.
{
"debug": true,
"steps": [
{
"type": "text-embedding",
"query": "a hot drink made from roasted beans",
"parameters": {
"provider": "test"
}
},
{
"type": "elasticsearch-query-dsl-mixin",
"query": {
"knn": {
"field": "descriptionEmbedding",
"query_vector": "{{ stepResults[0].vector }}",
"num_candidates": 10
}
},
"parameters": {
"nodeTypes": [
"KnowledgeArticle"
]
}
},
{
"type": "element-hydration"
}
]
}
[
{
"input": {
"type": "text-embedding",
"query": "a hot drink made from roasted beans",
"parameters": {
"provider": "test",
"stepResults": []
}
},
"step-handler": "text-embedding (App\\EventSystem\\SearchStep\\EventListener\\TextEmbeddingSearchStepEventListener)",
"start": 1796473118.173704,
"end": 1796473118.195801,
"duration": 0.022097110748291016
},
{
"input": {
"type": "elasticsearch-query-dsl-mixin",
"query": {
"knn": {
"field": "descriptionEmbedding",
"query_vector": "{{ stepResults[0].vector }}",
"num_candidates": 10
}
},
"parameters": {
"nodeTypes": [
"KnowledgeArticle"
],
"stepResults": [
{
"vector": [
-0.054718122,
-0.02551928,
-0.13014504,
0.13910435,
-0.002810004,
-0.0011003388,
0.08219624,
-0.056247696,
0.012126958,
-0.0022819187,
0.009840294,
-0.061997037,
-0.0129264835,
-0.09174278,
-0.0097678555,
-0.12304618,
0.10478163,
-0.05345669,
0.036388054,
-0.07405652,
-0.013159641,
0.0037091787,
0.03880684,
0.06388695,
0.03093475,
0.0555467,
0.0393716,
0.0119987605,
-0.075132415,
-0.032086015,
0.040622,
-0.012722814,
-0.011397918,
-0.027727045,
-0.05799789,
0.039716598,
0.062002577,
-0.0682123,
0.02327532,
0.031369824,
0.0020459418,
-0.078436725,
0.09677821,
0.0050926288,
0.041348692,
0.009567434,
-0.03424239,
-0.0028684554,
0.03469422,
-0.040317494,
-0.07942466,
-0.051109005,
0.009977862,
-0.02441452,
-0.01975518,
-0.026258647,
-0.034859028,
-0.04184358,
0.05760303,
0.12070295,
-0.013947464,
0.015065739,
-0.06260997,
0.06587081,
0.027158812,
-0.13537195,
-0.034460302,
0.0065178564,
0.03810368,
-0.046129677,
0.01173078,
0.022677679,
0.0279369,
-0.091428064,
-0.07847096,
-0.047749776,
0.0818418,
0.011471347,
0.044055942,
0.08929741,
-0.018653288,
0.005505317,
0.012703631,
0.05591425,
-0.10422199,
0.044605426,
0.06019406,
-0.030985706,
0.005752906,
0.011138886,
-0.014144396,
0.04758351,
0.06902425,
-0.017963788,
-0.021637144,
0.019536298,
0.006769957,
-0.022757119,
0.025284031,
0.0006940065,
0.0002479628,
0.027541732,
-0.024976535,
-0.01283124,
0.08019524,
0.0046752086,
-0.021812992,
0.07171368,
0.12668993,
-0.015343023,
-0.011354497,
0.014285736,
-0.0692017,
0.004385437,
0.024752388,
-0.0064962707,
0.0638618,
-0.087799944,
0.0055167,
-0.044219468,
-0.018240295,
-0.0089163985,
0.004063729,
-0.019588776,
-0.08572866,
0.016213667,
-0.0095009925,
-1.23003e-33,
0.045160513,
0.0063688005,
0.0019875,
0.01659286,
0.06367106,
-0.0010308316,
-0.10437788,
-0.0067673204,
-0.023170182,
-0.004096994,
-0.02201268,
0.023274986,
-0.06968045,
0.033652734,
0.043223385,
-0.052615754,
-0.11151042,
0.04887781,
0.0055471417,
-0.016836908,
-0.10723153,
0.047373675,
0.051984895,
0.012788626,
-0.05699614,
-0.0034655938,
0.016826663,
-0.112764895,
-0.05893162,
0.022525063,
-0.025633099,
0.009186639,
0.029942622,
0.038436223,
-0.0583017,
-0.049166378,
-0.052878875,
-0.005805853,
0.03246163,
0.08397971,
0.003340828,
-0.010878539,
0.057657976,
0.017800152,
-0.039684452,
0.037175894,
0.02477493,
0.069552384,
-0.027244361,
0.024788206,
0.024114178,
-0.0149380965,
0.12984018,
0.02515264,
-0.048371814,
0.0021845417,
0.064529814,
0.12040479,
0.037742615,
-0.028742332,
-0.05952683,
0.07084332,
-0.029593557,
0.04128018,
-0.03005332,
-0.0011776533,
-0.052877627,
-0.046910245,
0.09814502,
-0.03173824,
0.010478583,
0.07557934,
0.03423314,
-0.07561765,
0.021487482,
-0.038961668,
0.06292335,
0.06325626,
0.0053150575,
0.08221668,
0.013961853,
-0.08832177,
-0.000024646894,
0.05150172,
0.0015672209,
0.056895245,
-0.015809806,
-0.044314694,
0.05399904,
0.022150626,
-0.086533956,
0.0027213325,
0.019226512,
-0.041221604,
0.022756334,
5.532858e-34,
0.07650981,
-0.08995316,
0.020975608,
0.08021074,
0.030202731,
-0.095310465,
-0.0026672466,
-0.019653212,
-0.009648133,
-0.016901696,
0.04508244,
-0.030891811,
0.070389785,
-0.04063427,
0.021587089,
0.023636054,
0.036813516,
0.04125728,
-0.026162967,
-0.010513558,
-0.059919722,
0.033957355,
-0.0021928346,
0.008024228,
0.020641591,
-0.005772432,
0.045024198,
-0.046853073,
-0.074952774,
-0.0132772485,
0.07964524,
-0.08564107,
-0.039590687,
0.008305953,
-0.026549073,
0.0037921346,
0.026759032,
0.0045233457,
0.08207506,
0.004668717,
0.042686053,
0.018194562,
0.025568672,
0.041936837,
0.051845863,
-0.010162313,
-0.06209782,
-0.014954234,
-0.041283015,
0.06970776,
0.04566222,
-0.0732493,
-0.061417863,
0.052797645,
-0.022227507,
-0.08976798,
-0.012496964,
0.021901345,
0.0053564315,
-0.015153666,
-0.013264981,
0.04762884,
0.02054711,
-0.0023828335,
0.0686804,
0.025797697,
-0.0642225,
0.003112196,
0.020525323,
-0.0057031782,
0.1927396,
-0.046947286,
-0.024646861,
0.0065832427,
0.08786187,
0.01632789,
-0.043345515,
0.022007579,
-0.004277141,
0.036612425,
-0.014415267,
0.03366456,
-0.0061870725,
0.033447493,
0.043843117,
-0.017916601,
0.033516422,
-0.005669631,
0.015976138,
0.044024512,
0.026614668,
-0.0033883194,
-0.05562216,
0.03412068,
0.064344175,
-1.3723024e-8,
-0.022780066,
-0.071850434,
-0.08184662,
0.057480734,
0.027477503,
-0.016336748,
0.013524963,
-0.06501582,
0.02927215,
-0.018908935,
-0.015561687,
0.07843814,
0.06598097,
0.05480167,
-0.06801766,
-0.07040719,
0.007973716,
0.03248511,
-0.00051618693,
0.0720093,
0.03265666,
-0.04926605,
0.11496523,
0.021011196,
-0.06730545,
-0.04405756,
0.019091507,
-0.028390639,
0.15115158,
-0.06094965,
-0.080813214,
0.08208944,
-0.0772237,
-0.0041050217,
-0.033134725,
0.009805723,
0.0050910055,
-0.010136851,
-0.04653649,
-0.04135502,
-0.07511346,
-0.03883598,
-0.021355445,
-0.037863005,
-0.14680718,
-0.05552395,
-0.098853104,
0.070923075,
-0.0332475,
0.03475081,
0.0008714023,
0.06621324,
0.07475198,
0.011814868,
-0.054695915,
-0.06350234,
0.03690434,
0.0021905268,
0.017828064,
-0.037981234,
0.070620164,
0.01978183,
0.027536923,
-0.012586549
],
"provider": "test",
"dimensions": 384
}
]
}
},
"step-handler": "elasticsearch-query-dsl-mixin (App\\EventSystem\\SearchStep\\EventListener\\ElasticsearchQueryDslMixinSearchStepEventListener)",
"start": 1796473118.196239,
"indices": "node_knowledgearticle",
"combinedQuery": {
"_source": [
"_id"
],
"from": 0,
"size": 25,
"query": {
"bool": {
"must": [
{
"knn": {
"field": "descriptionEmbedding",
"query_vector": [
-0.054718122,
-0.02551928,
-0.13014504,
0.13910435,
-0.002810004,
-0.0011003388,
0.08219624,
-0.056247696,
0.012126958,
-0.0022819187,
0.009840294,
-0.061997037,
-0.0129264835,
-0.09174278,
-0.0097678555,
-0.12304618,
0.10478163,
-0.05345669,
0.036388054,
-0.07405652,
-0.013159641,
0.0037091787,
0.03880684,
0.06388695,
0.03093475,
0.0555467,
0.0393716,
0.0119987605,
-0.075132415,
-0.032086015,
0.040622,
-0.012722814,
-0.011397918,
-0.027727045,
-0.05799789,
0.039716598,
0.062002577,
-0.0682123,
0.02327532,
0.031369824,
0.0020459418,
-0.078436725,
0.09677821,
0.0050926288,
0.041348692,
0.009567434,
-0.03424239,
-0.0028684554,
0.03469422,
-0.040317494,
-0.07942466,
-0.051109005,
0.009977862,
-0.02441452,
-0.01975518,
-0.026258647,
-0.034859028,
-0.04184358,
0.05760303,
0.12070295,
-0.013947464,
0.015065739,
-0.06260997,
0.06587081,
0.027158812,
-0.13537195,
-0.034460302,
0.0065178564,
0.03810368,
-0.046129677,
0.01173078,
0.022677679,
0.0279369,
-0.091428064,
-0.07847096,
-0.047749776,
0.0818418,
0.011471347,
0.044055942,
0.08929741,
-0.018653288,
0.005505317,
0.012703631,
0.05591425,
-0.10422199,
0.044605426,
0.06019406,
-0.030985706,
0.005752906,
0.011138886,
-0.014144396,
0.04758351,
0.06902425,
-0.017963788,
-0.021637144,
0.019536298,
0.006769957,
-0.022757119,
0.025284031,
0.0006940065,
0.0002479628,
0.027541732,
-0.024976535,
-0.01283124,
0.08019524,
0.0046752086,
-0.021812992,
0.07171368,
0.12668993,
-0.015343023,
-0.011354497,
0.014285736,
-0.0692017,
0.004385437,
0.024752388,
-0.0064962707,
0.0638618,
-0.087799944,
0.0055167,
-0.044219468,
-0.018240295,
-0.0089163985,
0.004063729,
-0.019588776,
-0.08572866,
0.016213667,
-0.0095009925,
-1.23003e-33,
0.045160513,
0.0063688005,
0.0019875,
0.01659286,
0.06367106,
-0.0010308316,
-0.10437788,
-0.0067673204,
-0.023170182,
-0.004096994,
-0.02201268,
0.023274986,
-0.06968045,
0.033652734,
0.043223385,
-0.052615754,
-0.11151042,
0.04887781,
0.0055471417,
-0.016836908,
-0.10723153,
0.047373675,
0.051984895,
0.012788626,
-0.05699614,
-0.0034655938,
0.016826663,
-0.112764895,
-0.05893162,
0.022525063,
-0.025633099,
0.009186639,
0.029942622,
0.038436223,
-0.0583017,
-0.049166378,
-0.052878875,
-0.005805853,
0.03246163,
0.08397971,
0.003340828,
-0.010878539,
0.057657976,
0.017800152,
-0.039684452,
0.037175894,
0.02477493,
0.069552384,
-0.027244361,
0.024788206,
0.024114178,
-0.0149380965,
0.12984018,
0.02515264,
-0.048371814,
0.0021845417,
0.064529814,
0.12040479,
0.037742615,
-0.028742332,
-0.05952683,
0.07084332,
-0.029593557,
0.04128018,
-0.03005332,
-0.0011776533,
-0.052877627,
-0.046910245,
0.09814502,
-0.03173824,
0.010478583,
0.07557934,
0.03423314,
-0.07561765,
0.021487482,
-0.038961668,
0.06292335,
0.06325626,
0.0053150575,
0.08221668,
0.013961853,
-0.08832177,
-0.000024646894,
0.05150172,
0.0015672209,
0.056895245,
-0.015809806,
-0.044314694,
0.05399904,
0.022150626,
-0.086533956,
0.0027213325,
0.019226512,
-0.041221604,
0.022756334,
5.532858e-34,
0.07650981,
-0.08995316,
0.020975608,
0.08021074,
0.030202731,
-0.095310465,
-0.0026672466,
-0.019653212,
-0.009648133,
-0.016901696,
0.04508244,
-0.030891811,
0.070389785,
-0.04063427,
0.021587089,
0.023636054,
0.036813516,
0.04125728,
-0.026162967,
-0.010513558,
-0.059919722,
0.033957355,
-0.0021928346,
0.008024228,
0.020641591,
-0.005772432,
0.045024198,
-0.046853073,
-0.074952774,
-0.0132772485,
0.07964524,
-0.08564107,
-0.039590687,
0.008305953,
-0.026549073,
0.0037921346,
0.026759032,
0.0045233457,
0.08207506,
0.004668717,
0.042686053,
0.018194562,
0.025568672,
0.041936837,
0.051845863,
-0.010162313,
-0.06209782,
-0.014954234,
-0.041283015,
0.06970776,
0.04566222,
-0.0732493,
-0.061417863,
0.052797645,
-0.022227507,
-0.08976798,
-0.012496964,
0.021901345,
0.0053564315,
-0.015153666,
-0.013264981,
0.04762884,
0.02054711,
-0.0023828335,
0.0686804,
0.025797697,
-0.0642225,
0.003112196,
0.020525323,
-0.0057031782,
0.1927396,
-0.046947286,
-0.024646861,
0.0065832427,
0.08786187,
0.01632789,
-0.043345515,
0.022007579,
-0.004277141,
0.036612425,
-0.014415267,
0.03366456,
-0.0061870725,
0.033447493,
0.043843117,
-0.017916601,
0.033516422,
-0.005669631,
0.015976138,
0.044024512,
0.026614668,
-0.0033883194,
-0.05562216,
0.03412068,
0.064344175,
-1.3723024e-8,
-0.022780066,
-0.071850434,
-0.08184662,
0.057480734,
0.027477503,
-0.016336748,
0.013524963,
-0.06501582,
0.02927215,
-0.018908935,
-0.015561687,
0.07843814,
0.06598097,
0.05480167,
-0.06801766,
-0.07040719,
0.007973716,
0.03248511,
-0.00051618693,
0.0720093,
0.03265666,
-0.04926605,
0.11496523,
0.021011196,
-0.06730545,
-0.04405756,
0.019091507,
-0.028390639,
0.15115158,
-0.06094965,
-0.080813214,
0.08208944,
-0.0772237,
-0.0041050217,
-0.033134725,
0.009805723,
0.0050910055,
-0.010136851,
-0.04653649,
-0.04135502,
-0.07511346,
-0.03883598,
-0.021355445,
-0.037863005,
-0.14680718,
-0.05552395,
-0.098853104,
0.070923075,
-0.0332475,
0.03475081,
0.0008714023,
0.06621324,
0.07475198,
0.011814868,
-0.054695915,
-0.06350234,
0.03690434,
0.0021905268,
0.017828064,
-0.037981234,
0.070620164,
0.01978183,
0.027536923,
-0.012586549
],
"num_candidates": 10,
"filter": [
{
"bool": {
"should": [
{
"terms": {
"_groupsWithSearchAccess.keyword": []
}
},
{
"term": {
"_usersWithSearchAccess.keyword": {
"value": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh"
}
}
}
],
"minimum_should_match": 1
}
}
],
"_name": "descriptionEmbedding"
}
}
],
"filter": [
{
"bool": {
"should": [
{
"terms": {
"_groupsWithSearchAccess.keyword": []
}
},
{
"term": {
"_usersWithSearchAccess.keyword": {
"value": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh"
}
}
}
],
"minimum_should_match": 1
}
}
]
}
}
},
"end": 1796473118.315804,
"duration": 0.119565
},
{
"input": {
"type": "element-hydration",
"query": null,
"parameters": {
"stepResults": [
{
"vector": [
-0.054718122,
-0.02551928,
-0.13014504,
0.13910435,
-0.002810004,
-0.0011003388,
0.08219624,
-0.056247696,
0.012126958,
-0.0022819187,
0.009840294,
-0.061997037,
-0.0129264835,
-0.09174278,
-0.0097678555,
-0.12304618,
0.10478163,
-0.05345669,
0.036388054,
-0.07405652,
-0.013159641,
0.0037091787,
0.03880684,
0.06388695,
0.03093475,
0.0555467,
0.0393716,
0.0119987605,
-0.075132415,
-0.032086015,
0.040622,
-0.012722814,
-0.011397918,
-0.027727045,
-0.05799789,
0.039716598,
0.062002577,
-0.0682123,
0.02327532,
0.031369824,
0.0020459418,
-0.078436725,
0.09677821,
0.0050926288,
0.041348692,
0.009567434,
-0.03424239,
-0.0028684554,
0.03469422,
-0.040317494,
-0.07942466,
-0.051109005,
0.009977862,
-0.02441452,
-0.01975518,
-0.026258647,
-0.034859028,
-0.04184358,
0.05760303,
0.12070295,
-0.013947464,
0.015065739,
-0.06260997,
0.06587081,
0.027158812,
-0.13537195,
-0.034460302,
0.0065178564,
0.03810368,
-0.046129677,
0.01173078,
0.022677679,
0.0279369,
-0.091428064,
-0.07847096,
-0.047749776,
0.0818418,
0.011471347,
0.044055942,
0.08929741,
-0.018653288,
0.005505317,
0.012703631,
0.05591425,
-0.10422199,
0.044605426,
0.06019406,
-0.030985706,
0.005752906,
0.011138886,
-0.014144396,
0.04758351,
0.06902425,
-0.017963788,
-0.021637144,
0.019536298,
0.006769957,
-0.022757119,
0.025284031,
0.0006940065,
0.0002479628,
0.027541732,
-0.024976535,
-0.01283124,
0.08019524,
0.0046752086,
-0.021812992,
0.07171368,
0.12668993,
-0.015343023,
-0.011354497,
0.014285736,
-0.0692017,
0.004385437,
0.024752388,
-0.0064962707,
0.0638618,
-0.087799944,
0.0055167,
-0.044219468,
-0.018240295,
-0.0089163985,
0.004063729,
-0.019588776,
-0.08572866,
0.016213667,
-0.0095009925,
-1.23003e-33,
0.045160513,
0.0063688005,
0.0019875,
0.01659286,
0.06367106,
-0.0010308316,
-0.10437788,
-0.0067673204,
-0.023170182,
-0.004096994,
-0.02201268,
0.023274986,
-0.06968045,
0.033652734,
0.043223385,
-0.052615754,
-0.11151042,
0.04887781,
0.0055471417,
-0.016836908,
-0.10723153,
0.047373675,
0.051984895,
0.012788626,
-0.05699614,
-0.0034655938,
0.016826663,
-0.112764895,
-0.05893162,
0.022525063,
-0.025633099,
0.009186639,
0.029942622,
0.038436223,
-0.0583017,
-0.049166378,
-0.052878875,
-0.005805853,
0.03246163,
0.08397971,
0.003340828,
-0.010878539,
0.057657976,
0.017800152,
-0.039684452,
0.037175894,
0.02477493,
0.069552384,
-0.027244361,
0.024788206,
0.024114178,
-0.0149380965,
0.12984018,
0.02515264,
-0.048371814,
0.0021845417,
0.064529814,
0.12040479,
0.037742615,
-0.028742332,
-0.05952683,
0.07084332,
-0.029593557,
0.04128018,
-0.03005332,
-0.0011776533,
-0.052877627,
-0.046910245,
0.09814502,
-0.03173824,
0.010478583,
0.07557934,
0.03423314,
-0.07561765,
0.021487482,
-0.038961668,
0.06292335,
0.06325626,
0.0053150575,
0.08221668,
0.013961853,
-0.08832177,
-0.000024646894,
0.05150172,
0.0015672209,
0.056895245,
-0.015809806,
-0.044314694,
0.05399904,
0.022150626,
-0.086533956,
0.0027213325,
0.019226512,
-0.041221604,
0.022756334,
5.532858e-34,
0.07650981,
-0.08995316,
0.020975608,
0.08021074,
0.030202731,
-0.095310465,
-0.0026672466,
-0.019653212,
-0.009648133,
-0.016901696,
0.04508244,
-0.030891811,
0.070389785,
-0.04063427,
0.021587089,
0.023636054,
0.036813516,
0.04125728,
-0.026162967,
-0.010513558,
-0.059919722,
0.033957355,
-0.0021928346,
0.008024228,
0.020641591,
-0.005772432,
0.045024198,
-0.046853073,
-0.074952774,
-0.0132772485,
0.07964524,
-0.08564107,
-0.039590687,
0.008305953,
-0.026549073,
0.0037921346,
0.026759032,
0.0045233457,
0.08207506,
0.004668717,
0.042686053,
0.018194562,
0.025568672,
0.041936837,
0.051845863,
-0.010162313,
-0.06209782,
-0.014954234,
-0.041283015,
0.06970776,
0.04566222,
-0.0732493,
-0.061417863,
0.052797645,
-0.022227507,
-0.08976798,
-0.012496964,
0.021901345,
0.0053564315,
-0.015153666,
-0.013264981,
0.04762884,
0.02054711,
-0.0023828335,
0.0686804,
0.025797697,
-0.0642225,
0.003112196,
0.020525323,
-0.0057031782,
0.1927396,
-0.046947286,
-0.024646861,
0.0065832427,
0.08786187,
0.01632789,
-0.043345515,
0.022007579,
-0.004277141,
0.036612425,
-0.014415267,
0.03366456,
-0.0061870725,
0.033447493,
0.043843117,
-0.017916601,
0.033516422,
-0.005669631,
0.015976138,
0.044024512,
0.026614668,
-0.0033883194,
-0.05562216,
0.03412068,
0.064344175,
-1.3723024e-8,
-0.022780066,
-0.071850434,
-0.08184662,
0.057480734,
0.027477503,
-0.016336748,
0.013524963,
-0.06501582,
0.02927215,
-0.018908935,
-0.015561687,
0.07843814,
0.06598097,
0.05480167,
-0.06801766,
-0.07040719,
0.007973716,
0.03248511,
-0.00051618693,
0.0720093,
0.03265666,
-0.04926605,
0.11496523,
0.021011196,
-0.06730545,
-0.04405756,
0.019091507,
-0.028390639,
0.15115158,
-0.06094965,
-0.080813214,
0.08208944,
-0.0772237,
-0.0041050217,
-0.033134725,
0.009805723,
0.0050910055,
-0.010136851,
-0.04653649,
-0.04135502,
-0.07511346,
-0.03883598,
-0.021355445,
-0.037863005,
-0.14680718,
-0.05552395,
-0.098853104,
0.070923075,
-0.0332475,
0.03475081,
0.0008714023,
0.06621324,
0.07475198,
0.011814868,
-0.054695915,
-0.06350234,
0.03690434,
0.0021905268,
0.017828064,
-0.037981234,
0.070620164,
0.01978183,
0.027536923,
-0.012586549
],
"provider": "test",
"dimensions": 384
},
{
"elements": [
{
"id": "02IiNr0GPRh9FOgqcIYpqkrpwVgmyBJi0Utt7",
"type": "KnowledgeArticle",
"metadata": {
"score": 0.82979465,
"matchedQueries": {
"descriptionEmbedding": 0.82979465
}
}
},
{
"id": "02IiNr0GPRh8yeu4k5NbyGhla4mDL5NbcbpsV",
"type": "KnowledgeArticle",
"metadata": {
"score": 0.66170645,
"matchedQueries": {
"descriptionEmbedding": 0.66170645
}
}
},
{
"id": "02IiNr0GPRh8qI11qqd5gmiDJDW1RDIJ6shU3",
"type": "KnowledgeArticle",
"metadata": {
"score": 0.60950875,
"matchedQueries": {
"descriptionEmbedding": 0.60950875
}
}
},
{
"id": "02IiNr0GPRh971naZquHFfpuOO89XxD01he2z",
"type": "KnowledgeArticle",
"metadata": {
"score": 0.53638935,
"matchedQueries": {
"descriptionEmbedding": 0.53638935
}
}
}
],
"totalHits": 4,
"maxScore": 0.82979465
}
]
}
},
"step-handler": "element-hydration (App\\EventSystem\\SearchStep\\EventListener\\ElementHydrationSearchStepEventListener)",
"start": 1796473118.316017,
"accessibleElementIds": [
"02IiNr0GPRh9FOgqcIYpqkrpwVgmyBJi0Utt7",
"02IiNr0GPRh8yeu4k5NbyGhla4mDL5NbcbpsV",
"02IiNr0GPRh8qI11qqd5gmiDJDW1RDIJ6shU3",
"02IiNr0GPRh971naZquHFfpuOO89XxD01he2z"
],
"end": 1796473118.383879,
"duration": 0.067862
}
]
{
"type": "_SearchResultResponse",
"results": [
{
"type": "KnowledgeArticle",
"id": "02IiNr0GPRh9FOgqcIYpqkrpwVgmyBJi0Utt7",
"data": {
"scenario": "endpoint.search.embedding",
"description": "Strong coffee, brewed by forcing hot water through finely ground coffee beans.",
"title": "Espresso",
"createdAt": "2026-12-05T12:15:19+00:00",
"createdBy": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh",
"updatedAt": "2026-12-05T12:15:19+00:00",
"updatedBy": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh"
},
"metadata": {
"score": 0.82979465,
"matchedQueries": {
"descriptionEmbedding": 0.82979465
}
}
},
{
"type": "KnowledgeArticle",
"id": "02IiNr0GPRh8yeu4k5NbyGhla4mDL5NbcbpsV",
"data": {
"scenario": "endpoint.search.embedding",
"description": "Bread made from a fermented starter of flour and water, with a tangy taste.",
"title": "Sourdough bread",
"createdAt": "2026-12-05T12:15:19+00:00",
"createdBy": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh",
"updatedAt": "2026-12-05T12:15:19+00:00",
"updatedBy": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh"
},
"metadata": {
"score": 0.66170645,
"matchedQueries": {
"descriptionEmbedding": 0.66170645
}
}
},
{
"type": "KnowledgeArticle",
"id": "02IiNr0GPRh8qI11qqd5gmiDJDW1RDIJ6shU3",
"data": {
"scenario": "endpoint.search.embedding",
"description": "A tropical plant with large, split leaves, which grows well in bright indirect light.",
"title": "Monstera deliciosa",
"createdAt": "2026-12-05T12:15:19+00:00",
"createdBy": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh",
"updatedAt": "2026-12-05T12:15:19+00:00",
"updatedBy": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh"
},
"metadata": {
"score": 0.60950875,
"matchedQueries": {
"descriptionEmbedding": 0.60950875
}
}
},
{
"type": "KnowledgeArticle",
"id": "02IiNr0GPRh971naZquHFfpuOO89XxD01he2z",
"data": {
"scenario": "endpoint.search.embedding",
"description": "A bicycle with suspension and wide tires for riding on rough trails.",
"title": "Mountain bike",
"createdAt": "2026-12-05T12:15:19+00:00",
"createdBy": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh",
"updatedAt": "2026-12-05T12:15:19+00:00",
"updatedBy": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh"
},
"metadata": {
"score": 0.53638935,
"matchedQueries": {
"descriptionEmbedding": 0.53638935
}
}
}
],
"debug": [
{
"input": {
"type": "text-embedding",
"query": "a hot drink made from roasted beans",
"parameters": {
"provider": "test",
"stepResults": []
}
},
"step-handler": "text-embedding (App\\EventSystem\\SearchStep\\EventListener\\TextEmbeddingSearchStepEventListener)",
"start": 1796473118.173704,
"end": 1796473118.195801,
"duration": 0.022097110748291016
},
{
"input": {
"type": "elasticsearch-query-dsl-mixin",
"query": {
"knn": {
"field": "descriptionEmbedding",
"query_vector": "{{ stepResults[0].vector }}",
"num_candidates": 10
}
},
"parameters": {
"nodeTypes": [
"KnowledgeArticle"
],
"stepResults": [
{
"vector": [
-0.054718122,
-0.02551928,
-0.13014504,
0.13910435,
-0.002810004,
-0.0011003388,
0.08219624,
-0.056247696,
0.012126958,
-0.0022819187,
0.009840294,
-0.061997037,
-0.0129264835,
-0.09174278,
-0.0097678555,
-0.12304618,
0.10478163,
-0.05345669,
0.036388054,
-0.07405652,
-0.013159641,
0.0037091787,
0.03880684,
0.06388695,
0.03093475,
0.0555467,
0.0393716,
0.0119987605,
-0.075132415,
-0.032086015,
0.040622,
-0.012722814,
-0.011397918,
-0.027727045,
-0.05799789,
0.039716598,
0.062002577,
-0.0682123,
0.02327532,
0.031369824,
0.0020459418,
-0.078436725,
0.09677821,
0.0050926288,
0.041348692,
0.009567434,
-0.03424239,
-0.0028684554,
0.03469422,
-0.040317494,
-0.07942466,
-0.051109005,
0.009977862,
-0.02441452,
-0.01975518,
-0.026258647,
-0.034859028,
-0.04184358,
0.05760303,
0.12070295,
-0.013947464,
0.015065739,
-0.06260997,
0.06587081,
0.027158812,
-0.13537195,
-0.034460302,
0.0065178564,
0.03810368,
-0.046129677,
0.01173078,
0.022677679,
0.0279369,
-0.091428064,
-0.07847096,
-0.047749776,
0.0818418,
0.011471347,
0.044055942,
0.08929741,
-0.018653288,
0.005505317,
0.012703631,
0.05591425,
-0.10422199,
0.044605426,
0.06019406,
-0.030985706,
0.005752906,
0.011138886,
-0.014144396,
0.04758351,
0.06902425,
-0.017963788,
-0.021637144,
0.019536298,
0.006769957,
-0.022757119,
0.025284031,
0.0006940065,
0.0002479628,
0.027541732,
-0.024976535,
-0.01283124,
0.08019524,
0.0046752086,
-0.021812992,
0.07171368,
0.12668993,
-0.015343023,
-0.011354497,
0.014285736,
-0.0692017,
0.004385437,
0.024752388,
-0.0064962707,
0.0638618,
-0.087799944,
0.0055167,
-0.044219468,
-0.018240295,
-0.0089163985,
0.004063729,
-0.019588776,
-0.08572866,
0.016213667,
-0.0095009925,
-1.23003e-33,
0.045160513,
0.0063688005,
0.0019875,
0.01659286,
0.06367106,
-0.0010308316,
-0.10437788,
-0.0067673204,
-0.023170182,
-0.004096994,
-0.02201268,
0.023274986,
-0.06968045,
0.033652734,
0.043223385,
-0.052615754,
-0.11151042,
0.04887781,
0.0055471417,
-0.016836908,
-0.10723153,
0.047373675,
0.051984895,
0.012788626,
-0.05699614,
-0.0034655938,
0.016826663,
-0.112764895,
-0.05893162,
0.022525063,
-0.025633099,
0.009186639,
0.029942622,
0.038436223,
-0.0583017,
-0.049166378,
-0.052878875,
-0.005805853,
0.03246163,
0.08397971,
0.003340828,
-0.010878539,
0.057657976,
0.017800152,
-0.039684452,
0.037175894,
0.02477493,
0.069552384,
-0.027244361,
0.024788206,
0.024114178,
-0.0149380965,
0.12984018,
0.02515264,
-0.048371814,
0.0021845417,
0.064529814,
0.12040479,
0.037742615,
-0.028742332,
-0.05952683,
0.07084332,
-0.029593557,
0.04128018,
-0.03005332,
-0.0011776533,
-0.052877627,
-0.046910245,
0.09814502,
-0.03173824,
0.010478583,
0.07557934,
0.03423314,
-0.07561765,
0.021487482,
-0.038961668,
0.06292335,
0.06325626,
0.0053150575,
0.08221668,
0.013961853,
-0.08832177,
-0.000024646894,
0.05150172,
0.0015672209,
0.056895245,
-0.015809806,
-0.044314694,
0.05399904,
0.022150626,
-0.086533956,
0.0027213325,
0.019226512,
-0.041221604,
0.022756334,
5.532858e-34,
0.07650981,
-0.08995316,
0.020975608,
0.08021074,
0.030202731,
-0.095310465,
-0.0026672466,
-0.019653212,
-0.009648133,
-0.016901696,
0.04508244,
-0.030891811,
0.070389785,
-0.04063427,
0.021587089,
0.023636054,
0.036813516,
0.04125728,
-0.026162967,
-0.010513558,
-0.059919722,
0.033957355,
-0.0021928346,
0.008024228,
0.020641591,
-0.005772432,
0.045024198,
-0.046853073,
-0.074952774,
-0.0132772485,
0.07964524,
-0.08564107,
-0.039590687,
0.008305953,
-0.026549073,
0.0037921346,
0.026759032,
0.0045233457,
0.08207506,
0.004668717,
0.042686053,
0.018194562,
0.025568672,
0.041936837,
0.051845863,
-0.010162313,
-0.06209782,
-0.014954234,
-0.041283015,
0.06970776,
0.04566222,
-0.0732493,
-0.061417863,
0.052797645,
-0.022227507,
-0.08976798,
-0.012496964,
0.021901345,
0.0053564315,
-0.015153666,
-0.013264981,
0.04762884,
0.02054711,
-0.0023828335,
0.0686804,
0.025797697,
-0.0642225,
0.003112196,
0.020525323,
-0.0057031782,
0.1927396,
-0.046947286,
-0.024646861,
0.0065832427,
0.08786187,
0.01632789,
-0.043345515,
0.022007579,
-0.004277141,
0.036612425,
-0.014415267,
0.03366456,
-0.0061870725,
0.033447493,
0.043843117,
-0.017916601,
0.033516422,
-0.005669631,
0.015976138,
0.044024512,
0.026614668,
-0.0033883194,
-0.05562216,
0.03412068,
0.064344175,
-1.3723024e-8,
-0.022780066,
-0.071850434,
-0.08184662,
0.057480734,
0.027477503,
-0.016336748,
0.013524963,
-0.06501582,
0.02927215,
-0.018908935,
-0.015561687,
0.07843814,
0.06598097,
0.05480167,
-0.06801766,
-0.07040719,
0.007973716,
0.03248511,
-0.00051618693,
0.0720093,
0.03265666,
-0.04926605,
0.11496523,
0.021011196,
-0.06730545,
-0.04405756,
0.019091507,
-0.028390639,
0.15115158,
-0.06094965,
-0.080813214,
0.08208944,
-0.0772237,
-0.0041050217,
-0.033134725,
0.009805723,
0.0050910055,
-0.010136851,
-0.04653649,
-0.04135502,
-0.07511346,
-0.03883598,
-0.021355445,
-0.037863005,
-0.14680718,
-0.05552395,
-0.098853104,
0.070923075,
-0.0332475,
0.03475081,
0.0008714023,
0.06621324,
0.07475198,
0.011814868,
-0.054695915,
-0.06350234,
0.03690434,
0.0021905268,
0.017828064,
-0.037981234,
0.070620164,
0.01978183,
0.027536923,
-0.012586549
],
"provider": "test",
"dimensions": 384
}
]
}
},
"step-handler": "elasticsearch-query-dsl-mixin (App\\EventSystem\\SearchStep\\EventListener\\ElasticsearchQueryDslMixinSearchStepEventListener)",
"start": 1796473118.196239,
"indices": "node_knowledgearticle",
"combinedQuery": {
"_source": [
"_id"
],
"from": 0,
"size": 25,
"query": {
"bool": {
"must": [
{
"knn": {
"field": "descriptionEmbedding",
"query_vector": [
-0.054718122,
-0.02551928,
-0.13014504,
0.13910435,
-0.002810004,
-0.0011003388,
0.08219624,
-0.056247696,
0.012126958,
-0.0022819187,
0.009840294,
-0.061997037,
-0.0129264835,
-0.09174278,
-0.0097678555,
-0.12304618,
0.10478163,
-0.05345669,
0.036388054,
-0.07405652,
-0.013159641,
0.0037091787,
0.03880684,
0.06388695,
0.03093475,
0.0555467,
0.0393716,
0.0119987605,
-0.075132415,
-0.032086015,
0.040622,
-0.012722814,
-0.011397918,
-0.027727045,
-0.05799789,
0.039716598,
0.062002577,
-0.0682123,
0.02327532,
0.031369824,
0.0020459418,
-0.078436725,
0.09677821,
0.0050926288,
0.041348692,
0.009567434,
-0.03424239,
-0.0028684554,
0.03469422,
-0.040317494,
-0.07942466,
-0.051109005,
0.009977862,
-0.02441452,
-0.01975518,
-0.026258647,
-0.034859028,
-0.04184358,
0.05760303,
0.12070295,
-0.013947464,
0.015065739,
-0.06260997,
0.06587081,
0.027158812,
-0.13537195,
-0.034460302,
0.0065178564,
0.03810368,
-0.046129677,
0.01173078,
0.022677679,
0.0279369,
-0.091428064,
-0.07847096,
-0.047749776,
0.0818418,
0.011471347,
0.044055942,
0.08929741,
-0.018653288,
0.005505317,
0.012703631,
0.05591425,
-0.10422199,
0.044605426,
0.06019406,
-0.030985706,
0.005752906,
0.011138886,
-0.014144396,
0.04758351,
0.06902425,
-0.017963788,
-0.021637144,
0.019536298,
0.006769957,
-0.022757119,
0.025284031,
0.0006940065,
0.0002479628,
0.027541732,
-0.024976535,
-0.01283124,
0.08019524,
0.0046752086,
-0.021812992,
0.07171368,
0.12668993,
-0.015343023,
-0.011354497,
0.014285736,
-0.0692017,
0.004385437,
0.024752388,
-0.0064962707,
0.0638618,
-0.087799944,
0.0055167,
-0.044219468,
-0.018240295,
-0.0089163985,
0.004063729,
-0.019588776,
-0.08572866,
0.016213667,
-0.0095009925,
-1.23003e-33,
0.045160513,
0.0063688005,
0.0019875,
0.01659286,
0.06367106,
-0.0010308316,
-0.10437788,
-0.0067673204,
-0.023170182,
-0.004096994,
-0.02201268,
0.023274986,
-0.06968045,
0.033652734,
0.043223385,
-0.052615754,
-0.11151042,
0.04887781,
0.0055471417,
-0.016836908,
-0.10723153,
0.047373675,
0.051984895,
0.012788626,
-0.05699614,
-0.0034655938,
0.016826663,
-0.112764895,
-0.05893162,
0.022525063,
-0.025633099,
0.009186639,
0.029942622,
0.038436223,
-0.0583017,
-0.049166378,
-0.052878875,
-0.005805853,
0.03246163,
0.08397971,
0.003340828,
-0.010878539,
0.057657976,
0.017800152,
-0.039684452,
0.037175894,
0.02477493,
0.069552384,
-0.027244361,
0.024788206,
0.024114178,
-0.0149380965,
0.12984018,
0.02515264,
-0.048371814,
0.0021845417,
0.064529814,
0.12040479,
0.037742615,
-0.028742332,
-0.05952683,
0.07084332,
-0.029593557,
0.04128018,
-0.03005332,
-0.0011776533,
-0.052877627,
-0.046910245,
0.09814502,
-0.03173824,
0.010478583,
0.07557934,
0.03423314,
-0.07561765,
0.021487482,
-0.038961668,
0.06292335,
0.06325626,
0.0053150575,
0.08221668,
0.013961853,
-0.08832177,
-0.000024646894,
0.05150172,
0.0015672209,
0.056895245,
-0.015809806,
-0.044314694,
0.05399904,
0.022150626,
-0.086533956,
0.0027213325,
0.019226512,
-0.041221604,
0.022756334,
5.532858e-34,
0.07650981,
-0.08995316,
0.020975608,
0.08021074,
0.030202731,
-0.095310465,
-0.0026672466,
-0.019653212,
-0.009648133,
-0.016901696,
0.04508244,
-0.030891811,
0.070389785,
-0.04063427,
0.021587089,
0.023636054,
0.036813516,
0.04125728,
-0.026162967,
-0.010513558,
-0.059919722,
0.033957355,
-0.0021928346,
0.008024228,
0.020641591,
-0.005772432,
0.045024198,
-0.046853073,
-0.074952774,
-0.0132772485,
0.07964524,
-0.08564107,
-0.039590687,
0.008305953,
-0.026549073,
0.0037921346,
0.026759032,
0.0045233457,
0.08207506,
0.004668717,
0.042686053,
0.018194562,
0.025568672,
0.041936837,
0.051845863,
-0.010162313,
-0.06209782,
-0.014954234,
-0.041283015,
0.06970776,
0.04566222,
-0.0732493,
-0.061417863,
0.052797645,
-0.022227507,
-0.08976798,
-0.012496964,
0.021901345,
0.0053564315,
-0.015153666,
-0.013264981,
0.04762884,
0.02054711,
-0.0023828335,
0.0686804,
0.025797697,
-0.0642225,
0.003112196,
0.020525323,
-0.0057031782,
0.1927396,
-0.046947286,
-0.024646861,
0.0065832427,
0.08786187,
0.01632789,
-0.043345515,
0.022007579,
-0.004277141,
0.036612425,
-0.014415267,
0.03366456,
-0.0061870725,
0.033447493,
0.043843117,
-0.017916601,
0.033516422,
-0.005669631,
0.015976138,
0.044024512,
0.026614668,
-0.0033883194,
-0.05562216,
0.03412068,
0.064344175,
-1.3723024e-8,
-0.022780066,
-0.071850434,
-0.08184662,
0.057480734,
0.027477503,
-0.016336748,
0.013524963,
-0.06501582,
0.02927215,
-0.018908935,
-0.015561687,
0.07843814,
0.06598097,
0.05480167,
-0.06801766,
-0.07040719,
0.007973716,
0.03248511,
-0.00051618693,
0.0720093,
0.03265666,
-0.04926605,
0.11496523,
0.021011196,
-0.06730545,
-0.04405756,
0.019091507,
-0.028390639,
0.15115158,
-0.06094965,
-0.080813214,
0.08208944,
-0.0772237,
-0.0041050217,
-0.033134725,
0.009805723,
0.0050910055,
-0.010136851,
-0.04653649,
-0.04135502,
-0.07511346,
-0.03883598,
-0.021355445,
-0.037863005,
-0.14680718,
-0.05552395,
-0.098853104,
0.070923075,
-0.0332475,
0.03475081,
0.0008714023,
0.06621324,
0.07475198,
0.011814868,
-0.054695915,
-0.06350234,
0.03690434,
0.0021905268,
0.017828064,
-0.037981234,
0.070620164,
0.01978183,
0.027536923,
-0.012586549
],
"num_candidates": 10,
"filter": [
{
"bool": {
"should": [
{
"terms": {
"_groupsWithSearchAccess.keyword": []
}
},
{
"term": {
"_usersWithSearchAccess.keyword": {
"value": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh"
}
}
}
],
"minimum_should_match": 1
}
}
],
"_name": "descriptionEmbedding"
}
}
],
"filter": [
{
"bool": {
"should": [
{
"terms": {
"_groupsWithSearchAccess.keyword": []
}
},
{
"term": {
"_usersWithSearchAccess.keyword": {
"value": "02IiNr0GPRh8IoTyJhhpoI3h2bpn2GRg75sBh"
}
}
}
],
"minimum_should_match": 1
}
}
]
}
}
},
"end": 1796473118.315804,
"duration": 0.119565
},
{
"input": {
"type": "element-hydration",
"query": null,
"parameters": {
"stepResults": [
{
"vector": [
-0.054718122,
-0.02551928,
-0.13014504,
0.13910435,
-0.002810004,
-0.0011003388,
0.08219624,
-0.056247696,
0.012126958,
-0.0022819187,
0.009840294,
-0.061997037,
-0.0129264835,
-0.09174278,
-0.0097678555,
-0.12304618,
0.10478163,
-0.05345669,
0.036388054,
-0.07405652,
-0.013159641,
0.0037091787,
0.03880684,
0.06388695,
0.03093475,
0.0555467,
0.0393716,
0.0119987605,
-0.075132415,
-0.032086015,
0.040622,
-0.012722814,
-0.011397918,
-0.027727045,
-0.05799789,
0.039716598,
0.062002577,
-0.0682123,
0.02327532,
0.031369824,
0.0020459418,
-0.078436725,
0.09677821,
0.0050926288,
0.041348692,
0.009567434,
-0.03424239,
-0.0028684554,
0.03469422,
-0.040317494,
-0.07942466,
-0.051109005,
0.009977862,
-0.02441452,
-0.01975518,
-0.026258647,
-0.034859028,
-0.04184358,
0.05760303,
0.12070295,
-0.013947464,
0.015065739,
-0.06260997,
0.06587081,
0.027158812,
-0.13537195,
-0.034460302,
0.0065178564,
0.03810368,
-0.046129677,
0.01173078,
0.022677679,
0.0279369,
-0.091428064,
-0.07847096,
-0.047749776,
0.0818418,
0.011471347,
0.044055942,
0.08929741,
-0.018653288,
0.005505317,
0.012703631,
0.05591425,
-0.10422199,
0.044605426,
0.06019406,
-0.030985706,
0.005752906,
0.011138886,
-0.014144396,
0.04758351,
0.06902425,
-0.017963788,
-0.021637144,
0.019536298,
0.006769957,
-0.022757119,
0.025284031,
0.0006940065,
0.0002479628,
0.027541732,
-0.024976535,
-0.01283124,
0.08019524,
0.0046752086,
-0.021812992,
0.07171368,
0.12668993,
-0.015343023,
-0.011354497,
0.014285736,
-0.0692017,
0.004385437,
0.024752388,
-0.0064962707,
0.0638618,
-0.087799944,
0.0055167,
-0.044219468,
-0.018240295,
-0.0089163985,
0.004063729,
-0.019588776,
-0.08572866,
0.016213667,
-0.0095009925,
-1.23003e-33,
0.045160513,
0.0063688005,
0.0019875,
0.01659286,
0.06367106,
-0.0010308316,
-0.10437788,
-0.0067673204,
-0.023170182,
-0.004096994,
-0.02201268,
0.023274986,
-0.06968045,
0.033652734,
0.043223385,
-0.052615754,
-0.11151042,
0.04887781,
0.0055471417,
-0.016836908,
-0.10723153,
0.047373675,
0.051984895,
0.012788626,
-0.05699614,
-0.0034655938,
0.016826663,
-0.112764895,
-0.05893162,
0.022525063,
-0.025633099,
0.009186639,
0.029942622,
0.038436223,
-0.0583017,
-0.049166378,
-0.052878875,
-0.005805853,
0.03246163,
0.08397971,
0.003340828,
-0.010878539,
0.057657976,
0.017800152,
-0.039684452,
0.037175894,
0.02477493,
0.069552384,
-0.027244361,
0.024788206,
0.024114178,
-0.0149380965,
0.12984018,
0.02515264,
-0.048371814,
0.0021845417,
0.064529814,
0.12040479,
0.037742615,
-0.028742332,
-0.05952683,
0.07084332,
-0.029593557,
0.04128018,
-0.03005332,
-0.0011776533,
-0.052877627,
-0.046910245,
0.09814502,
-0.03173824,
0.010478583,
0.07557934,
0.03423314,
-0.07561765,
0.021487482,
-0.038961668,
0.06292335,
0.06325626,
0.0053150575,
0.08221668,
0.013961853,
-0.08832177,
-0.000024646894,
0.05150172,
0.0015672209,
0.056895245,
-0.015809806,
-0.044314694,
0.05399904,
0.022150626,
-0.086533956,
0.0027213325,
0.019226512,
-0.041221604,
0.022756334,
5.532858e-34,
0.07650981,
-0.08995316,
0.020975608,
0.08021074,
0.030202731,
-0.095310465,
-0.0026672466,
-0.019653212,
-0.009648133,
-0.016901696,
0.04508244,
-0.030891811,
0.070389785,
-0.04063427,
0.021587089,
0.023636054,
0.036813516,
0.04125728,
-0.026162967,
-0.010513558,
-0.059919722,
0.033957355,
-0.0021928346,
0.008024228,
0.020641591,
-0.005772432,
0.045024198,
-0.046853073,
-0.074952774,
-0.0132772485,
0.07964524,
-0.08564107,
-0.039590687,
0.008305953,
-0.026549073,
0.0037921346,
0.026759032,
0.0045233457,
0.08207506,
0.004668717,
0.042686053,
0.018194562,
0.025568672,
0.041936837,
0.051845863,
-0.010162313,
-0.06209782,
-0.014954234,
-0.041283015,
0.06970776,
0.04566222,
-0.0732493,
-0.061417863,
0.052797645,
-0.022227507,
-0.08976798,
-0.012496964,
0.021901345,
0.0053564315,
-0.015153666,
-0.013264981,
0.04762884,
0.02054711,
-0.0023828335,
0.0686804,
0.025797697,
-0.0642225,
0.003112196,
0.020525323,
-0.0057031782,
0.1927396,
-0.046947286,
-0.024646861,
0.0065832427,
0.08786187,
0.01632789,
-0.043345515,
0.022007579,
-0.004277141,
0.036612425,
-0.014415267,
0.03366456,
-0.0061870725,
0.033447493,
0.043843117,
-0.017916601,
0.033516422,
-0.005669631,
0.015976138,
0.044024512,
0.026614668,
-0.0033883194,
-0.05562216,
0.03412068,
0.064344175,
-1.3723024e-8,
-0.022780066,
-0.071850434,
-0.08184662,
0.057480734,
0.027477503,
-0.016336748,
0.013524963,
-0.06501582,
0.02927215,
-0.018908935,
-0.015561687,
0.07843814,
0.06598097,
0.05480167,
-0.06801766,
-0.07040719,
0.007973716,
0.03248511,
-0.00051618693,
0.0720093,
0.03265666,
-0.04926605,
0.11496523,
0.021011196,
-0.06730545,
-0.04405756,
0.019091507,
-0.028390639,
0.15115158,
-0.06094965,
-0.080813214,
0.08208944,
-0.0772237,
-0.0041050217,
-0.033134725,
0.009805723,
0.0050910055,
-0.010136851,
-0.04653649,
-0.04135502,
-0.07511346,
-0.03883598,
-0.021355445,
-0.037863005,
-0.14680718,
-0.05552395,
-0.098853104,
0.070923075,
-0.0332475,
0.03475081,
0.0008714023,
0.06621324,
0.07475198,
0.011814868,
-0.054695915,
-0.06350234,
0.03690434,
0.0021905268,
0.017828064,
-0.037981234,
0.070620164,
0.01978183,
0.027536923,
-0.012586549
],
"provider": "test",
"dimensions": 384
},
{
"elements": [
{
"id": "02IiNr0GPRh9FOgqcIYpqkrpwVgmyBJi0Utt7",
"type": "KnowledgeArticle",
"metadata": {
"score": 0.82979465,
"matchedQueries": {
"descriptionEmbedding": 0.82979465
}
}
},
{
"id": "02IiNr0GPRh8yeu4k5NbyGhla4mDL5NbcbpsV",
"type": "KnowledgeArticle",
"metadata": {
"score": 0.66170645,
"matchedQueries": {
"descriptionEmbedding": 0.66170645
}
}
},
{
"id": "02IiNr0GPRh8qI11qqd5gmiDJDW1RDIJ6shU3",
"type": "KnowledgeArticle",
"metadata": {
"score": 0.60950875,
"matchedQueries": {
"descriptionEmbedding": 0.60950875
}
}
},
{
"id": "02IiNr0GPRh971naZquHFfpuOO89XxD01he2z",
"type": "KnowledgeArticle",
"metadata": {
"score": 0.53638935,
"matchedQueries": {
"descriptionEmbedding": 0.53638935
}
}
}
],
"totalHits": 4,
"maxScore": 0.82979465
}
]
}
},
"step-handler": "element-hydration (App\\EventSystem\\SearchStep\\EventListener\\ElementHydrationSearchStepEventListener)",
"start": 1796473118.316017,
"accessibleElementIds": [
"02IiNr0GPRh9FOgqcIYpqkrpwVgmyBJi0Utt7",
"02IiNr0GPRh8yeu4k5NbyGhla4mDL5NbcbpsV",
"02IiNr0GPRh8qI11qqd5gmiDJDW1RDIJ6shU3",
"02IiNr0GPRh971naZquHFfpuOO89XxD01he2z"
],
"end": 1796473118.383879,
"duration": 0.067862
}
]
}
Access-Control-Allow-Headers: Authorization, Content-Type, Prefer
Access-Control-Allow-Methods: OPTIONS, POST
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Preference-Applied
Allow: OPTIONS, POST
Cache-Control: no-cache, private
Content-Type: application/json; charset=utf-8
Date: Sat, 05 Dec 2026 02:00:55 GMT
Transfer-Encoding: chunked
Vary: Prefer, Accept-Encoding
X-Powered-By: Ember Nexus API

The articles are ordered by their similarity to the text: none of them contains the words “hot drink” or “roasted beans”, but the espresso is closest to them. The similarity of each article is returned in metadata.matchedQueries.descriptionEmbedding: the kNN query is named after its field, as it has no _name of its own. metadata.score is the score of the whole query, which can combine several queries.

Only articles which the user has access to are found. The API adds the access filter to the kNN query itself, so that Elasticsearch searches the nearest accessible articles, instead of filtering the nearest articles afterwards. An article of another user is not part of the result, even if it is the closest one.

Note: The text-embedding step needs a token with the capability embedding.create, as every search sends a request to the embedding provider.