ChemDave commited on
Commit
9543c83
·
verified ·
1 Parent(s): 9837a20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -8
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
- "titre": {
35
- "keywords": [
36
- "titre", "burette", "initial reading",
37
- "final reading", "volume delivered",
38
- "volume used", "how much solution"
39
- ],
40
- "rule_ids": ["QA-008", "QA-009"]
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",