Skip to content

Commit

Permalink
🐛 fix file saving error
Browse files Browse the repository at this point in the history
  • Loading branch information
rathijitpapon committed Mar 28, 2024
1 parent eceedb7 commit dc4e0a7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
11 changes: 11 additions & 0 deletions backend/app/chembl_data_debug_source.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
question,answer,study,refined_results
What is the alogP value for Aspirin?,The alogP value for Aspirin is 1.33.,Aspirin,
Has Aspirin received a black box warning from the FDA?,"No, Aspirin has not received a black box warning from the FDA.",Aspirin,
How many aromatic rings are present in the Aspirin molecule?,The Aspirin molecule contains 3 aromatic rings.,Aspirin,
How many aromatic rings are present in the structure of Aspirin?,Aspirin has 3 aromatic rings.,Aspirin,
How many aromatic rings are present in the Aspirin molecule?,The Aspirin molecule has 3 aromatic rings.,Aspirin,
What is the molecular type of Paracetamol (Acetaminophen)?,The molecular type of Paracetamol (Acetaminophen) is a 'Small molecule'.,Paracetamol (Acetaminophen),
What is the chirality of Paracetamol (Acetaminophen)?,The chirality of Paracetamol (Acetaminophen) is -1.,Paracetamol (Acetaminophen),
What is the alogp value for Paracetamol (Acetaminophen)?,The alogp value for Paracetamol (Acetaminophen) is 1.33.,Paracetamol (Acetaminophen),
How many aromatic rings are present in the structure of Paracetamol (Acetaminophen)?,Paracetamol (Acetaminophen) has three aromatic rings in its structure.,Paracetamol (Acetaminophen),
What is the value of alogP for Paracetamol (Acetaminophen)?,The value of alogP for Paracetamol (Acetaminophen) is 2.11.,Paracetamol (Acetaminophen),
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def get_table_context_str(self, table_schema_objs: List[dict[str, str]]) -> str:


def store_debug(self):
with open("debug_chembl.txt", "w") as f:
with open("debug_chembl.txt", "a") as f:
f.write(str(self.debug_chembl) + ",\n")

def get_response_synthesis_prompt(
Expand Down
Loading

0 comments on commit dc4e0a7

Please sign in to comment.