mirror of
https://github.com/NirDiamant/RAG_Techniques.git
synced 2025-04-07 00:48:52 +03:00
changed feedback data folder
This commit is contained in:
@@ -192,7 +192,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"def store_feedback(feedback):\n",
|
"def store_feedback(feedback):\n",
|
||||||
" with open(\"feedback_data.json\", \"a\") as f:\n",
|
" with open(\"../data/feedback_data.json\", \"a\") as f:\n",
|
||||||
" json.dump(feedback, f)\n",
|
" json.dump(feedback, f)\n",
|
||||||
" f.write(\"\\n\")"
|
" f.write(\"\\n\")"
|
||||||
]
|
]
|
||||||
@@ -213,7 +213,7 @@
|
|||||||
"def load_feedback_data():\n",
|
"def load_feedback_data():\n",
|
||||||
" feedback_data = []\n",
|
" feedback_data = []\n",
|
||||||
" try:\n",
|
" try:\n",
|
||||||
" with open(\"feedback_data.json\", \"r\") as f:\n",
|
" with open(\"../data/feedback_data.json\", \"r\") as f:\n",
|
||||||
" for line in f:\n",
|
" for line in f:\n",
|
||||||
" feedback_data.append(json.loads(line.strip()))\n",
|
" feedback_data.append(json.loads(line.strip()))\n",
|
||||||
" except FileNotFoundError:\n",
|
" except FileNotFoundError:\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user