Skip to content
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

UPDATE: add reasoning column and update some docs. #39

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

JieZhou000
Copy link
Collaborator

Choose a PR Template

Switch to "Preview" on this description then select one of the choices below.

Click here to open a PR for a Data Plane API.

Click here to open a PR for a Control Plane (ARM) API.

#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
@added(ContentSafety.Versions.v2023_11_30_Preview)
@doc("domain category.")
@doc("Domain category.")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest remove the "category" wording here even in description, this will cause a lot of confusion.

model UngroundedDetails {
@doc("The ungrounded text.")
text: string;

@doc("The reason or explanation for identifying the text as ungrounded.")
@doc("The explanation for identifying the text as ungrounded.")
reason: string;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be optional?

@doc("A value indicating if the output includes an explanation for the identified ungroundedness.")
reasoning?: boolean;

@doc("Connection details for the GPT resource.")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to have a detailed description here that this field will be only valid when reasoning set to true.

groundingSources: string[];

@doc("GPT resource connection information.")
@doc("A value indicating if the output includes an explanation for the identified ungroundedness.")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to give default value here.

@JieZhou000 JieZhou000 merged commit 7ed93a1 into acs-1230-private Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants