This is an old revision of the document!
Processes for creating questions and summaries from Will's data.
dify.ai used for both portions. Minimally processed data was uploaded as a CSV.
QUESTIONS ```xml <instruction> Begin by reading the file name provided in file_name. Analyze the contents of the CSV file to identify relevant laws and processes. Generate a list of questions that pertain to processes that can be performed based on the laws identified in the CSV. For each question, include the corresponding law codes that can be referenced for the answers. Format the output as shown in the example, ensuring that each question is followed by the relevant law codes. Ensure that the output does not contain any XML tags. </instruction>
<input> <file_name>file_name</file_name> </input>
<output> <questions> question_1 - Refer to law_code_1. question_2 - Refer to law_code_2. question_3 - Refer to law_code_3. <!– Continue as needed for additional questions –> </questions> </output>
<example> “How do I ensure compliance with Virginia's consumer protection laws? - Refer to Virginia Code § 59.1-196 through § 59.1-207.” </example> ```
SUMMARIES
``` xml <instruction>
1. Begin by reviewing the file containing the laws provided in {{laws_file}}. 2. Carefully read the question that needs to be answered, which is specified in {{question}}. 3. Examine the set of references given in {{references_set}} to gather additional context or information that may assist in answering the question. 4. Analyze the relevant laws from {{laws_file}} that pertain to the question in {{question}}. 5. Synthesize the information from the laws and the references to formulate a comprehensive answer to the question. 6. Ensure that your response is clear, very detailed, and directly addresses the question posed. Step by step instructions should be provided. 7. Review your answer to confirm that it is based solely on the information from {{laws_file}} and {{references_set}}. 8. Provide the final answer without any XML tags or additional formatting.
</instruction>
<input>
<laws_file>Path_to_the_file_containing_the_laws</laws_file> <question>The_specific_question_to_be_answered</question> <references_set>A_list_of_references_to_assist_in_answering_the_question</references_set>
</input>
<output>
<final_answer>The_answer_to_the_question_based_on_the_laws_and_references</final_answer>
</output>
<example>
<laws_file>laws.txt</laws_file> <question>What_are_the_penalties_for_violating_the_zoning_laws?</question> <references_set>Reference_1, Reference_2</references_set>
</example> ```