Datasets:

Modalities:
Text
Formats:
csv
Languages:
Thai
Libraries:
Datasets
Dask
License:
titipata commited on
Commit
8fe131d
·
verified ·
1 Parent(s): 28f600a

Add prompt template to answer a question

Browse files
Files changed (1) hide show
  1. README.md +23 -0
README.md CHANGED
@@ -31,6 +31,29 @@ exam_dataset = load_dataset("biodatlab/thai_buddhist_studies_exam") # no splitt
31
  exam_dataset["train"][0]
32
  ```
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  ## About Dhamma Practice Exam
36
 
 
31
  exam_dataset["train"][0]
32
  ```
33
 
34
+ ```py
35
+ # Example prompt template to answer the question
36
+ q = exam_dataset["train"][0]
37
+ prompt = f"""As a Buddhist scholar, please help answer questions about Buddhist principles and practices.
38
+ Given the following question and choices, provide:
39
+ 1. The correct answer
40
+ 2. A detailed explanation of why this is correct
41
+ 3. References to Buddhist texts or principles if applicable
42
+
43
+ Question: {q["question"]}
44
+
45
+ Choices:
46
+ ก. {q['ก']}
47
+ ข. {q['ข']}
48
+ ค. {q['ค']}
49
+ ง. {q['ง']}
50
+
51
+ Please structure your response in Thai language in JSON format as follows
52
+ คำตอบ: [correct choice]
53
+ คำอธิบาย: [explanation]
54
+ """
55
+ ```
56
+
57
 
58
  ## About Dhamma Practice Exam
59