Skip to content

Commit

Permalink
📥 Export to HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
grzenkom committed Sep 27, 2023
1 parent 4d48362 commit 2c8e950
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 18 deletions.
33 changes: 24 additions & 9 deletions exported_qa_engine.one_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7697,7 +7697,7 @@ <h2 id="Load-a-model">Load a model<a class="anchor-link" href="#Load-a-model">¶
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=035dd36a">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=035dd36a">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -7723,6 +7723,19 @@ <h2 id="Load-a-model">Load a model<a class="anchor-link" href="#Load-a-model">¶
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Device has 1 GPUs available. Provide device={deviceId} to `from_model_id` to use availableGPUs for execution. deviceId is -1 (default) for CPU and can be a positive integer associated with CUDA device id.
</pre>
</div>
</div>
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=83aecfba">
<div class="jp-Cell-inputWrapper" tabindex="0">
Expand Down Expand Up @@ -7968,7 +7981,8 @@ <h2 id="Harder-questions">Harder questions<a class="anchor-link" href="#Harder-q
<div class="jp-InputPrompt jp-InputArea-prompt">In [12]:</div>
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-ipython3"><pre><span></span><span class="n">llm_chain</span><span class="p">(</span><span class="s2">"What's the length of the Tsar's Trail and where does it begin?"</span><span class="p">)[</span><span class="s2">"text"</span><span class="p">]</span>
<div class="highlight hl-ipython3"><pre><span></span><span class="n">llm_chain</span><span class="p">(</span><span class="s2">"""Bialowieza Forest trails are marked with colors.</span>
<span class="s2"> What's the color of the Wolf’s Trail?"""</span><span class="p">)[</span><span class="s2">"text"</span><span class="p">]</span>
</pre></div>
</div>
</div>
Expand All @@ -7981,7 +7995,7 @@ <h2 id="Harder-questions">Harder questions<a class="anchor-link" href="#Harder-q
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[12]:</div>
<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain" tabindex="0">
<pre>"&lt;pad&gt; The Tsar's Trail is a 900 mile long trail that begins in Moscow and ends in St. Petersburg."</pre>
<pre>'&lt;pad&gt; Yellow.\n'</pre>
</div>
</div>
</div>
Expand Down Expand Up @@ -8375,11 +8389,11 @@ <h2 id="%E2%86%AA%EF%B8%8F-Similarity-search">↪️ Similarity search<a class="
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[20]:</div>
<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain" tabindex="0">
<pre>['0.499 | 323 | Białowieża [bʲawɔˈvʲɛʐa] (Belarusian: Белавежа, Biełavieža) ...',
'0.613 | 238 | Białowieża is the seat of the administrative district of Gmi ...',
'0.676 | 283 | == Location ==\nBiałowieża is in eastern Poland, in Podlasie ...',
<pre>["0.570 | 245 | Białowieża [bʲawɔˈvʲɛʐa] in Poland's Podlasie Province, in t ...",
'0.624 | 450 | == Location ==\nBiałowieża is in eastern Poland, in Podlasie ...',
'0.716 | 95 | village of Białowieża lies within the forest. Białowieża mea ...',
'0.748 | 498 | The Białowieża Forest takes its name from the Polish village ...']</pre>
'0.748 | 498 | The Białowieża Forest takes its name from the Polish village ...',
'0.768 | 500 | Białowieża National Park (Polish: Białowieski Park Narodowy) ...']</pre>
</div>
</div>
</div>
Expand Down Expand Up @@ -8477,7 +8491,8 @@ <h2 id="RAG-step-6---generate-answers-with-the-Q&amp;A-chain">RAG step 6 - gener
<div class="jp-InputPrompt jp-InputArea-prompt">In [23]:</div>
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-ipython3"><pre><span></span><span class="n">question</span> <span class="o">=</span> <span class="s2">"What's the length of the Tsar's Trail and where does it begin?"</span>
<div class="highlight hl-ipython3"><pre><span></span><span class="n">question</span> <span class="o">=</span> <span class="s2">"""Bialowieza Forest trails are marked with colors.</span>
<span class="s2"> What's the color of the Wolf’s Trail?"""</span>

