|
6 | 6 | "metadata": {}, |
7 | 7 | "source": [ |
8 | 8 | "# 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`." |
10 | 12 | ] |
11 | 13 | }, |
12 | 14 | { |
|
38 | 40 | "Settings.embed_model = HuggingFaceEmbedding(model_name=\"BAAI/bge-base-en-v1.5\")\n", |
39 | 41 | "\n", |
40 | 42 | "# 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'))" |
42 | 47 | ] |
43 | 48 | }, |
44 | 49 | { |
|
76 | 81 | "id": "95f23057-ab49-4308-b053-7bcb903e075b", |
77 | 82 | "metadata": {}, |
78 | 83 | "outputs": [ |
79 | | - { |
80 | | - "name": "stdout", |
81 | | - "output_type": "stream", |
82 | | - "text": [ |
83 | | - "loading...\n", |
84 | | - "done\n" |
85 | | - ] |
86 | | - }, |
87 | 84 | { |
88 | 85 | "data": { |
89 | 86 | "application/vnd.jupyter.widget-view+json": { |
90 | | - "model_id": "ace6d726a7ca4a28a77d029163a79796", |
| 87 | + "model_id": "223a27c7fcec4c64b0ba72195c77f5d3", |
91 | 88 | "version_major": 2, |
92 | 89 | "version_minor": 0 |
93 | 90 | }, |
|
101 | 98 | { |
102 | 99 | "data": { |
103 | 100 | "application/vnd.jupyter.widget-view+json": { |
104 | | - "model_id": "4b00739f19124736991d8ba6f0e27990", |
| 101 | + "model_id": "96bbc04e28734a0ab1c24d26066c992c", |
105 | 102 | "version_major": 2, |
106 | 103 | "version_minor": 0 |
107 | 104 | }, |
|
115 | 112 | { |
116 | 113 | "data": { |
117 | 114 | "application/vnd.jupyter.widget-view+json": { |
118 | | - "model_id": "56f3f485ddfd421ab13be2d992696bfc", |
| 115 | + "model_id": "2efd218694d64686bb009db9918ead64", |
119 | 116 | "version_major": 2, |
120 | 117 | "version_minor": 0 |
121 | 118 | }, |
|
172 | 169 | "submit_button.on_click(on_submit)\n", |
173 | 170 | "submit_button.disabled = True\n", |
174 | 171 | "\n", |
175 | | - "print(\"loading...\")\n", |
176 | 172 | "on_load()\n", |
177 | | - "print(\"done\")\n", |
178 | 173 | "\n", |
179 | 174 | "# Arrange the widgets for display\n", |
180 | 175 | "display(widgets.HBox([docs_input, load_button]), output_label, widgets.HBox([text_input, submit_button]))" |
|
0 commit comments