-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample-server-datamodel.json
More file actions
60 lines (59 loc) · 2.29 KB
/
example-server-datamodel.json
File metadata and controls
60 lines (59 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
Tendré que hacer un modelo de datos para la base de datos de MongoDB
que almacene las conversaciones de los usuarios con el asistente de OpenAI.
Hay 3 asistentes distintos (uno por reto) y cada asistente tiene un id único.
Cada thread tiene un id único y debería tener una conversación.
Hay una posibilidad de reset, pero no va a estar habilitado.
*/
{
"_id": ObjectId("5f3f8e3e3e3e3e3e3e3e3e3e"),
"userEmail": "XXX",
"assistantId": "asst_P4gKh4UBgiBuck9bVhgJbltK",
"lastthreadrun": {
"id": "run_evhFCmqmrgLSgn3XHDuOIb57",
"object": "thread.run",
"created_at": 1706887567,
"assistant_id": "asst_P4gKh4UBgiBuck9bVhgJbltK",
"thread_id": "thread_LiGYRq2FTH319y4GBuNp8dm4",
"status": "queued",
"started_at": null,
"expires_at": 1706888167,
"cancelled_at": null,
"failed_at": null,
"completed_at": null,
"last_error": null,
"model": "gpt-4o-mini",
"instructions": "Eres un ayudante a escribir queries de MongoDB. Los alumnos primero deben importar la base de datos con el comando mongoimport y posteriormente hacer queries find y findOne.",
"tools": [
{
"type": "code_interpreter"
}
],
"file_ids": [],
"metadata": {},
"usage": null
},
"usage": [{ "prompt_tokens": 127, "completion_tokens": 240, "total_tokens": 367 }, { "prompt_tokens": 27, "completion_tokens": 40, "total_tokens": 67 }],
"created_at": 1706887567,
"updated_at": 1706887567,
"conversation": [
{
"question": "¿Cómo importo la base de datos?",
"answer": "bla bla bla mongoimport --db=escuela --collection=alumnos --file=alumnos.json",
"question_created_at": 1706887567,
"answer_created_at": 1706887999
},
{
"question": "¿Cómo hago un query find?",
"answer": "db.alumnos.find({})",
"question_created_at": 1706889567,
"answer_created_at": 1706889999
},
{
"question": "¿Cómo hago un query findOne?",
"answer": "db.alumnos.findOne({})",
"question_created_at": 1706987567,
"answer_created_at": 1706897999
}
]
}