Update databaseengine.py
Browse files- databaseengine.py +8 -1
databaseengine.py
CHANGED
|
@@ -28,7 +28,14 @@ class DatabaseEngine():
|
|
| 28 |
collection=db1.get_collection(coll1)
|
| 29 |
collection.update_one(
|
| 30 |
{"version": data["promptversion"]},
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
)
|
| 33 |
|
| 34 |
|
|
|
|
| 28 |
collection=db1.get_collection(coll1)
|
| 29 |
collection.update_one(
|
| 30 |
{"version": data["promptversion"]},
|
| 31 |
+
|
| 32 |
+
{"$set": {
|
| 33 |
+
"biological_context_alignment":data["biological_context_alignment"],
|
| 34 |
+
"contextual_relevance_alignment":data["contextual_relevance_alignment"],
|
| 35 |
+
"unit_coherence":data["unit_coherence"],
|
| 36 |
+
"response_specificity":data["response_specificity"]
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
)
|
| 40 |
|
| 41 |
|