Skip to content

Commit 249671c

Browse files
committed
fixing py error
1 parent aa96ce1 commit 249671c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rag_and_distilled_model/Apollo11_rag&distilled.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@
489489
" context_text = (\n",
490490
" truncated_prompt.split(\"Context:\")[1].split(\"Question:\")[0].strip()\n",
491491
" )\n",
492-
" except:\n",
492+
" except Exception as e:\n",
493+
" print(f\"Error extracting context: {e}\")\n",
493494
" pass\n",
494495
"\n",
495496
" answer = llm.invoke(prompt)\n",

0 commit comments

Comments
 (0)