Class Feedback
java.lang.Object
com.oracle.database.selectai.model.Feedback
Immutable request payload for
DBMS_CLOUD_AI.FEEDBACK.
Use this request object when an application wants to tell Select AI whether
generated SQL was useful, provide a correction for a poor NL2SQL answer, or
remove previously submitted guidance. Feedback is profile-specific prompt
guidance for future SQL generation, not model fine-tuning and not a general
rating mechanism for chat or RAG responses. The target profile is supplied by
the Profile object used to submit the request. A feedback request
identifies one generated SQL statement either by its database SQL identifier
or by the SQL text itself.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forFeedbackrequest payloads.static enumUser assessment of generated SQL accepted by DBMS_CLOUD_AI.FEEDBACK.static enumAction to perform on the feedback store. -
Method Summary
Modifier and TypeMethodDescriptionstatic Feedback.Builderbuilder()Creates a builder for a feedback request.Returns the user's natural-language explanation for the feedback.Returns whether the generated SQL was marked useful or needing correction.Returns the lowercase database value forfeedback_type.Returns the normalized action to perform on the feedback store.Returns the database value for the requested operation.Returns the expected or corrected response for the reviewed SQL.getSqlId()Returns the database SQL identifier used to locate the reviewed SQL.Returns the generated SQL text being reviewed.
-
Method Details
-
getSqlId
Returns the database SQL identifier used to locate the reviewed SQL.- Returns:
- SQL identifier associated with the feedback, or
nullwhen SQL text is used instead
-
getSqlText
Returns the generated SQL text being reviewed.- Returns:
- SQL text associated with the feedback, or
nullwhen SQL identifier is used instead
-
getFeedbackType
Returns whether the generated SQL was marked useful or needing correction.- Returns:
- normalized feedback type
-
getFeedbackTypeValue
Returns the lowercase database value forfeedback_type.- Returns:
positive,negative, ornull
-
getResponse
Returns the expected or corrected response for the reviewed SQL.- Returns:
- expected SQL response; required for negative
ADDfeedback
-
getFeedbackContent
Returns the user's natural-language explanation for the feedback.- Returns:
- optional natural-language feedback content
-
getOperation
Returns the normalized action to perform on the feedback store.- Returns:
- normalized feedback operation enum, or
nullwhen DBMS_CLOUD_AI should apply its default operation
-
getOperationValue
Returns the database value for the requested operation.- Returns:
- lowercase operation value, or
nullwhen DBMS_CLOUD_AI should apply its default operation
-
builder
Creates a builder for a feedback request.- Returns:
- new builder for constructing validated Feedback instances
-