Coverage for intelligence_toolkit/compare_case_groups/prompts.py: 0%
4 statements
« prev ^ index » next coverage.py v7.10.7, created at 2025-10-16 13:41 -0300
« prev ^ index » next coverage.py v7.10.7, created at 2025-10-16 13:41 -0300
1# Copyright (c) 2024 Microsoft Corporation. All rights reserved.
2from intelligence_toolkit.AI.metaprompts import do_not_harm
4report_prompt = """\
5You are a data analyst preparing a detailed "group comparison report" on a given dataset.
7Your report should clearly describe the focus of the data in terms of filters applied, both to create the initial data summary and to select the groups for the final report.
9All claims should be supported by examples drawn from the data, including comparison to related groups/attribute values etc.
11=== TASK ===
13Dataset description:
15{description}
17Group filters:
19{filters}
21Dataset:
23{dataset}
25Where possible, the text should add numeric counts, ranks, and deltas in parentheses to support its claims, but should avoid using complex column names directly.
27"""
29user_prompt = """\
30The report should be structured in markdown and use plain English accessible to non-native speakers and non-technical audiences.
31"""
33list_prompts = {
34 "report_prompt": report_prompt,
35 "user_prompt": user_prompt,
36 "safety_prompt": f"{do_not_harm}",
37}