This commit is contained in:
Jason Liu
2023-12-23 12:24:45 -05:00
parent feb2a532ca
commit 8dcc111366
+27 -1
View File
@@ -675,7 +675,33 @@
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{\n",
" \"queries\": [\n",
" {\n",
" \"query\": \"Today's events\",\n",
" \"keywords\": [\n",
" \"today\",\n",
" \"events\",\n",
" \"calendar\"\n",
" ],\n",
" \"email\": \"jason@work.com\",\n",
" \"source\": \"calendar\",\n",
" \"date_range\": {\n",
" \"chain_of_thought\": \"Since the user is asking about today's events, we should look for events scheduled for the current day, which is 2023-12-22. We don't need an end date as the user is only interested in today's events.\",\n",
" \"start\": \"2023-12-22\",\n",
" \"end\": \"2023-12-22\"\n",
" }\n",
" }\n",
" ]\n",
"}\n"
]
}
],
"source": [
"retrival = client.chat.completions.create(\n",
" model=\"gpt-3.5-turbo\",\n",