@@ -161,7 +161,7 @@ public class ChatResource {
161
161
@POST
162
162
@Consumes ({" application/json" })
163
163
@Produces ({" application/json" })
164
- public String chat (ChatRequest chatRequest ) {
164
+ public ChatResponse chat (ChatRequest chatRequest ) {
165
165
166
166
String question = chatRequest. messages. get(chatRequest. messages. size() - 1 ). content;
167
167
@@ -185,7 +185,7 @@ public class ChatResource {
185
185
@POST
186
186
@Consumes ({" application/json" })
187
187
@Produces ({" application/json" })
188
- public String chat (ChatRequest chatRequest ) {
188
+ public ChatResponse chat (ChatRequest chatRequest ) {
189
189
190
190
// Embed the question (convert the user's question into vectors that represent the meaning)
191
191
// ...
@@ -224,7 +224,7 @@ public class ChatResource {
224
224
Don't combine sources, list each source separately, for example: [info1.txt][info2.pdf].
225
225
" " " ;
226
226
227
- public String chat (ChatRequest chatRequest ) {
227
+ public ChatResponse chat (ChatRequest chatRequest ) {
228
228
229
229
// ...
230
230
}
@@ -260,7 +260,7 @@ public class ChatResource {
260
260
@POST
261
261
@Consumes ({" application/json" })
262
262
@Produces ({" application/json" })
263
- public String chat (ChatRequest chatRequest ) {
263
+ public ChatResponse chat (ChatRequest chatRequest ) {
264
264
265
265
// Embed the question (convert the user's question into vectors that represent the meaning)
266
266
// Find relevant embeddings from Qdrant based on the user's question
@@ -292,7 +292,7 @@ public class ChatResource {
292
292
@POST
293
293
@Consumes ({" application/json" })
294
294
@Produces ({" application/json" })
295
- public String chat (ChatRequest chatRequest ) {
295
+ public ChatResponse chat (ChatRequest chatRequest ) {
296
296
297
297
// Embed the question (convert the user's question into vectors that represent the meaning)
298
298
// Find relevant embeddings from Qdrant based on the user's question
0 commit comments