modify a document
This commit is contained in:
committed by
Christian Tzolov
parent
cec76318f8
commit
cd15b65c7a
@@ -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");
|
||||
|
||||
}
|
||||
----
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user