Skip to content

Commit

Permalink
cleaned notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Chen committed May 24, 2024
1 parent 24d18de commit 95d7e4e
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions scripts/run_batch_create_index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"import subprocess\n",
"import tqdm\n",
"from openai import AzureOpenAI\n",
"\n",
"from dotenv import load_dotenv\n",
"\n",
"load_dotenv() "
Expand Down Expand Up @@ -91,7 +90,7 @@
"with open(\"./config.json\", \"r\") as f:\n",
" config = json.loads(f.read())\n",
"\n",
"config\n"
"config"
]
},
{
Expand Down Expand Up @@ -121,7 +120,6 @@
" \"form-rec-use-layout\": False,\n",
" },\n",
" \"nyc\": \"nyc_embed_003_small_512_512_index\",\n",
" # \"pdf-testing\": \"pdf_testing_embed_003_large_1024_index\", # this is just for testing pdf\n",
" \"Premera\": \"premera_embed_003_small_512_512_index\",\n",
" \"product-info\": {\n",
" \"index\": \"product_info_embed_003_small_512_512_index\",\n",
Expand All @@ -140,26 +138,6 @@
"}"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"dict_keys(['aks', 'azure-docs', 'Mercedes', 'merge_contact', 'nyc', 'Premera', 'product-info', 'test_loranorm', 'tprompt', 'yw'])"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"run_config_by_data_path_3_small_512_512.keys()"
]
},
{
"cell_type": "code",
"execution_count": 12,
Expand Down Expand Up @@ -315,10 +293,6 @@
],
"source": [
"for key, cfg in tqdm.tqdm(run_config_by_data_path_3_small_512_512.items()):\n",
" # if key in ['aks', ]:\n",
" # continue\n",
" # if key != 'merge_contact':\n",
" # continue\n",
" folder = os.path.join(\"../../data/gptassertdata/index_data\", key)\n",
" \n",
" if isinstance(cfg, str):\n",
Expand Down

0 comments on commit 95d7e4e

Please sign in to comment.