Skip to content

Commit dc8a4ac

Browse files
deploy: acdcff4
1 parent bc6cff2 commit dc8a4ac

File tree

4 files changed

+66
-45
lines changed

4 files changed

+66
-45
lines changed

posts.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ <h1 class="title">Posts</h1>
263263
</div>
264264
</div>
265265
<div class="list grid quarto-listing-cols-3">
266-
<div class="g-col-1" data-index="0" data-categories="LLMs and data" data-listing-date-sort="1697414400000" data-listing-file-modified-sort="1709656162211" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="435">
266+
<div class="g-col-1" data-index="0" data-categories="LLMs and data" data-listing-date-sort="1697414400000" data-listing-file-modified-sort="1709656367992" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="435">
267267
<a href="./posts/llms-and-data-pt4/index.html" class="quarto-grid-link">
268268
<div class="quarto-grid-item card h-100 card-left">
269269
<p class="card-img-top"><img src="posts/llms-and-data-pt4/images/figure1.png" style="height: 150px;" class="thumbnail-image card-img"/></p>
@@ -291,7 +291,7 @@ <h5 class="no-anchor card-title listing-title">
291291
</div>
292292
</a>
293293
</div>
294-
<div class="g-col-1" data-index="1" data-categories="LLMs and data" data-listing-date-sort="1697328000000" data-listing-file-modified-sort="1709656162211" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="444">
294+
<div class="g-col-1" data-index="1" data-categories="LLMs and data" data-listing-date-sort="1697328000000" data-listing-file-modified-sort="1709656367992" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="444">
295295
<a href="./posts/llms-and-data-pt3/index.html" class="quarto-grid-link">
296296
<div class="quarto-grid-item card h-100 card-left">
297297
<p class="card-img-top"><img src="images/logo.png" style="height: 150px;" class="thumbnail-image card-img"/></p>
@@ -319,7 +319,7 @@ <h5 class="no-anchor card-title listing-title">
319319
</div>
320320
</a>
321321
</div>
322-
<div class="g-col-1" data-index="2" data-categories="LLMs and data" data-listing-date-sort="1697241600000" data-listing-file-modified-sort="1709656162211" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="4" data-listing-word-count-sort="725">
322+
<div class="g-col-1" data-index="2" data-categories="LLMs and data" data-listing-date-sort="1697241600000" data-listing-file-modified-sort="1709656367992" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="4" data-listing-word-count-sort="725">
323323
<a href="./posts/llms-and-data-pt2/index.html" class="quarto-grid-link">
324324
<div class="quarto-grid-item card h-100 card-left">
325325
<p class="card-img-top"><img src="images/logo.png" style="height: 150px;" class="thumbnail-image card-img"/></p>
@@ -347,7 +347,7 @@ <h5 class="no-anchor card-title listing-title">
347347
</div>
348348
</a>
349349
</div>
350-
<div class="g-col-1" data-index="3" data-categories="LLMs and data" data-listing-date-sort="1697155200000" data-listing-file-modified-sort="1709656162211" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="7" data-listing-word-count-sort="1298">
350+
<div class="g-col-1" data-index="3" data-categories="LLMs and data" data-listing-date-sort="1697155200000" data-listing-file-modified-sort="1709656367992" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="7" data-listing-word-count-sort="1298">
351351
<a href="./posts/llms-and-data-pt1/index.html" class="quarto-grid-link">
352352
<div class="quarto-grid-item card h-100 card-left">
353353
<p class="card-img-top"><img src="images/logo.png" style="height: 150px;" class="thumbnail-image card-img"/></p>
@@ -375,7 +375,7 @@ <h5 class="no-anchor card-title listing-title">
375375
</div>
376376
</a>
377377
</div>
378-
<div class="g-col-1" data-index="4" data-categories="LLMs and data" data-listing-date-sort="1697068800000" data-listing-file-modified-sort="1709656162211" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5" data-listing-word-count-sort="822">
378+
<div class="g-col-1" data-index="4" data-categories="LLMs and data" data-listing-date-sort="1697068800000" data-listing-file-modified-sort="1709656367988" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5" data-listing-word-count-sort="822">
379379
<a href="./posts/llms-and-data-pt0/index.html" class="quarto-grid-link">
380380
<div class="quarto-grid-item card h-100 card-left">
381381
<p class="card-img-top"><img src="images/logo.png" style="height: 150px;" class="thumbnail-image card-img"/></p>

