Skip to content

Commit bb66b96

Browse files
reorganize directories
1 parent 7676c2d commit bb66b96

18 files changed

+12102
-10596
lines changed

Chapter5/better_pandas.ipynb

+2-3,965
Large diffs are not rendered by default.

Chapter5/deltalake.ipynb

+2,422
Large diffs are not rendered by default.

Chapter5/polars.ipynb

+1,637
Large diffs are not rendered by default.

_toc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ chapters:
6969
- file: Chapter5/better_pandas.ipynb
7070
- file: Chapter5/testing.ipynb
7171
- file: Chapter5/SQL.ipynb
72+
- file: Chapter5/polars.ipynb
7273
- file: Chapter5/spark.ipynb
74+
- file: Chapter5/deltalake.ipynb
7375
- file: Chapter5/llm.ipynb
7476
- file: Chapter6/Chapter6.md
7577
sections:

docs/Chapter5/Chapter5.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,10 @@
270270
<li class="toctree-l2"><a class="reference internal" href="better_pandas.html">6.11. Better Pandas</a></li>
271271
<li class="toctree-l2"><a class="reference internal" href="testing.html">6.12. Testing</a></li>
272272
<li class="toctree-l2"><a class="reference internal" href="SQL.html">6.13. SQL Libraries</a></li>
273-
<li class="toctree-l2"><a class="reference internal" href="spark.html">6.14. PySpark</a></li>
274-
<li class="toctree-l2"><a class="reference internal" href="llm.html">6.15. Large Language Model (LLM)</a></li>
273+
<li class="toctree-l2"><a class="reference internal" href="polars.html">6.14. Polars</a></li>
274+
<li class="toctree-l2"><a class="reference internal" href="spark.html">6.15. PySpark</a></li>
275+
<li class="toctree-l2"><a class="reference internal" href="deltalake.html">6.16. Delta Lake</a></li>
276+
<li class="toctree-l2"><a class="reference internal" href="llm.html">6.17. Large Language Model (LLM)</a></li>
275277
</ul>
276278
</li>
277279
<li class="toctree-l1 has-children"><a class="reference internal" href="../Chapter6/Chapter6.html">7. Cool Tools</a><input class="toctree-checkbox" id="toctree-checkbox-7" name="toctree-checkbox-7" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-7"><i class="fa-solid fa-chevron-down"></i></label><ul>

docs/Chapter5/better_pandas.html

+7-2,571
Large diffs are not rendered by default.

docs/Chapter5/deltalake.html

+2,213
Large diffs are not rendered by default.

docs/Chapter5/llm.html

+21-19
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta charset="utf-8" />
1010
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
1111

12-
<title>6.15. Large Language Model (LLM) &#8212; Effective Python for Data Scientists</title>
12+
<title>6.17. Large Language Model (LLM) &#8212; Effective Python for Data Scientists</title>
1313

1414

1515

