Update app.py
Browse files
app.py
CHANGED
|
@@ -31,14 +31,28 @@ def retrieve_qa_rules(question):
|
|
| 31 |
|
| 32 |
# Map question topics to the QA rules they need.
|
| 33 |
topic_rules = {
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
"observation": {
|
| 43 |
"keywords": [
|
| 44 |
"observation", "inference",
|
|
|
|
| 31 |
|
| 32 |
# Map question topics to the QA rules they need.
|
| 33 |
topic_rules = {
|
| 34 |
+
"titre": {
|
| 35 |
+
"keywords": [
|
| 36 |
+
"titre",
|
| 37 |
+
"burette",
|
| 38 |
+
"initial reading",
|
| 39 |
+
"final reading",
|
| 40 |
+
"volume delivered",
|
| 41 |
+
"volume used",
|
| 42 |
+
"volume added",
|
| 43 |
+
"how much solution",
|
| 44 |
+
"how much sodium hydroxide",
|
| 45 |
+
"volume of sodium hydroxide",
|
| 46 |
+
"volume of acid",
|
| 47 |
+
"amount of titrant",
|
| 48 |
+
"before the colour changed",
|
| 49 |
+
"before the color changed",
|
| 50 |
+
"until the colour changes",
|
| 51 |
+
"until the color changes"
|
| 52 |
+
],
|
| 53 |
+
"rule_ids": ["QA-008", "QA-009"]
|
| 54 |
+
},
|
| 55 |
+
|
| 56 |
"observation": {
|
| 57 |
"keywords": [
|
| 58 |
"observation", "inference",
|