search.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
"href": "tutorials/python.html#setup-the-bot",
261261
"title": "Tutorial: Python",
262262
"section": "Setup the bot",
263-
"text": "Setup the bot\nFirst, import relevant modules:\n\nimport ibis\n\nfrom ibis_birdbrain import Bot\n\nSet Ibis interactive mode:\n\nibis.options.interactive = True\n\n\nCreate an Ibis connection\nCreate an Ibis connection to your database:\n\n\n\n\n\n\nWarning\n\n\n\nWe’ll create a demo database for this tutorial.\n\n\n\ncon = ibis.connect(\"duckdb://penguins.ddb\")\ncon.create_table(\n \"penguins\", ibis.examples.penguins.fetch().to_pyarrow(), overwrite=True\n)\ncon = ibis.connect(\"duckdb://penguins.ddb\")\ncon.list_tables()\n\nINFO:pins.cache:cache file: /Users/cody/Library/Caches/pins-py/gcs_332a30997e141da0e08f15fbfae8b3c3ec90463922d117a96fa3b1bef85a2a4c/penguins/20230905T090411Z-9aae2/data.txt\nINFO:pins.cache:cache file: /Users/cody/Library/Caches/pins-py/gcs_332a30997e141da0e08f15fbfae8b3c3ec90463922d117a96fa3b1bef85a2a4c/penguins/20230905T090411Z-9aae2/penguins.csv.gz\n\n\n['penguins']\n\n\n\n\nCreate the bot\nYou’ll create the bot by passing in the connection:\n\n\n\n\n\n\nTip\n\n\n\nFor increased accuracy, you should also pass in a data_description containing information about the dataset. This could be fetched from the database itself, manually created, or otherwise obtained.\nYou should not include table names and schemas – this will be inferred automatically.\n\n\n\nbot = Bot(con=con, data_description=\"the Palmer Penguins dataset\")\nbot\n\nINFO:root:Bot birdbrain initialized...\n\n\n&lt;ibis_birdbrain.bot.Bot at 0x111bf95d0&gt;\n\n\n\n\nTest the bot\nYou can ask the bot questions:\n\nres = bot(\"\"\"give me the counts of penguins by species and island from highest\nto lowest\"\"\")\nres\n\nINFO:root:Bot birdbrain called with text: give me the counts of penguins by species and island from highest\nto lowest\nINFO:root:Selected flow: data\nINFO:root:Executing the data flow\nINFO:root:Text to SQL task\nINFO:httpx:HTTP Request: POST https://birdbrain-eh.openai.azure.com/openai/deployments/gpt-4-turbo/chat/completions?api-version=2023-12-01-preview \"HTTP/1.1 200 OK\"\nINFO:root:Executing the SQL task\n\n\n\n\n\n\n\n\n\nTo: user\nFrom: birdbrain\nSubject: give me the counts of pengu...\nSent at: 2024-03-05 11:23:48.370476\nMessage: a6dff0f1-8fa5-4fe6-a14d-7576736d88e3\nIbis Birdbrain has attached the results.\nAttachments:\nCodeAttachment\n **guid**: 3a358f68-357b-44a2-800e-4d96fb3b9a10\n **time**: 2024-03-05 11:23:48.368303\n **name**: None\n **desc**: None\n **language**: sql\n **code**:\nSELECT species, island, COUNT(*) AS count FROM penguins GROUP BY species, island ORDER BY count DESC\nTableAttachment\n **guid**: d1345277-18aa-46d7-ab71-f026d71cfb19\n **time**: 2024-03-05 11:23:48.370386\n **name**: None\n **desc**: \nibis.Schema {\n species string\n island string\n count int64\n}\n **table**:\n┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━┓\n┃ species ┃ island ┃ count ┃\n┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━┩\n│ string │ string │ int64 │\n├───────────┼───────────┼───────┤\n│ Gentoo │ Biscoe │ 124 │\n│ Chinstrap │ Dream │ 68 │\n│ Adelie │ Dream │ 56 │\n│ Adelie │ Torgersen │ 52 │\n│ Adelie │ Biscoe │ 44 │\n└───────────┴───────────┴───────┘\n\n\n\n\n\nGet attachments\nYou can get the table attachment back:\n\nt = res.attachments[-1].open()\nt\n\n┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━┓\n┃ species ┃ island ┃ count ┃\n┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━┩\n│ string │ string │ int64 │\n├───────────┼───────────┼───────┤\n│ Gentoo │ Biscoe │ 124 │\n│ Chinstrap │ Dream │ 68 │\n│ Adelie │ Dream │ 56 │\n│ Adelie │ Torgersen │ 52 │\n│ Adelie │ Biscoe │ 44 │\n└───────────┴───────────┴───────┘",
263+
"text": "Setup the bot\nFirst, import relevant modules:\n\nimport ibis\n\nfrom ibis_birdbrain import Bot\n\nSet Ibis interactive mode:\n\nibis.options.interactive = True\n\n\nCreate an Ibis connection\nCreate an Ibis connection to your database:\n\n\n\n\n\n\nWarning\n\n\n\nWe’ll create a demo database for this tutorial.\n\n\n\ncon = ibis.connect(\"duckdb://penguins.ddb\")\ncon.create_table(\n \"penguins\", ibis.examples.penguins.fetch().to_pyarrow(), overwrite=True\n)\ncon = ibis.connect(\"duckdb://penguins.ddb\")\ncon.list_tables()\n\nINFO:pins.cache:cache file: /Users/cody/Library/Caches/pins-py/gcs_332a30997e141da0e08f15fbfae8b3c3ec90463922d117a96fa3b1bef85a2a4c/penguins/20230905T090411Z-9aae2/data.txt\nINFO:pins.cache:cache file: /Users/cody/Library/Caches/pins-py/gcs_332a30997e141da0e08f15fbfae8b3c3ec90463922d117a96fa3b1bef85a2a4c/penguins/20230905T090411Z-9aae2/penguins.csv.gz\n\n\n['penguins']\n\n\n\n\nCreate the bot\nYou’ll create the bot by passing in the connection:\n\n\n\n\n\n\nTip\n\n\n\nFor increased accuracy, you should also pass in a data_description containing information about the dataset. This could be fetched from the database itself, manually created, or otherwise obtained.\nYou should not include table names and schemas – this will be inferred automatically.\n\n\n\nbot = Bot(con=con, data_description=\"the Palmer Penguins dataset\")\nbot\n\nINFO:root:Bot birdbrain initialized...\n\n\n&lt;ibis_birdbrain.bot.Bot at 0x282385090&gt;\n\n\n\n\nTest the bot\nYou can ask the bot questions:\n\nres = bot(\"\"\"give me the counts of penguins by species and island from highest\nto lowest\"\"\")\nres\n\nINFO:root:Bot birdbrain called with text: give me the counts of penguins by species and island from highest\nto lowest\nINFO:root:Selected flow: data\nINFO:root:Executing the data flow\nINFO:root:Text to SQL task\nINFO:httpx:HTTP Request: POST https://birdbrain-eh.openai.azure.com/openai/deployments/gpt-4-turbo/chat/completions?api-version=2023-12-01-preview \"HTTP/1.1 200 OK\"\nINFO:root:Executing the SQL task\n\n\n\n\n\n\n\n\n\nTo: user\nFrom: birdbrain\nSubject: give me the counts of pengu...\nSent at: 2024-03-05 11:31:58.342810\nMessage: 0da2fb4c-30f7-4c2d-a646-ed500e3f99a6\nIbis Birdbrain has attached the results.\nAttachments:\nCodeAttachment\n **guid**: 14125164-2a86-479b-ba97-9847e894d7a7\n **time**: 2024-03-05 11:31:58.340826\n **name**: None\n **desc**: None\n **language**: sql\n **code**:\nSELECT species, island, COUNT(*) AS count \nFROM penguins \nGROUP BY species, island \nORDER BY count DESC\nTableAttachment\n **guid**: 537a8847-568d-45c8-b306-4f5363ad5ca1\n **time**: 2024-03-05 11:31:58.342725\n **name**: None\n **desc**: \nibis.Schema {\n species string\n island string\n count int64\n}\n **table**:\n┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━┓\n┃ species ┃ island ┃ count ┃\n┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━┩\n│ string │ string │ int64 │\n├───────────┼───────────┼───────┤\n│ Gentoo │ Biscoe │ 124 │\n│ Chinstrap │ Dream │ 68 │\n│ Adelie │ Dream │ 56 │\n│ Adelie │ Torgersen │ 52 │\n│ Adelie │ Biscoe │ 44 │\n└───────────┴───────────┴───────┘\n\n\n\n\n\nGet attachments\nYou can get the table from the attachment:\n\nt = res.attachments[-1].open()\nt\n\n┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━┓\n┃ species ┃ island ┃ count ┃\n┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━┩\n│ string │ string │ int64 │\n├───────────┼───────────┼───────┤\n│ Gentoo │ Biscoe │ 124 │\n│ Chinstrap │ Dream │ 68 │\n│ Adelie │ Dream │ 56 │\n│ Adelie │ Torgersen │ 52 │\n│ Adelie │ Biscoe │ 44 │\n└───────────┴───────────┴───────┘\n\n\n\nAnd do whatever you want with it:\n\nt.order_by(ibis._[\"count\"].asc())\n\n┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━┓\n┃ species ┃ island ┃ count ┃\n┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━┩\n│ string │ string │ int64 │\n├───────────┼───────────┼───────┤\n│ Adelie │ Biscoe │ 44 │\n│ Adelie │ Torgersen │ 52 │\n│ Adelie │ Dream │ 56 │\n│ Chinstrap │ Dream │ 68 │\n│ Gentoo │ Biscoe │ 124 │\n└───────────┴───────────┴───────┘",
264264
"crumbs": [
265265
"Tutorial: Python"
266266
]

