-
Notifications
You must be signed in to change notification settings - Fork 2k
Revise FactCheckingEvaluator #4675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
1. use required arguments as parameters of `builder()`. 2. deprecate constructors. See spring-projects#4652 Signed-off-by: Yanming Zhou <[email protected]>
* evaluation | ||
* @deprecated in favor of {@link #builder(ChatClient.Builder)} | ||
*/ | ||
@Deprecated(forRemoval = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be removed instead of deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We keep the deprecations latest for one release (even for milestone) before removing.
* @deprecated in favor of {@link #builder(ChatClient.Builder)} | ||
*/ | ||
@Deprecated | ||
public FactCheckingEvaluator(ChatClient.Builder chatClientBuilder, @Nullable String evaluationPrompt) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be private
instead of deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep this as is until we can completely remove it right after 1.1.0-M4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realise this is the constructor used by the builder for instantiation. We should mark this private then.
@ericbottard Please review. |
builder()
.See #4652