<span class="n">qa_chain</span><span class="p">(</span><span class="sa">f</span><span class="s2">"Provide brief answers, use 10 words or less. </span><span class="si">{</span><span class="n">question</span><span class="si">}</span><span class="s2">"</span><span class="p">)[</span><span class="s2">"result"</span><span class="p">]</span>
</pre></div>
Expand All @@ -8492,7 +8507,7 @@ <h2 id="RAG-step-6---generate-answers-with-the-Q&amp;A-chain">RAG step 6 - gener
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[23]:</div>
<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain" tabindex="0">
<pre>'&lt;pad&gt; 4 km long, starts at Przed Kosym Mostem depot.\n'</pre>
<pre>"&lt;pad&gt; The Wolf's Trail is green.\n"</pre>
</div>
</div>
</div>
Expand Down
33 changes: 24 additions & 9 deletions exported_qa_engine.slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -7656,7 +7656,7 @@ <h2 id="Load-a-model">Load a model<a class="anchor-link" href="#Load-a-model">¶
</div>
</div>
</div>
</div><div class="fragment"><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=035dd36a">
</div><div class="fragment"><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=035dd36a">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -7682,6 +7682,19 @@ <h2 id="Load-a-model">Load a model<a class="anchor-link" href="#Load-a-model">¶
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Device has 1 GPUs available. Provide device={deviceId} to `from_model_id` to use availableGPUs for execution. deviceId is -1 (default) for CPU and can be a positive integer associated with CUDA device id.
</pre>
</div>
</div>
</div>
</div>
</div></div></section></section><section><section>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=83aecfba">
<div class="jp-Cell-inputWrapper" tabindex="0">
Expand Down Expand Up @@ -7927,7 +7940,8 @@ <h2 id="Harder-questions">Harder questions<a class="anchor-link" href="#Harder-q
<div class="jp-InputPrompt jp-InputArea-prompt">In [12]:</div>
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-ipython3"><pre><span></span><span class="n">llm_chain</span><span class="p">(</span><span class="s2">"What's the length of the Tsar's Trail and where does it begin?"</span><span class="p">)[</span><span class="s2">"text"</span><span class="p">]</span>
<div class="highlight hl-ipython3"><pre><span></span><span class="n">llm_chain</span><span class="p">(</span><span class="s2">"""Bialowieza Forest trails are marked with colors.</span>
<span class="s2"> What's the color of the Wolf’s Trail?"""</span><span class="p">)[</span><span class="s2">"text"</span><span class="p">]</span>
</pre></div>
</div>
</div>
Expand All @@ -7940,7 +7954,7 @@ <h2 id="Harder-questions">Harder questions<a class="anchor-link" href="#Harder-q
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[12]:</div>
<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain" tabindex="0">
<pre>"&lt;pad&gt; The Tsar's Trail is a 900 mile long trail that begins in Moscow and ends in St. Petersburg."</pre>
<pre>'&lt;pad&gt; Yellow.\n'</pre>
</div>
</div>
</div>
Expand Down Expand Up @@ -8285,11 +8299,11 @@ <h2 id="%E2%86%AA%EF%B8%8F-Similarity-search">↪️ Similarity search<a class="
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[20]:</div>
<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain" tabindex="0">
<pre>['0.499 | 323 | Białowieża [bʲawɔˈvʲɛʐa] (Belarusian: Белавежа, Biełavieža) ...',
'0.613 | 238 | Białowieża is the seat of the administrative district of Gmi ...',
'0.676 | 283 | == Location ==\nBiałowieża is in eastern Poland, in Podlasie ...',
<pre>["0.570 | 245 | Białowieża [bʲawɔˈvʲɛʐa] in Poland's Podlasie Province, in t ...",
'0.624 | 450 | == Location ==\nBiałowieża is in eastern Poland, in Podlasie ...',
'0.716 | 95 | village of Białowieża lies within the forest. Białowieża mea ...',
'0.748 | 498 | The Białowieża Forest takes its name from the Polish village ...']</pre>
'0.748 | 498 | The Białowieża Forest takes its name from the Polish village ...',
'0.768 | 500 | Białowieża National Park (Polish: Białowieski Park Narodowy) ...']</pre>
</div>
</div>
</div>
Expand Down Expand Up @@ -8387,7 +8401,8 @@ <h2 id="RAG-step-6---generate-answers-with-the-Q&amp;A-chain">RAG step 6 - gener
<div class="jp-InputPrompt jp-InputArea-prompt">In [23]:</div>
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-ipython3"><pre><span></span><span class="n">question</span> <span class="o">=</span> <span class="s2">"What's the length of the Tsar's Trail and where does it begin?"</span>
<div class="highlight hl-ipython3"><pre><span></span><span class="n">question</span> <span class="o">=</span> <span class="s2">"""Bialowieza Forest trails are marked with colors.</span>
<span class="s2"> What's the color of the Wolf’s Trail?"""</span>

<span class="n">qa_chain</span><span class="p">(</span><span class="sa">f</span><span class="s2">"Provide brief answers, use 10 words or less. </span><span class="si">{</span><span class="n">question</span><span class="si">}</span><span class="s2">"</span><span class="p">)[</span><span class="s2">"result"</span><span class="p">]</span>
</pre></div>
Expand All @@ -8402,7 +8417,7 @@ <h2 id="RAG-step-6---generate-answers-with-the-Q&amp;A-chain">RAG step 6 - gener
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[23]:</div>
<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain" tabindex="0">
<pre>'&lt;pad&gt; 4 km long, starts at Przed Kosym Mostem depot.\n'</pre>
<pre>"&lt;pad&gt; The Wolf's Trail is green.\n"</pre>
</div>
</div>
</div>
Expand Down

0 comments on commit 2c8e950

Please sign in to comment.