Skip to content

Commit

Permalink
update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmer1 committed Jan 30, 2024
1 parent caa2c5c commit c3deced
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions notebooks/RAG_Chatbot_with_Chat_Embed_Rerank.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@
" \n",
" for event in response:\n",
" stream_type = type(event).__name__\n",
" # Text\n",
" \n",
" # Text\n",
" if stream_type == \"StreamTextGeneration\":\n",
" print(event.text, end=\"\")\n",
"\n",
Expand All @@ -468,7 +469,8 @@
" print(\"\\n\\nCITATIONS:\")\n",
" citations_flag = True\n",
" print(event.citations[0])\n",
" \n",
" \n",
" # Documents\n",
" if citations_flag:\n",
" if stream_type == \"StreamingChat\":\n",
" print(\"\\n\\nDOCUMENTS:\")\n",
Expand Down

0 comments on commit c3deced

Please sign in to comment.