Skip to content

Commit 20e4189

Browse files
committed
removed debug traces, added hint how to run
1 parent 3f6b94c commit 20e4189

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

docs/63_chat_with_docs/chat-with-hpc-compendium.ipynb

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"metadata": {},
77
"source": [
88
"# Ask about the HPC compendium\n",
9-
"In this RAG example, we will use the [HPC compendium](https://compendium.hpc.tu-dresden.de/) which is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) by TU Dresden ZIH. "
9+
"In this RAG example, we will use the [HPC compendium](https://compendium.hpc.tu-dresden.de/) which is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) by TU Dresden ZIH. \n",
10+
"\n",
11+
"Hint: Execute this notebook from the terminal using `voila chat-with-hpc-compendium.ipynb`."
1012
]
1113
},
1214
{
@@ -38,7 +40,10 @@
3840
"Settings.embed_model = HuggingFaceEmbedding(model_name=\"BAAI/bge-base-en-v1.5\")\n",
3941
"\n",
4042
"# ollama\n",
41-
"Settings.llm = OpenAILike(model=\"meta-llama/Llama-3.3-70B-Instruct\", request_timeout=120.0, api_base=\"https://llm.scads.ai/v1\", api_key=os.environ.get('SCADSAI_API_KEY'))"
43+
"Settings.llm = OpenAILike(model=\"meta-llama/Llama-3.3-70B-Instruct\", \n",
44+
" request_timeout=120.0, \n",
45+
" api_base=\"https://llm.scads.ai/v1\", \n",
46+
" api_key=os.environ.get('SCADSAI_API_KEY'))"
4247
]
4348
},
4449
{
@@ -76,18 +81,10 @@
7681
"id": "95f23057-ab49-4308-b053-7bcb903e075b",
7782
"metadata": {},
7883
"outputs": [
79-
{
80-
"name": "stdout",
81-
"output_type": "stream",
82-
"text": [
83-
"loading...\n",
84-
"done\n"
85-
]
86-
},
8784
{
8885
"data": {
8986
"application/vnd.jupyter.widget-view+json": {
90-
"model_id": "ace6d726a7ca4a28a77d029163a79796",
87+
"model_id": "223a27c7fcec4c64b0ba72195c77f5d3",
9188
"version_major": 2,
9289
"version_minor": 0
9390
},
@@ -101,7 +98,7 @@
10198
{
10299
"data": {
103100
"application/vnd.jupyter.widget-view+json": {
104-
"model_id": "4b00739f19124736991d8ba6f0e27990",
101+
"model_id": "96bbc04e28734a0ab1c24d26066c992c",
105102
"version_major": 2,
106103
"version_minor": 0
107104
},
@@ -115,7 +112,7 @@
115112
{
116113
"data": {
117114
"application/vnd.jupyter.widget-view+json": {
118-
"model_id": "56f3f485ddfd421ab13be2d992696bfc",
115+
"model_id": "2efd218694d64686bb009db9918ead64",
119116
"version_major": 2,
120117
"version_minor": 0
121118
},
@@ -172,9 +169,7 @@
172169
"submit_button.on_click(on_submit)\n",
173170
"submit_button.disabled = True\n",
174171
"\n",
175-
"print(\"loading...\")\n",
176172
"on_load()\n",
177-
"print(\"done\")\n",
178173
"\n",
179174
"# Arrange the widgets for display\n",
180175
"display(widgets.HBox([docs_input, load_button]), output_label, widgets.HBox([text_input, submit_button]))"

0 commit comments

Comments
 (0)