Class EvaluationRequest

java.lang.Object
org.springframework.ai.evaluation.EvaluationRequest

public class EvaluationRequest extends Object
Represents an evaluation request, which includes the user's text, a list of content data, and a chat response. The evaluation request is used to evaluate the relevance or correctness of the chat response based on the context.
Since:
1.0.0 M1
Author:
Mark Pollack, EddĂș MelĂ©ndez
  • Constructor Details

    • EvaluationRequest

      public EvaluationRequest(String userText, String responseContent)
    • EvaluationRequest

      public EvaluationRequest(List<Document> dataList, String responseContent)
    • EvaluationRequest

      public EvaluationRequest(String userText, List<Document> dataList, String responseContent)
  • Method Details

    • getUserText

      public String getUserText()
    • getDataList

      public List<Document> getDataList()
    • getResponseContent

      public String getResponseContent()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object