modify a document

This commit is contained in:
jiseunghyeon
2024-11-01 21:01:13 +09:00
committed by Christian Tzolov
parent cec76318f8
commit cd15b65c7a

View File

@@ -73,12 +73,13 @@ void testEvaluation() {
String userText = "What is the purpose of Carina?";
String responseContent = ChatClient.builder(chatModel)
ChatResponse response = ChatClient.builder(chatModel)
.build().prompt()
.advisors(new QuestionAnswerAdvisor(vectorStore, SearchRequest.defaults()))
.user(userText)
.call()
.content();
.chatResponse();
String responseContent = response.getResult().getOutput().getContent();
var relevancyEvaluator = new RelevancyEvaluator(ChatClient.builder(chatModel));
@@ -147,4 +148,4 @@ void testFactChecking() {
assertFalse(evaluationResponse.isPass(), "The claim should not be supported by the context");
}
----
----