#3095 Improve Document Compliance Check Instructions
#3095 Improve Document Compliance Check Instructions
#3095 Assess the following instructions to an LLM: """<TASK SUMMARY>Assess Compliance of DOCUMENT_A to REQUIREMENTS_B</TASK SUMMARY> <INSTRUCTIONS> <STEPS> <STEP id="0">Determine whether DOCUMENT_A fully complies, partially complies, or is non-compliant to REQUIREMENT_B.</STEP> <STEP id="1">Output the following when DOCUMENT_A fully complies with the requirement: a. The exact text of the requirement. b. The section(s) of DOCUMENT_A that demonstrate full compliance.</STEP> <STEP id="2">Output the following when DOCUMENT_A partially complies with the requirement: a. The exact text of the requirement. b. The section(s) of DOCUMENT_A that partially fulfill the requirement.</STEP> <STEP id="3">Output the following when DOCUMENT_A does not comply with the requirement: a. The exact text of the requirement. b. A commentary explaining why DOCUMENT_A does not meet the requirement.</STEP> </STEPS> </INSTRUCTIONS>""" --- the document and requirement will be provided by the user. Provided improved instructions that I can submit to the LLM.
Below is an improved and clarified version of the instructions that you can submit to the LLM:
For each requirement submitted by the user, I need a statement by the LLM that the document is "FULL COMPLIANCE", "PARTIAL COMPLIANCE", or "NON-COMPLIANCE" to the requirement, and why.
<AssessmentInstructions>
<Task>
Evaluate whether a provided document (DOCUMENT_A) complies with each given requirement submitted by the user.
</Task>
<OverallObjective>
<Status type="full">
DOCUMENT_A fully meets every aspect of the requirement.
</Status>
<Status type="partial">
DOCUMENT_A meets some parts of the requirement but has identifiable gaps.
</Status>
<Status type="none">
DOCUMENT_A does not meet the requirement.
</Status>
</OverallObjective>
<Steps>
<Step id="1">
<Title>Assess Each Requirement</Title>
<Details>
<Instruction>
For every requirement provided by the user, read the text carefully and assess DOCUMENT_A.
</Instruction>
<Instruction>
Determine the compliance status for each requirement as either FULL COMPLIANCE, PARTIAL COMPLIANCE, or NON-COMPLIANCE.
</Instruction>
</Details>
</Step>
<Step id="2">
<Title>Output a Compliance Statement</Title>
<Details>
<Instruction>
For each requirement, output a clear statement indicating the compliance status: "FULL COMPLIANCE", "PARTIAL COMPLIANCE", or "NON-COMPLIANCE".
</Instruction>
<Instruction>
Provide an explanation detailing why DOCUMENT_A meets, partially meets, or does not meet the requirement.
</Instruction>
</Details>
</Step>
<Step id="3">
<Title>Detailing the Evaluation</Title>
<Substeps>
<Substep compliance="full">
<Title>If Fully Compliant</Title>
<Instruction>
Output the exact text of the requirement.
</Instruction>
<Instruction>
Include the section(s) of DOCUMENT_A that clearly demonstrate full compliance.
</Instruction>
<Instruction>
Conclude with a statement: "FULL COMPLIANCE" along with a justification.
</Instruction>
</Substep>
<Substep compliance="partial">
<Title>If Partially Compliant</Title>
<Instruction>
Output the exact text of the requirement.
</Instruction>
<Instruction>
List the section(s) of DOCUMENT_A that partially fulfill the requirement.
</Instruction>
<Instruction>
Identify which aspects are not fully addressed.
</Instruction>
<Instruction>
Conclude with a statement: "PARTIAL COMPLIANCE" along with a detailed explanation.
</Instruction>
</Substep>
<Substep compliance="none">
<Title>If Non-Compliant</Title>
<Instruction>
Output the exact text of the requirement.
</Instruction>
<Instruction>
Provide a commentary explaining why DOCUMENT_A fails to meet the requirement.
</Instruction>
<Instruction>
Conclude with a statement: "NON-COMPLIANCE" along with a rationale.
</Instruction>
</Substep>
</Substeps>
</Step>
<Step id="4">
<Title>Formatting and Consistency</Title>
<Details>
<Instruction>
Clearly label each part of your output (e.g., "Compliance Statement", "Requirement Text", and "Evaluation Details").
</Instruction>
<Instruction>
Use section numbers or headings from DOCUMENT_A when referencing specific sections.
</Instruction>
<Instruction>
Ensure the evaluation is objective and based on direct comparisons between DOCUMENT_A and the requirement.
</Instruction>
<Instruction>
Maintain a consistent output structure for every requirement evaluated.
</Instruction>
</Details>
</Step>
</Steps>
<ExampleOutput>
<Structure>
<Line>Compliance Statement: FULL COMPLIANCE / PARTIAL COMPLIANCE / NON-COMPLIANCE</Line>
<Line>Requirement Text: "[Exact text of the requirement]"</Line>
<Line>
Evaluation Details:
<Detail>If Fully Compliant: Section X of DOCUMENT_A states: "..." — therefore, FULL COMPLIANCE because ...</Detail>
<Detail>If Partially Compliant: Section Y of DOCUMENT_A addresses part of the requirement, but it omits details regarding ... — therefore, PARTIAL COMPLIANCE because ...</Detail>
<Detail>If Non-Compliant: DOCUMENT_A does not address the following aspects: ... — therefore, NON-COMPLIANCE because ...</Detail>
</Line>
</Structure>
</ExampleOutput>
</AssessmentInstructions>
From <https://chatgpt.com/> ChatGPT o3-mini
Comments
Post a Comment