Skip to content

Commit

Permalink
deploy: acdcff4
Browse files Browse the repository at this point in the history
  • Loading branch information
lostmygithubaccount committed Mar 5, 2024
1 parent bc6cff2 commit dc8a4ac
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 45 deletions.
10 changes: 5 additions & 5 deletions posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ <h1 class="title">Posts</h1>
</div>
</div>
<div class="list grid quarto-listing-cols-3">
<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">
<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">
<a href="./posts/llms-and-data-pt4/index.html" class="quarto-grid-link">
<div class="quarto-grid-item card h-100 card-left">
<p class="card-img-top"><img src="posts/llms-and-data-pt4/images/figure1.png" style="height: 150px;" class="thumbnail-image card-img"/></p>
Expand Down Expand Up @@ -291,7 +291,7 @@ <h5 class="no-anchor card-title listing-title">
</div>
</a>
</div>
<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">
<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">
<a href="./posts/llms-and-data-pt3/index.html" class="quarto-grid-link">
<div class="quarto-grid-item card h-100 card-left">
<p class="card-img-top"><img src="images/logo.png" style="height: 150px;" class="thumbnail-image card-img"/></p>
Expand Down Expand Up @@ -319,7 +319,7 @@ <h5 class="no-anchor card-title listing-title">
</div>
</a>
</div>
<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">
<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">
<a href="./posts/llms-and-data-pt2/index.html" class="quarto-grid-link">
<div class="quarto-grid-item card h-100 card-left">
<p class="card-img-top"><img src="images/logo.png" style="height: 150px;" class="thumbnail-image card-img"/></p>
Expand Down Expand Up @@ -347,7 +347,7 @@ <h5 class="no-anchor card-title listing-title">
</div>
</a>
</div>
<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">
<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">
<a href="./posts/llms-and-data-pt1/index.html" class="quarto-grid-link">
<div class="quarto-grid-item card h-100 card-left">
<p class="card-img-top"><img src="images/logo.png" style="height: 150px;" class="thumbnail-image card-img"/></p>
Expand Down Expand Up @@ -375,7 +375,7 @@ <h5 class="no-anchor card-title listing-title">
</div>
</a>
</div>
<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">
<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">
<a href="./posts/llms-and-data-pt0/index.html" class="quarto-grid-link">
<div class="quarto-grid-item card h-100 card-left">
<p class="card-img-top"><img src="images/logo.png" style="height: 150px;" class="thumbnail-image card-img"/></p>
Expand Down
2 changes: 1 addition & 1 deletion search.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
"href": "tutorials/python.html#setup-the-bot",
"title": "Tutorial: Python",
"section": "Setup the bot",
"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└───────────┴───────────┴───────┘",
"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└───────────┴───────────┴───────┘",
"crumbs": [
"Tutorial: Python"
]
Expand Down
48 changes: 24 additions & 24 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,98 +2,98 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://ibis-project.github.io/install.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.988Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/posts/llms-and-data-pt4/index.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/posts/llms-and-data-pt1/index.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/posts/llms-and-data-pt3/index.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/demo.html</loc>
<lastmod>2024-03-05T16:29:22.199Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/contribute/contributing.html</loc>
<lastmod>2024-03-05T16:29:22.199Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/tutorials/python.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/concepts/archive/user-interfaces.html</loc>
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/concepts/archive/platforms.html</loc>
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/concepts/attachments.html</loc>
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/concepts/messages.html</loc>
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/concepts/flows.html</loc>
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/why.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/concepts/tasks.html</loc>
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/concepts/bots.html</loc>
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/concepts/archive/ops.html</loc>
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/concepts/archive/llms.html</loc>
<lastmod>2024-03-05T16:29:22.195Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/index.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.988Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/tutorials/cli.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/how-to/input-output/basics.html</loc>
<lastmod>2024-03-05T16:29:22.199Z</lastmod>
<lastmod>2024-03-05T16:32:47.976Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/posts.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.988Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/posts/llms-and-data-pt2/index.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/posts/llms-and-data-pt0/index.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.988Z</lastmod>
</url>
<url>
<loc>https://ibis-project.github.io/release_notes.html</loc>
<lastmod>2024-03-05T16:29:22.211Z</lastmod>
<lastmod>2024-03-05T16:32:47.992Z</lastmod>
</url>
</urlset>
Loading

0 comments on commit dc8a4ac

Please sign in to comment.