Fixing minor bugs

This commit is contained in:
Peer Hogeterp committed 2026-09-25 12:55:01 +02:00
1 parent 73f48e7bcd
commit 2e288b5540
4 files changed
+38 -2

No files matched your search

@@ -6580,9 +6580,15 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DIRECTCHATLAUNCHERSETTINGSDIALOG::T854110894
-- Cancel
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DIRECTCHATLAUNCHERSETTINGSDIALOG::T900713019"] = "Cancel"
-- No, the policy can be edited
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1286595725"] = "No, the policy can be edited"
-- Please provide a description of your analysis rules. This rules will be used to instruct the AI on how to analyze the documents.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1291179736"] = "Please provide a description of your analysis rules. This rules will be used to instruct the AI on how to analyze the documents."
-- Yes, protect this policy
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1762380857"] = "Yes, protect this policy"
-- Hide the policy definition when distributed via configuration plugin?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1875622568"] = "Hide the policy definition when distributed via configuration plugin?"
@@ -6613,6 +6619,9 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T3108719748"]
-- Tools this policy permits
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T31356122"] = "Tools this policy permits"
-- No, show the policy definition
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T3166091879"] = "No, show the policy definition"
-- The description of your policy must be between 32 and 512 characters long.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T3285636934"] = "The description of your policy must be between 32 and 512 characters long."
@@ -6646,6 +6655,9 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T80597472"] =
-- Cancel
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T900713019"] = "Cancel"
-- Yes, hide the policy definition
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T940701960"] = "Yes, hide the policy definition"
-- Please wait while we load the content of your file. Depending on the file type and size, this may take a moment.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTCHECKDIALOG::T1205126512"] = "Please wait while we load the content of your file. Depending on the file type and size, this may take a moment."
@@ -12,7 +12,7 @@
<MudForm @ref="@this.form" @bind-IsValid="@this.isValid" @bind-Errors="@this.issues">
<MudTextField T="string" @bind-Text="@this.name" Validation="@this.ValidateName" Immediate="true" Label="@T("Policy name")" Counter="60" MaxLength="60" Variant="Variant.Outlined" Class="mb-3" />
<MudTextField T="string" @bind-Text="@this.description" Validation="@this.ValidateDescription" Immediate="true" Label="@T("Policy description")" Counter="512" MaxLength="512" Lines="3" AutoGrow="true" Variant="Variant.Outlined" Class="mb-3" />
<MudTextSwitch @bind-Value="@this.hideDefinition" Label="@T("Hide the policy definition when distributed via configuration plugin?")" />
<MudTextSwitch @bind-Value="@this.hideDefinition" Label="@T("Hide the policy definition when distributed via configuration plugin?")" LabelOn="@T("Yes, hide the policy definition")" LabelOff="@T("No, show the policy definition")" />
<ConfigurationMinConfidenceSelection RestrictToGlobalMinimumConfidence="true" SelectedValue="@(() => this.minimumConfidence)" SelectionUpdate="@(value => this.minimumConfidence = value)" />
<ToolSelectionField Component="@AIStudio.Tools.Components.DOCUMENT_ANALYSIS_ASSISTANT" SelectedToolIds="@this.allowedToolIds" SelectedToolIdsChanged="@(value => this.allowedToolIds = value)" Label="@T("Tools this policy permits")" />
<MudSelect T="string" @bind-Value="@this.providerId" Label="@T("Preselect a provider")" Variant="Variant.Outlined" Class="mb-3">
@@ -30,7 +30,7 @@
<MudSelectItem T="string" Value="@profile.Id">@profile.Name</MudSelectItem>
}
</MudSelect>
<MudTextSwitch @bind-Value="@this.isProtected" Label="@T("Would you like to protect this policy so that you cannot accidentally edit or delete it?")" />
<MudTextSwitch @bind-Value="@this.isProtected" Label="@T("Would you like to protect this policy so that you cannot accidentally edit or delete it?")" LabelOn="@T("Yes, protect this policy")" LabelOff="@T("No, the policy can be edited")" />
<MudTextField T="string" @bind-Text="@this.analysisRules" Validation="@this.ValidateAnalysisRules" Immediate="true" Label="@T("Analysis rules")" Lines="5" AutoGrow="true" MaxLines="26" Variant="Variant.Outlined" Class="mb-3" />
<ReadFileContent Text="@T("Load analysis rules from document")" @bind-FileContent="@this.analysisRules" EnableDragDrop="true" />
<MudTextField T="string" @bind-Text="@this.outputRules" Validation="@this.ValidateOutputRules" Immediate="true" Label="@T("Output rules")" Lines="5" AutoGrow="true" MaxLines="26" Variant="Variant.Outlined" Class="mb-3" />
@@ -6582,9 +6582,15 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DIRECTCHATLAUNCHERSETTINGSDIALOG::T854110894
-- Cancel
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DIRECTCHATLAUNCHERSETTINGSDIALOG::T900713019"] = "Abbrechen"
-- No, the policy can be edited
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1286595725"] = "Nein, die Richtlinie kann bearbeitet werden."
-- Please provide a description of your analysis rules. This rules will be used to instruct the AI on how to analyze the documents.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1291179736"] = "Below is a clear set of **analysis rules** you can use to instruct an AI on how to analyze documents. --- ## Document Analysis Rules ### 1. Purpose of Analysis The AI must analyze each document by extracting the most important information, identifying its meaning, and presenting the results in a clear, structured, and useful way. --- ### 2. Focus on the Document Content The AI must base its analysis only on the information contained in the document. It should: - Use facts, statements, and data from the document. - Not invent missing information. - Clearly mark uncertainty if something is unclear. --- ### 3. Identify the Document Type The AI should first determine what kind of document it is, for example: - Report - Contract - Email - Article - Presentation - Form - Policy - Invoice - Manual - Legal document If the type cannot be determined, the AI should state that it is uncertain. --- ### 4. Extract Key Information The AI should identify the most important elements of the document, such as: - Title or main topic - Author or sender, if available - Date or timeline - Purpose of the document - Main points or arguments - Key entities, such as people, organizations, places, or products - Important numbers, dates, deadlines, or references - Any required actions or recommendations --- ### 5. Summarize the Document The AI should provide a short and clear summary that captures the main meaning of the document. The summary should: - Be concise - Stay factual - Include only the most important information - Avoid unnecessary details --- ### 6. Identify Structure and Organization The AI should analyze how the document is organized, including: - Sections or headings - Logical flow of information - Presence of tables, lists, or attachments - Whether the structure helps the reader understand the content --- ### 7. Analyze Tone and Style The AI should evaluate the writing style and tone of the document. Possible tone categories include: - Formal - Informal - Technical - Legal - Persuasive - Neutral - Urgent - Instructional The AI should also note if the tone is appropriate for the document type and audience. --- ### 8. Assess Clarity and Quality The AI should evaluate how clear and understandable the document is. It should consider: - Whether the main message is easy to understand - Whether important information is missing or unclear - Whether the language is precise or vague - Whether the document contains contradictions or errors - Whether the formatting supports easy reading --- ### 9. Detect Risks, Issues, or Gaps The AI should point out anything that may be important, risky, incomplete, or inconsistent. For example: - Missing dates or signatures - Unclear obligations - Conflicting statements - Undefined terms - Potentially incorrect data - Missing explanations - Ambiguous instructions --- ### 10. Identify Actions, Decisions, or Requirements If the document asks the reader to do something, the AI must identify those actions clearly. It should extract: - Required tasks - Deadlines - Responsibilities - Approval requests - Conditions - Next steps --- ### 11. Compare Information If Multiple Documents Are Given If more than one document is provided, the AI should compare them and identify: - Similarities - Differences - Contradictions - Repeated information - New or updated content --- ### 12. Present Results in a Structured Format The AI should return its analysis in a clear structure, for example: **1. Document type** **2. Main purpose** **3. Summary** **4. Key information** **5. Important points** **6. Missing or unclear items** **7. Risks or issues** **8. Suggested actions** **9. Conclusion** If the user requests a different format, the AI should follow that format. --- ### 13. Use Simple and Understandable Language The AI should explain the document in a way that is easy to understand, even for non-experts. It should: - Avoid unnecessary technical language - Explain complex terms if needed - Make the analysis useful for regular users --- ### 14. Be Objective and Neutral The AI should analyze the document without adding personal opinions, unless the user explicitly asks for evaluation or recommendation. It should: - Stay factual - Separate facts from interpretation - Avoid exaggeration or assumptions --- ### 15. Handle Unclear or Low-Quality Input Carefully If the document is incomplete, unreadable, or unclear, the AI should: - Explain what is missing or unclear - Describe what can still be understood - Suggest what additional information is needed It should not pretend to understand something that is not supported by the document. --- ## Optional Standard Output Format The AI may respond using this structure: ```text 1. Document Overview 2. Main Purpose 3. Key Points 4. Important Data 5. Unclear or Missing Information 6. Risks or Issues 7. Recommended Actions 8. Final SummaLine truncated
-- Yes, protect this policy
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1762380857"] = "Ja, diese Richtlinie schützen"
-- Hide the policy definition when distributed via configuration plugin?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1875622568"] = "Richtliniendefinition ausblenden, wenn sie über das Konfigurations-Plugin verteilt wird?"
@@ -6615,6 +6621,9 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T3108719748"]
-- Tools this policy permits
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T31356122"] = "Von dieser Richtlinie erlaubte Tools"
-- No, show the policy definition
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T3166091879"] = "Nein, Definition der Richtlinie anzeigen"
-- The description of your policy must be between 32 and 512 characters long.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T3285636934"] = "Die Beschreibung Ihrer Richtlinie muss zwischen 32 und 512 Zeichen lang sein."
@@ -6648,6 +6657,9 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T80597472"] =
-- Cancel
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T900713019"] = "Abbrechen"
-- Yes, hide the policy definition
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T940701960"] = "Ja, Richtliniendefinition ausblenden"
-- Please wait while we load the content of your file. Depending on the file type and size, this may take a moment.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTCHECKDIALOG::T1205126512"] = "Bitte warten Sie, während wir den Inhalt Ihrer Datei laden. Je nach Dateityp und -größe kann dies einen Moment dauern."
@@ -6582,9 +6582,15 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DIRECTCHATLAUNCHERSETTINGSDIALOG::T854110894
-- Cancel
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DIRECTCHATLAUNCHERSETTINGSDIALOG::T900713019"] = "Cancel"
-- No, the policy can be edited
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1286595725"] = "No, the policy can be edited"
-- Please provide a description of your analysis rules. This rules will be used to instruct the AI on how to analyze the documents.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1291179736"] = "Please provide a description of your analysis rules. This rules will be used to instruct the AI on how to analyze the documents."
-- Yes, protect this policy
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1762380857"] = "Yes, protect this policy"
-- Hide the policy definition when distributed via configuration plugin?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T1875622568"] = "Hide the policy definition when distributed via configuration plugin?"
@@ -6615,6 +6621,9 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T3108719748"]
-- Tools this policy permits
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T31356122"] = "Tools this policy permits"
-- No, show the policy definition
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T3166091879"] = "No, show the policy definition"
-- The description of your policy must be between 32 and 512 characters long.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T3285636934"] = "The description of your policy must be between 32 and 512 characters long."
@@ -6648,6 +6657,9 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T80597472"] =
-- Cancel
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T900713019"] = "Cancel"
-- Yes, hide the policy definition
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTANALYSISPOLICYDIALOG::T940701960"] = "Yes, hide the policy definition"
-- Please wait while we load the content of your file. Depending on the file type and size, this may take a moment.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DOCUMENTCHECKDIALOG::T1205126512"] = "Please wait while we load the content of your file. Depending on the file type and size, this may take a moment."