ragtest-sakimilo / reset_database.py
lingyit1108's picture
finished answer evaluation
8434471
raw
history blame
249 Bytes
import os
import sqlite3
db_path = "./database/mock_qna.sqlite"
con = sqlite3.connect(db_path)
cur = con.cursor()
sql_string = "DELETE FROM answer_tbl"
res = cur.execute(sql_string)
con.commit()
con.close()
print("done cleaning up `answer_tbl`.")