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": [], | ||||
|    "source": [ | ||||
|     "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", | ||||
|     "        f.write(\"\\n\")" | ||||
|    ] | ||||
| @@ -213,7 +213,7 @@ | ||||
|     "def load_feedback_data():\n", | ||||
|     "    feedback_data = []\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", | ||||
|     "                feedback_data.append(json.loads(line.strip()))\n", | ||||
|     "    except FileNotFoundError:\n", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 nird
					nird