@@ -101,7 +101,7 @@
101101
<link rel="index" title="Index" href="../genindex.html" />
102102
<link rel="search" title="Search" href="../search.html" />
103103
<link rel="next" title="7. Cool Tools" href="../Chapter6/Chapter6.html" />
104-
<link rel="prev" title="6.14. PySpark" href="spark.html" />
104+
<link rel="prev" title="6.16. Delta Lake" href="deltalake.html" />
105105
<meta name="viewport" content="width=device-width, initial-scale=1"/>
106106
<meta name="docsearch:language" content="en"/>
107107
</head>
@@ -270,8 +270,10 @@
270270
<li class="toctree-l2"><a class="reference internal" href="better_pandas.html">6.11. Better Pandas</a></li>
271271
<li class="toctree-l2"><a class="reference internal" href="testing.html">6.12. Testing</a></li>
272272
<li class="toctree-l2"><a class="reference internal" href="SQL.html">6.13. SQL Libraries</a></li>
273-
<li class="toctree-l2"><a class="reference internal" href="spark.html">6.14. PySpark</a></li>
274-
<li class="toctree-l2 current active"><a class="current reference internal" href="#">6.15. Large Language Model (LLM)</a></li>
273+
<li class="toctree-l2"><a class="reference internal" href="polars.html">6.14. Polars</a></li>
274+
<li class="toctree-l2"><a class="reference internal" href="spark.html">6.15. PySpark</a></li>
275+
<li class="toctree-l2"><a class="reference internal" href="deltalake.html">6.16. Delta Lake</a></li>
276+
<li class="toctree-l2 current active"><a class="current reference internal" href="#">6.17. Large Language Model (LLM)</a></li>
275277
</ul>
276278
</li>
277279
<li class="toctree-l1 has-children"><a class="reference internal" href="../Chapter6/Chapter6.html">7. Cool Tools</a><input class="toctree-checkbox" id="toctree-checkbox-7" name="toctree-checkbox-7" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-7"><i class="fa-solid fa-chevron-down"></i></label><ul>
@@ -513,10 +515,10 @@ <h2> Contents </h2>
513515
</div>
514516
<nav aria-label="Page">
515517
<ul class="visible nav section-nav flex-column">
516-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#simplify-llm-integration-with-magentic-s-prompt-decorator">6.15.1. Simplify LLM Integration with Magentic’s @prompt Decorator</a></li>
517-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#outlines-ensuring-consistent-outputs-from-language-models">6.15.2. Outlines: Ensuring Consistent Outputs from Language Models</a></li>
518-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#mirascope-extract-structured-data-extraction-from-llm-outputs">6.15.3. Mirascope: Extract Structured Data Extraction From LLM Outputs</a></li>
519-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#maximize-accuracy-and-relevance-with-external-data-and-llms">6.15.4. Maximize Accuracy and Relevance with External Data and LLMs</a></li>
518+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#simplify-llm-integration-with-magentic-s-prompt-decorator">6.17.1. Simplify LLM Integration with Magentic’s @prompt Decorator</a></li>
519+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#outlines-ensuring-consistent-outputs-from-language-models">6.17.2. Outlines: Ensuring Consistent Outputs from Language Models</a></li>
520+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#mirascope-extract-structured-data-extraction-from-llm-outputs">6.17.3. Mirascope: Extract Structured Data Extraction From LLM Outputs</a></li>
521+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#maximize-accuracy-and-relevance-with-external-data-and-llms">6.17.4. Maximize Accuracy and Relevance with External Data and LLMs</a></li>
520522
</ul>
521523
</nav>
522524
</div>
@@ -529,9 +531,9 @@ <h2> Contents </h2>
529531
<article class="bd-article" role="main">
530532

531533
<section id="large-language-model-llm">
532-
<h1><span class="section-number">6.15. </span>Large Language Model (LLM)<a class="headerlink" href="#large-language-model-llm" title="Permalink to this heading">#</a></h1>
534+
<h1><span class="section-number">6.17. </span>Large Language Model (LLM)<a class="headerlink" href="#large-language-model-llm" title="Permalink to this heading">#</a></h1>
533535
<section id="simplify-llm-integration-with-magentic-s-prompt-decorator">
534-
<h2><span class="section-number">6.15.1. </span>Simplify LLM Integration with Magentic’s &#64;prompt Decorator<a class="headerlink" href="#simplify-llm-integration-with-magentic-s-prompt-decorator" title="Permalink to this heading">#</a></h2>
536+
<h2><span class="section-number">6.17.1. </span>Simplify LLM Integration with Magentic’s &#64;prompt Decorator<a class="headerlink" href="#simplify-llm-integration-with-magentic-s-prompt-decorator" title="Permalink to this heading">#</a></h2>
535537
<div class="cell tag_hide-cell docutils container">
536538
<details class="hide above-input">
537539
<summary aria-label="Toggle hidden content">
@@ -636,7 +638,7 @@ <h2><span class="section-number">6.15.1. </span>Simplify LLM Integration with Ma
636638
<p><a class="reference external" href="https://github.com/jackmpcollins/magentic">Link to magentic</a>.</p>
637639
</section>
638640
<section id="outlines-ensuring-consistent-outputs-from-language-models">
639-
<h2><span class="section-number">6.15.2. </span>Outlines: Ensuring Consistent Outputs from Language Models<a class="headerlink" href="#outlines-ensuring-consistent-outputs-from-language-models" title="Permalink to this heading">#</a></h2>
641+
<h2><span class="section-number">6.17.2. </span>Outlines: Ensuring Consistent Outputs from Language Models<a class="headerlink" href="#outlines-ensuring-consistent-outputs-from-language-models" title="Permalink to this heading">#</a></h2>
640642
<p>The Outlines library enables controlling the outputs of language models. This makes the outputs more predictable, ensuring the reliability of systems using large language models.</p>
641643
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">outlines</span>
642644

