Skip to content

Commit

Permalink
fix : spotless issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Apr 9, 2024
1 parent 8a9295f commit 13a8c43
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
public class ChatService {

private static final Logger logger = LoggerFactory.getLogger(ChatService.class);
private static final String SENTIMENT_ANALYSIS_TEMPLATE =
"{query}, You must answer strictly in the following format: one of [POSITIVE, NEGATIVE, SARCASTIC]";

@Value("classpath:/data/restaurants.json")
private Resource restaurantsResource;
Expand Down Expand Up @@ -69,7 +71,6 @@ public AIChatResponse chatWithSystemPrompt(String query) {
return new AIChatResponse(answer);
}

private static final String SENTIMENT_ANALYSIS_TEMPLATE = "{query}, You must answer strictly in the following format: one of [POSITIVE, NEGATIVE, SARCASTIC]";
public AIChatResponse analyzeSentiment(String query) {
AssistantPromptTemplate promptTemplate = new AssistantPromptTemplate(SENTIMENT_ANALYSIS_TEMPLATE);
Prompt prompt = promptTemplate.create(Map.of("query", query));
Expand Down

0 comments on commit 13a8c43

Please sign in to comment.