@@ -172,7 +172,7 @@ public class RestMLRAGSearchProcessorIT extends RestMLRemoteInferenceIT {
172
172
+ " \" llm_model\" : \" %s\" ,\n "
173
173
+ " \" llm_question\" : \" %s\" ,\n "
174
174
+ " \" context_size\" : %d,\n "
175
- + " \" interaction_size \" : %d,\n "
175
+ + " \" message_size \" : %d,\n "
176
176
+ " \" timeout\" : %d\n "
177
177
+ " }\n "
178
178
+ " }\n "
@@ -187,9 +187,9 @@ public class RestMLRAGSearchProcessorIT extends RestMLRemoteInferenceIT {
187
187
+ " \" generative_qa_parameters\" : {\n "
188
188
+ " \" llm_model\" : \" %s\" ,\n "
189
189
+ " \" llm_question\" : \" %s\" ,\n "
190
- + " \" conversation_id \" : \" %s\" ,\n "
190
+ + " \" memory_id \" : \" %s\" ,\n "
191
191
+ " \" context_size\" : %d,\n "
192
- + " \" interaction_size \" : %d,\n "
192
+ + " \" message_size \" : %d,\n "
193
193
+ " \" timeout\" : %d\n "
194
194
+ " }\n "
195
195
+ " }\n "
@@ -208,6 +208,7 @@ public class RestMLRAGSearchProcessorIT extends RestMLRemoteInferenceIT {
208
208
@ Before
209
209
public void init () throws Exception {
210
210
211
+ /*
211
212
Response response = TestHelper
212
213
.makeRequest(
213
214
client(),
@@ -218,7 +219,7 @@ public void init() throws Exception {
218
219
ImmutableList.of(new BasicHeader(HttpHeaders.USER_AGENT, DEFAULT_USER_AGENT))
219
220
);
220
221
assertEquals(200, response.getStatusLine().getStatusCode());
221
-
222
+
222
223
response = TestHelper
223
224
.makeRequest(
224
225
client(),
@@ -229,8 +230,9 @@ public void init() throws Exception {
229
230
ImmutableList.of(new BasicHeader(HttpHeaders.USER_AGENT, DEFAULT_USER_AGENT))
230
231
);
231
232
assertEquals(200, response.getStatusLine().getStatusCode());
233
+ */
232
234
233
- response = TestHelper
235
+ Response response = TestHelper
234
236
.makeRequest (
235
237
client (),
236
238
"PUT" ,
@@ -428,7 +430,7 @@ public void testBM25WithOpenAIWithConversation() throws Exception {
428
430
String answer = (String ) rag .get ("answer" );
429
431
assertNotNull (answer );
430
432
431
- String interactionId = (String ) rag .get ("interaction_id " );
433
+ String interactionId = (String ) rag .get ("message_id " );
432
434
assertNotNull (interactionId );
433
435
}
434
436
@@ -485,7 +487,7 @@ public void testBM25WithBedrockWithConversation() throws Exception {
485
487
String answer = (String ) rag .get ("answer" );
486
488
assertNotNull (answer );
487
489
488
- String interactionId = (String ) rag .get ("interaction_id " );
490
+ String interactionId = (String ) rag .get ("message_id " );
489
491
assertNotNull (interactionId );
490
492
}
491
493
@@ -557,12 +559,12 @@ private String createConversation(String name) throws Exception {
557
559
Response response = makeRequest (
558
560
client (),
559
561
"POST" ,
560
- "/_plugins/_ml/memory/conversation " ,
562
+ "/_plugins/_ml/memory" ,
561
563
null ,
562
564
toHttpEntity (String .format (Locale .ROOT , "{\" name\" : \" %s\" }" , name )),
563
565
ImmutableList .of (new BasicHeader (HttpHeaders .USER_AGENT , DEFAULT_USER_AGENT ))
564
566
);
565
- return (String ) ((Map ) parseResponseToMap (response )).get ("conversation_id " );
567
+ return (String ) ((Map ) parseResponseToMap (response )).get ("memory_id " );
566
568
}
567
569
568
570
static class PipelineParameters {
0 commit comments