@@ -664,7 +666,7 @@ <h2><span class="section-number">6.15.2. </span>Outlines: Ensuring Consistent Ou
664666
<p><a class="reference external" href="https://github.com/outlines-dev/outlines">Link to Outlines</a>.</p>
665667
</section>
666668
<section id="mirascope-extract-structured-data-extraction-from-llm-outputs">
667-
<h2><span class="section-number">6.15.3. </span>Mirascope: Extract Structured Data Extraction From LLM Outputs<a class="headerlink" href="#mirascope-extract-structured-data-extraction-from-llm-outputs" title="Permalink to this heading">#</a></h2>
669+
<h2><span class="section-number">6.17.3. </span>Mirascope: Extract Structured Data Extraction From LLM Outputs<a class="headerlink" href="#mirascope-extract-structured-data-extraction-from-llm-outputs" title="Permalink to this heading">#</a></h2>
668670
<div class="cell tag_hide-cell docutils container">
669671
<details class="hide above-input">
670672
<summary aria-label="Toggle hidden content">
@@ -732,7 +734,7 @@ <h2><span class="section-number">6.15.3. </span>Mirascope: Extract Structured Da
732734
<p><a class="reference external" href="https://bit.ly/4bkciv3">Link to Mirascope</a>.</p>
733735
</section>
734736
<section id="maximize-accuracy-and-relevance-with-external-data-and-llms">
735-
<h2><span class="section-number">6.15.4. </span>Maximize Accuracy and Relevance with External Data and LLMs<a class="headerlink" href="#maximize-accuracy-and-relevance-with-external-data-and-llms" title="Permalink to this heading">#</a></h2>
737+
<h2><span class="section-number">6.17.4. </span>Maximize Accuracy and Relevance with External Data and LLMs<a class="headerlink" href="#maximize-accuracy-and-relevance-with-external-data-and-llms" title="Permalink to this heading">#</a></h2>
736738
<div class="cell tag_hide-cell docutils container">
737739
<details class="hide above-input">
738740
<summary aria-label="Toggle hidden content">
@@ -952,12 +954,12 @@ <h2><span class="section-number">6.15.4. </span>Maximize Accuracy and Relevance
952954
<!-- Previous / next buttons -->
953955
<div class="prev-next-area">
954956
<a class="left-prev"
955-
href="spark.html"
957+
href="deltalake.html"
956958
title="previous page">
957959
<i class="fa-solid fa-angle-left"></i>
958960
<div class="prev-next-info">
959961
<p class="prev-next-subtitle">previous</p>
960-
<p class="prev-next-title"><span class="section-number">6.14. </span>PySpark</p>
962+
<p class="prev-next-title"><span class="section-number">6.16. </span>Delta Lake</p>
961963
</div>
962964
</a>
963965
<a class="right-next"
@@ -984,10 +986,10 @@ <h2><span class="section-number">6.15.4. </span>Maximize Accuracy and Relevance
984986
</div>
985987
<nav class="bd-toc-nav page-toc">
986988
<ul class="visible nav section-nav flex-column">
987-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#simplify-llm-integration-with-magentic-s-prompt-decorator">6.15.1. Simplify LLM Integration with Magentic’s @prompt Decorator</a></li>
988-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#outlines-ensuring-consistent-outputs-from-language-models">6.15.2. Outlines: Ensuring Consistent Outputs from Language Models</a></li>
989-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#mirascope-extract-structured-data-extraction-from-llm-outputs">6.15.3. Mirascope: Extract Structured Data Extraction From LLM Outputs</a></li>
990-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#maximize-accuracy-and-relevance-with-external-data-and-llms">6.15.4. Maximize Accuracy and Relevance with External Data and LLMs</a></li>
989+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#simplify-llm-integration-with-magentic-s-prompt-decorator">6.17.1. Simplify LLM Integration with Magentic’s @prompt Decorator</a></li>
990+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#outlines-ensuring-consistent-outputs-from-language-models">6.17.2. Outlines: Ensuring Consistent Outputs from Language Models</a></li>
991+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#mirascope-extract-structured-data-extraction-from-llm-outputs">6.17.3. Mirascope: Extract Structured Data Extraction From LLM Outputs</a></li>
992+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#maximize-accuracy-and-relevance-with-external-data-and-llms">6.17.4. Maximize Accuracy and Relevance with External Data and LLMs</a></li>
991993
</ul>
992994
</nav></div>
993995

0 commit comments

Comments
 (0)