sitemap.xml

+24-24
Original file line numberDiff line numberDiff line change
@@ -2,98 +2,98 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://ibis-project.github.io/install.html</loc>
5-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
5+
<lastmod>2024-03-05T16:32:47.988Z</lastmod>
66
</url>
77
<url>
88
<loc>https://ibis-project.github.io/posts/llms-and-data-pt4/index.html</loc>
9-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
9+
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://ibis-project.github.io/posts/llms-and-data-pt1/index.html</loc>
13-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
13+
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://ibis-project.github.io/posts/llms-and-data-pt3/index.html</loc>
17-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
17+
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://ibis-project.github.io/demo.html</loc>
21-
<lastmod>2024-03-05T16:29:22.199Z</lastmod>
21+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://ibis-project.github.io/contribute/contributing.html</loc>
25-
<lastmod>2024-03-05T16:29:22.199Z</lastmod>
25+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://ibis-project.github.io/tutorials/python.html</loc>
29-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
29+
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
3030
</url>
3131
<url>
3232
<loc>https://ibis-project.github.io/concepts/archive/user-interfaces.html</loc>
33-
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
33+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
3434
</url>
3535
<url>
3636
<loc>https://ibis-project.github.io/concepts/archive/platforms.html</loc>
37-
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
37+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
3838
</url>
3939
<url>
4040
<loc>https://ibis-project.github.io/concepts/attachments.html</loc>
41-
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
41+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
4242
</url>
4343
<url>
4444
<loc>https://ibis-project.github.io/concepts/messages.html</loc>
45-
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
45+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
4646
</url>
4747
<url>
4848
<loc>https://ibis-project.github.io/concepts/flows.html</loc>
49-
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
49+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
5050
</url>
5151
<url>
5252
<loc>https://ibis-project.github.io/why.html</loc>
53-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
53+
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
5454
</url>
5555
<url>
5656
<loc>https://ibis-project.github.io/concepts/tasks.html</loc>
57-
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
57+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
5858
</url>
5959
<url>
6060
<loc>https://ibis-project.github.io/concepts/bots.html</loc>
61-
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
61+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
6262
</url>
6363
<url>
6464
<loc>https://ibis-project.github.io/concepts/archive/ops.html</loc>
65-
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
65+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
6666
</url>
6767
<url>
6868
<loc>https://ibis-project.github.io/concepts/archive/llms.html</loc>
69-
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
69+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
7070
</url>
7171
<url>
7272
<loc>https://ibis-project.github.io/index.html</loc>
73-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
73+
<lastmod>2024-03-05T16:32:47.988Z</lastmod>
7474
</url>
7575
<url>
7676
<loc>https://ibis-project.github.io/tutorials/cli.html</loc>
77-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
77+
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
7878
</url>
7979
<url>
8080
<loc>https://ibis-project.github.io/how-to/input-output/basics.html</loc>
81-
<lastmod>2024-03-05T16:29:22.199Z</lastmod>
81+
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
8282
</url>
8383
<url>
8484
<loc>https://ibis-project.github.io/posts.html</loc>
85-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
85+
<lastmod>2024-03-05T16:32:47.988Z</lastmod>
8686
</url>
8787
<url>
8888
<loc>https://ibis-project.github.io/posts/llms-and-data-pt2/index.html</loc>
89-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
89+
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
9090
</url>
9191
<url>
9292
<loc>https://ibis-project.github.io/posts/llms-and-data-pt0/index.html</loc>
93-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
93+
<lastmod>2024-03-05T16:32:47.988Z</lastmod>
9494
</url>
9595
<url>
9696
<loc>https://ibis-project.github.io/release_notes.html</loc>
97-
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
97+
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
9898
</url>
9999
</urlset>

0 commit comments

Comments
 (0)