Skip to content
Snippets Groups Projects
Commit a3f40958 authored by Emeric Bernet-Rollande's avatar Emeric Bernet-Rollande
Browse files

[RAG] Comment probably useless code

parent 8c57a689
Branches
Tags
No related merge requests found
......@@ -221,7 +221,7 @@ public class RagAPI extends SearchAPI {
.replace("{format}", PromptUtils.getResponseFormat(request))
.replace("{lastresponse}", lastresponse);
prompts = new ArrayList<>();
prompts = PromptUtils.addChatHistoryToList(prompts, request, config);
// prompts = PromptUtils.addChatHistoryToList(prompts, request, config); // TODO : can I remove here ?
prompt = new Message("user", PromptUtils.cleanContext(filledTemplate));
prompts.add(prompt);
prompts = PromptUtils.addChatHistoryToList(prompts, request, config);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment