|
@@ -37,7 +37,7 @@
|
|
|
" \n",
|
|
|
" \n",
|
|
|
"\n",
|
|
|
- "3. For a free Cluser, be sure to select \"Shared\" option when creating your new cluster. See image below for details\n",
|
|
|
+ "3. For a free Cluster, be sure to select \"Shared\" option when creating your new cluster. See image below for details\n",
|
|
|
"\n",
|
|
|
"\n",
|
|
|
"\n",
|
|
@@ -53,7 +53,7 @@
|
|
|
"source": [
|
|
|
"## Import Libraries\n",
|
|
|
"\n",
|
|
|
- "Import libaries into development environment"
|
|
|
+ "Import libraries into development environment"
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -96,7 +96,7 @@
|
|
|
"import pandas as pd\n",
|
|
|
"import os\n",
|
|
|
"\n",
|
|
|
- "# Make sure you have an Hugging Face token(HF_TOKEN) in your development environemnt before runing the code below\n",
|
|
|
+ "# Make sure you have an Hugging Face token(HF_TOKEN) in your development environment before runing the code below\n",
|
|
|
"# How to get a token: https://huggingface.co/docs/hub/en/security-tokens\n",
|
|
|
"# Dataset Location: https://huggingface.co/datasets/MongoDB/subset_arxiv_papers_with_embeddings\n",
|
|
|
"os.environ[\"HF_TOKEN\"] = \"place_hugging_face_access_token here\" # Do not use this in production environment, use a .env file instead\n",
|
|
@@ -199,7 +199,7 @@
|
|
|
" <td>704.0001</td>\n",
|
|
|
" <td>Pavel Nadolsky</td>\n",
|
|
|
" <td>C. Bal\\'azs, E. L. Berger, P. M. Nadolsky, C.-...</td>\n",
|
|
|
- " <td>Calculation of prompt diphoton production cros...</td>\n",
|
|
|
+ " <td>Calculation of prompt diphoton production cross...</td>\n",
|
|
|
" <td>37 pages, 15 figures; published version</td>\n",
|
|
|
" <td>Phys.Rev.D76:013009,2007</td>\n",
|
|
|
" <td>10.1103/PhysRevD.76.013009</td>\n",
|
|
@@ -512,7 +512,7 @@
|
|
|
"4 Wael Abu-Shammala and Alberto Torchinsky \n",
|
|
|
"\n",
|
|
|
" title \\\n",
|
|
|
- "0 Calculation of prompt diphoton production cros... \n",
|
|
|
+ "0 Calculation of prompt diphoton production cross... \n",
|
|
|
"1 Sparsity-certifying Graph Decompositions \n",
|
|
|
"2 The evolution of the Earth-Moon system based o... \n",
|
|
|
"3 A determinant of Stirling cycle numbers counts... \n",
|
|
@@ -859,7 +859,7 @@
|
|
|
"name": "stdout",
|
|
|
"output_type": "stream",
|
|
|
"text": [
|
|
|
- "[{'role': 'system', 'content': 'You are a research assitant!'}, {'role': 'user', 'content': 'Query: Get me papers on Artificial Intelligence?\\nContinue to answer the query by using the Search Results:\\n.'}]\n"
|
|
|
+ "[{'role': 'system', 'content': 'You are a research assistant!'}, {'role': 'user', 'content': 'Query: Get me papers on Artificial Intelligence?\\nContinue to answer the query by using the Search Results:\\n.'}]\n"
|
|
|
]
|
|
|
}
|
|
|
],
|
|
@@ -869,7 +869,7 @@
|
|
|
"source_information = get_search_result(query, collection)\n",
|
|
|
"combined_information = f\"Query: {query}\\nContinue to answer the query by using the Search Results:\\n{source_information}.\"\n",
|
|
|
"messages = [\n",
|
|
|
- " {\"role\": \"system\", \"content\": \"You are a research assitant!\"},\n",
|
|
|
+ " {\"role\": \"system\", \"content\": \"You are a research assistant!\"},\n",
|
|
|
" {\"role\": \"user\", \"content\": combined_information},\n",
|
|
|
"]\n",
|
|
|
"print(messages)"
|