Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 07a6135

Browse files
authored
Merge pull request #112 from cohere-ai/misc-updates
Update formatting
2 parents e471d91 + c3deced commit 07a6135

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

notebooks/RAG_Chatbot_with_Chat_Embed_Rerank.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@
8181
"from unstructured.partition.html import partition_html\n",
8282
"from unstructured.chunking.title import chunk_by_title\n",
8383
"\n",
84-
"# co = cohere.Client(\"COHERE_API_KEY\")\n",
85-
"import os\n",
86-
"co = cohere.Client(os.getenv(\"COHERE_API_KEY\"))"
84+
"co = cohere.Client(\"COHERE_API_KEY\")"
8785
]
8886
},
8987
{
@@ -460,7 +458,8 @@
460458
" \n",
461459
" for event in response:\n",
462460
" stream_type = type(event).__name__\n",
463-
" # Text\n",
461+
" \n",
462+
" # Text\n",
464463
" if stream_type == \"StreamTextGeneration\":\n",
465464
" print(event.text, end=\"\")\n",
466465
"\n",
@@ -470,7 +469,8 @@
470469
" print(\"\\n\\nCITATIONS:\")\n",
471470
" citations_flag = True\n",
472471
" print(event.citations[0])\n",
473-
" \n",
472+
" \n",
473+
" # Documents\n",
474474
" if citations_flag:\n",
475475
" if stream_type == \"StreamingChat\":\n",
476476
" print(\"\\n\\nDOCUMENTS:\")\n",

0 commit comments

Comments
 (0)