From ed421af1a2cf5720815891cd19c5df9ddceb5e90 Mon Sep 17 00:00:00 2001 From: Chetan Thote <49151585+chetanthote@users.noreply.github.com> Date: Tue, 5 Nov 2024 20:10:49 +0530 Subject: [PATCH] Notebooks modified with comments (#120) * Notebooks modified with comments * Notebooks modified with comments * Notebooks modified with comments --------- Co-authored-by: chetan thote --- notebooks/basic-query-examples/notebook.ipynb | 234 ++---------------- .../notebook.ipynb | 7 +- notebooks/hybrid-search/notebook.ipynb | 22 +- .../image-matching-with-sql/notebook.ipynb | 16 +- .../notebook.ipynb | 4 +- notebooks/resume-evaluator/notebook.ipynb | 16 +- .../notebook.ipynb | 24 +- .../notebook.ipynb | 32 ++- .../notebook.ipynb | 3 +- 9 files changed, 129 insertions(+), 229 deletions(-) diff --git a/notebooks/basic-query-examples/notebook.ipynb b/notebooks/basic-query-examples/notebook.ipynb index a5d5abe3..977e2c99 100644 --- a/notebooks/basic-query-examples/notebook.ipynb +++ b/notebooks/basic-query-examples/notebook.ipynb @@ -76,17 +76,7 @@ "execution_count": 1, "id": "384f780a-b4ff-4ee8-8be3-40185247a793", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n
", - "text/plain": "++\n||\n++\n++" - }, - "execution_count": 2, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "CREATE DATABASE memsql_example;\n", @@ -108,26 +98,16 @@ "execution_count": 2, "id": "0844b00f-0cd1-4e05-b616-d565589cacfd", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n
", - "text/plain": "++\n||\n++\n++" - }, - "execution_count": 3, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", - "CREATE TABLE departments (\n", + "CREATE TABLE departments /* Creating table for sample data. */(\n", " id int,\n", " name varchar(255),\n", " PRIMARY KEY (id)\n", ");\n", "\n", - "CREATE TABLE employees (\n", + "CREATE TABLE employees /* Creating table for sample data. */(\n", " id int,\n", " deptId int,\n", " managerId int,\n", @@ -137,7 +117,7 @@ " PRIMARY KEY (id)\n", ");\n", "\n", - "CREATE TABLE salaries (\n", + "CREATE TABLE salaries /* Creating table for sample data. */(\n", " employeeId int,\n", " salary int,\n", " PRIMARY KEY (employeeId)\n", @@ -159,17 +139,7 @@ "execution_count": 3, "id": "ad1da4d8-abde-4e06-ad3e-8f1620577cab", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n
", - "text/plain": "++\n||\n++\n++" - }, - "execution_count": 4, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "INSERT INTO departments (id, name) VALUES\n", @@ -216,17 +186,7 @@ "execution_count": 4, "id": "be4a19b6-0549-47e0-b573-db2b2420448c", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n
COUNT(*)
10
", - "text/plain": "+----------+\n| COUNT(*) |\n+----------+\n| 10 |\n+----------+" - }, - "execution_count": 5, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT COUNT(*) from employees;" @@ -247,17 +207,7 @@ "execution_count": 5, "id": "f36b3d0c-8fe2-41f3-ab21-97ea48218d9c", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
idname
1Karly Steele
2Rhona Nichols
3Hedda Kent
4Orli Strong
5Leonard Haynes
6Colette Payne
7Cooper Hatfield
8Timothy Battle
9Doris Munoz
10Alea Wiggins
", - "text/plain": "+----+-----------------+\n| id | name |\n+----+-----------------+\n| 1 | Karly Steele |\n| 2 | Rhona Nichols |\n| 3 | Hedda Kent |\n| 4 | Orli Strong |\n| 5 | Leonard Haynes |\n| 6 | Colette Payne |\n| 7 | Cooper Hatfield |\n| 8 | Timothy Battle |\n| 9 | Doris Munoz |\n| 10 | Alea Wiggins |\n+----+-----------------+" - }, - "execution_count": 6, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT id, name FROM employees ORDER BY id;" @@ -278,17 +228,7 @@ "execution_count": 6, "id": "4e4f50d0-5791-458f-80ed-fc82e8c0c4f9", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
idname
2Rhona Nichols
3Hedda Kent
10Alea Wiggins
", - "text/plain": "+----+---------------+\n| id | name |\n+----+---------------+\n| 2 | Rhona Nichols |\n| 3 | Hedda Kent |\n| 10 | Alea Wiggins |\n+----+---------------+" - }, - "execution_count": 7, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT id, name FROM employees WHERE state = 'TX' ORDER BY id;" @@ -308,17 +248,7 @@ "execution_count": 7, "id": "43b80580-709e-45b8-9d24-c42949a361a5", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
idname
1Karly Steele
4Orli Strong
7Cooper Hatfield
8Timothy Battle
9Doris Munoz
", - "text/plain": "+----+-----------------+\n| id | name |\n+----+-----------------+\n| 1 | Karly Steele |\n| 4 | Orli Strong |\n| 7 | Cooper Hatfield |\n| 8 | Timothy Battle |\n| 9 | Doris Munoz |\n+----+-----------------+" - }, - "execution_count": 8, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT id, name FROM employees WHERE state = 'NY' ORDER BY id;" @@ -338,17 +268,7 @@ "execution_count": 8, "id": "b9b0119d-fd9f-49c1-bec2-4baf2d6c30c0", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
idnamehireDate
4Orli Strong2001-07-01
8Timothy Battle2001-01-21
", - "text/plain": "+----+----------------+------------+\n| id | name | hireDate |\n+----+----------------+------------+\n| 4 | Orli Strong | 2001-07-01 |\n| 8 | Timothy Battle | 2001-01-21 |\n+----+----------------+------------+" - }, - "execution_count": 9, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT id, name, hireDate\n", @@ -371,17 +291,7 @@ "execution_count": 9, "id": "cf5fb4c7-5ac1-4c5e-92b1-b9563b17b0f7", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
namedepartment
Alea WigginsCustomer Service
Colette PayneMarketing
Cooper HatfieldSales
Doris MunozSales
Hedda KentCustomer Service
Karly SteeleFinance
Leonard HaynesMarketing
Orli StrongFinance
Rhona NicholsMarketing
Timothy BattleFinance
", - "text/plain": "+-----------------+------------------+\n| name | department |\n+-----------------+------------------+\n| Alea Wiggins | Customer Service |\n| Colette Payne | Marketing |\n| Cooper Hatfield | Sales |\n| Doris Munoz | Sales |\n| Hedda Kent | Customer Service |\n| Karly Steele | Finance |\n| Leonard Haynes | Marketing |\n| Orli Strong | Finance |\n| Rhona Nichols | Marketing |\n| Timothy Battle | Finance |\n+-----------------+------------------+" - }, - "execution_count": 10, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT e.name, d.name department FROM\n", @@ -405,17 +315,7 @@ "execution_count": 10, "id": "0929107e-3ea0-4a19-acf4-7c828f1745db", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
stateCOUNT(*)
MS2
NY5
TX3
", - "text/plain": "+-------+----------+\n| state | COUNT(*) |\n+-------+----------+\n| MS | 2 |\n| NY | 5 |\n| TX | 3 |\n+-------+----------+" - }, - "execution_count": 11, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT state, COUNT(*)\n", @@ -439,17 +339,7 @@ "execution_count": 11, "id": "cc289e4b-ebb2-43eb-9a26-dca6c4ce9da7", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n
MAX(salary)
919124
", - "text/plain": "+-------------+\n| MAX(salary) |\n+-------------+\n| 919124 |\n+-------------+" - }, - "execution_count": 12, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT MAX(salary) FROM salaries;" @@ -470,17 +360,7 @@ "execution_count": 12, "id": "9b4d4235-ebd1-412a-8eeb-4c58c7671dff", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n
namesalary
Leonard Haynes919124
", - "text/plain": "+----------------+--------+\n| name | salary |\n+----------------+--------+\n| Leonard Haynes | 919124 |\n+----------------+--------+" - }, - "execution_count": 13, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT e.name, s.salary\n", @@ -504,17 +384,7 @@ "execution_count": 13, "id": "dcc6c8d8-210b-4538-9767-ccd4b127fd8c", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
stateAVG(salary)
MS510331.0000
NY617320.2000
TX432229.0000
", - "text/plain": "+-------+-------------+\n| state | AVG(salary) |\n+-------+-------------+\n| MS | 510331.0000 |\n| NY | 617320.2000 |\n| TX | 432229.0000 |\n+-------+-------------+" - }, - "execution_count": 14, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT e.state, AVG(salary)\n", @@ -539,17 +409,7 @@ "execution_count": 14, "id": "90303d05-c06a-4f40-89bf-20760b3fd810", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
name
Karly Steele
Leonard Haynes
Orli Strong
Rhona Nichols
", - "text/plain": "+----------------+\n| name |\n+----------------+\n| Karly Steele |\n| Leonard Haynes |\n| Orli Strong |\n| Rhona Nichols |\n+----------------+" - }, - "execution_count": 15, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT name\n", @@ -573,17 +433,7 @@ "execution_count": 15, "id": "244b7eb1-73f0-4a0b-83ae-63d7fa77220d", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
name
Alea Wiggins
Colette Payne
Cooper Hatfield
Doris Munoz
Hedda Kent
Timothy Battle
", - "text/plain": "+-----------------+\n| name |\n+-----------------+\n| Alea Wiggins |\n| Colette Payne |\n| Cooper Hatfield |\n| Doris Munoz |\n| Hedda Kent |\n| Timothy Battle |\n+-----------------+" - }, - "execution_count": 16, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT name\n", @@ -607,17 +457,7 @@ "execution_count": 16, "id": "5f726523-0031-44d3-b2f2-9fca93df7cf7", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
namecount
Karly Steele4
Rhona Nichols2
Orli Strong2
Leonard Haynes1
", - "text/plain": "+----------------+-------+\n| name | count |\n+----------------+-------+\n| Karly Steele | 4 |\n| Rhona Nichols | 2 |\n| Orli Strong | 2 |\n| Leonard Haynes | 1 |\n+----------------+-------+" - }, - "execution_count": 17, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT m.name, COUNT(*) count\n", @@ -641,17 +481,7 @@ "execution_count": 17, "id": "66475057-43dc-4c4b-aefb-7254b64d1bf6", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
namecount
Karly Steele4
Rhona Nichols2
Orli Strong2
Leonard Haynes1
Alea Wiggins0
Timothy Battle0
Cooper Hatfield0
Doris Munoz0
Hedda Kent0
Colette Payne0
", - "text/plain": "+-----------------+-------+\n| name | count |\n+-----------------+-------+\n| Karly Steele | 4 |\n| Rhona Nichols | 2 |\n| Orli Strong | 2 |\n| Leonard Haynes | 1 |\n| Alea Wiggins | 0 |\n| Timothy Battle | 0 |\n| Cooper Hatfield | 0 |\n| Doris Munoz | 0 |\n| Hedda Kent | 0 |\n| Colette Payne | 0 |\n+-----------------+-------+" - }, - "execution_count": 18, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT m.name, COUNT(e.id) count\n", @@ -675,17 +505,7 @@ "execution_count": 18, "id": "084b7c27-78f1-4132-b05c-63d505c42f91", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
employee_namemanager_name
Karly SteeleNone
Rhona NicholsKarly Steele
Orli StrongKarly Steele
Leonard HaynesKarly Steele
Doris MunozKarly Steele
Colette PayneLeonard Haynes
Timothy BattleOrli Strong
Cooper HatfieldOrli Strong
Alea WigginsRhona Nichols
Hedda KentRhona Nichols
", - "text/plain": "+-----------------+----------------+\n| employee_name | manager_name |\n+-----------------+----------------+\n| Karly Steele | None |\n| Rhona Nichols | Karly Steele |\n| Orli Strong | Karly Steele |\n| Leonard Haynes | Karly Steele |\n| Doris Munoz | Karly Steele |\n| Colette Payne | Leonard Haynes |\n| Timothy Battle | Orli Strong |\n| Cooper Hatfield | Orli Strong |\n| Alea Wiggins | Rhona Nichols |\n| Hedda Kent | Rhona Nichols |\n+-----------------+----------------+" - }, - "execution_count": 19, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT e.name employee_name, m.name manager_name\n", @@ -708,17 +528,7 @@ "execution_count": 19, "id": "fefb6de0-9796-480a-b743-13682a5774e1", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
namesum(salary)
Karly Steele2316512
Orli Strong1255513
Rhona Nichols845168
Leonard Haynes101538
", - "text/plain": "+----------------+-------------+\n| name | sum(salary) |\n+----------------+-------------+\n| Karly Steele | 2316512 |\n| Orli Strong | 1255513 |\n| Rhona Nichols | 845168 |\n| Leonard Haynes | 101538 |\n+----------------+-------------+" - }, - "execution_count": 20, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sql\n", "SELECT m.name, sum(salary)\n", diff --git a/notebooks/getting-started-with-singlestore/notebook.ipynb b/notebooks/getting-started-with-singlestore/notebook.ipynb index 8a50e834..351dd061 100644 --- a/notebooks/getting-started-with-singlestore/notebook.ipynb +++ b/notebooks/getting-started-with-singlestore/notebook.ipynb @@ -104,13 +104,13 @@ "DROP TABLE IF EXISTS customers;\n", "DROP TABLE IF EXISTS orders;\n", "\n", - "CREATE TABLE IF NOT EXISTS customers (\n", + "CREATE TABLE IF NOT EXISTS customers /* Creating table for sample data. */(\n", " customer_id INT PRIMARY KEY,\n", " customer_name VARCHAR(50),\n", " country VARCHAR(50)\n", ");\n", "\n", - "CREATE TABLE IF NOT EXISTS orders (\n", + "CREATE TABLE IF NOT EXISTS orders /* Creating table for sample data. */(\n", " order_id INT PRIMARY KEY,\n", " customer_id INT,\n", " amount DECIMAL(10, 2),\n", @@ -878,7 +878,7 @@ "%%sql\n", "DROP TABLE IF EXISTS neighborhoods;\n", "\n", - "CREATE TABLE IF NOT EXISTS neighborhoods (\n", + "CREATE TABLE IF NOT EXISTS neighborhoods /* Creating table for sample data. */(\n", " id INT UNSIGNED NOT NULL,\n", " name VARCHAR(64) NOT NULL,\n", " population INT UNSIGNED NOT NULL,\n", @@ -1360,6 +1360,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "d0ba2e40-19a1-4016-829d-e310417b9c37", "metadata": {}, diff --git a/notebooks/hybrid-search/notebook.ipynb b/notebooks/hybrid-search/notebook.ipynb index 04997b35..11682439 100644 --- a/notebooks/hybrid-search/notebook.ipynb +++ b/notebooks/hybrid-search/notebook.ipynb @@ -31,6 +31,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "d9f9e629-6eb9-4ca5-bcf2-1b8672b86725", "metadata": {}, @@ -41,6 +42,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "532e8d3f-007d-48a4-8d36-44b561dd1109", "metadata": {}, @@ -88,6 +90,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "0aa95a80-5683-4dc3-9e52-c3e890ab87af", "metadata": {}, @@ -137,6 +140,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "f68e9407", "metadata": {}, @@ -151,6 +155,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "0b6c6560-bc60-43ba-93a4-1b4aee933d5b", "metadata": {}, @@ -159,6 +164,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "e1dd6296-54b0-4f8d-886a-13cacfc28163", "metadata": {}, @@ -180,6 +186,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "fa49cc11", "metadata": {}, @@ -202,7 +209,7 @@ "source": [ "%%sql\n", "DROP TABLE IF EXISTS news_articles;\n", - "CREATE TABLE IF NOT EXISTS news_articles (\n", + "CREATE TABLE IF NOT EXISTS news_articles /* Creating table for sample data. */(\n", " title TEXT,\n", " description TEXT,\n", " genre TEXT,\n", @@ -212,6 +219,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "8bd97023-3d02-44d4-8bd3-59875cb22b6c", "metadata": {}, @@ -234,6 +242,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "d74c544f-feea-4d48-84be-c62bf5cb4ea3", "metadata": {}, @@ -253,6 +262,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "b37f2eac-c504-452b-90c2-0bb07e918b16", "metadata": {}, @@ -271,6 +281,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "46b1628c-0ffc-4a84-ba8b-43e8df081b01", "metadata": {}, @@ -312,6 +323,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "a2f3d567-eaf4-487a-a1f9-2eb7e1071991", "metadata": {}, @@ -320,6 +332,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "7ad3b8f6-d3a8-4954-a737-f11c785ce9ce", "metadata": {}, @@ -353,6 +366,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "6504f561-1ab1-4dbf-a523-0aef23b66e4b", "metadata": {}, @@ -388,6 +402,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "2c8ff862-ea5b-4960-be5b-bcd530d6e918", "metadata": {}, @@ -396,6 +411,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "d0b2cff3-76f8-4a35-a596-4f001a9b4c8c", "metadata": {}, @@ -433,6 +449,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "b49c3ec8-ec70-48b8-bc2b-e387d7de0efc", "metadata": {}, @@ -441,6 +458,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "0745143b", "metadata": {}, @@ -498,7 +516,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.6" } }, "nbformat": 4, diff --git a/notebooks/image-matching-with-sql/notebook.ipynb b/notebooks/image-matching-with-sql/notebook.ipynb index 7d703668..f4819955 100644 --- a/notebooks/image-matching-with-sql/notebook.ipynb +++ b/notebooks/image-matching-with-sql/notebook.ipynb @@ -31,6 +31,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "7b2bd61f-bdc4-4aef-9ab3-feeb8a0138d3", "metadata": {}, @@ -43,6 +44,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "b21735c2-31ad-4e38-9a5f-afae2c46de38", "metadata": {}, @@ -53,6 +55,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "facd7889-eaed-44f8-ba7c-ac852c26e9f3", "metadata": {}, @@ -89,6 +92,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "899100f0-bac6-4e56-a1e3-eaf5ba32d345", "metadata": {}, @@ -104,6 +108,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "278053e8-7457-4655-a6fe-5c95ecb361de", "metadata": {}, @@ -151,6 +156,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "3bb47d4f-d54d-4fcc-835e-6a5066fa84bc", "metadata": {}, @@ -169,7 +175,7 @@ "outputs": [], "source": [ "%%sql\n", - "CREATE TABLE people (\n", + "CREATE TABLE people /* Creating table for sample data. */(\n", " filename VARCHAR(255),\n", " vector BLOB,\n", " SHARD(filename)\n", @@ -177,6 +183,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "41a990db-9e11-48e3-8011-8bd9770a27a2", "metadata": {}, @@ -224,6 +231,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "168be056-17da-4f94-8252-3e5d79459a8b", "metadata": {}, @@ -246,6 +254,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "1d0606a8-6503-4522-8a85-6366263e4b5e", "metadata": {}, @@ -338,6 +347,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "cea04465-6a69-42f1-8249-4c49488506f6", "metadata": {}, @@ -515,6 +525,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "f3f3c685-0335-46e2-9a8d-e46ec296f074", "metadata": {}, @@ -523,6 +534,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "9c3c7c54", "metadata": {}, @@ -574,7 +586,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.6" } }, "nbformat": 4, diff --git a/notebooks/load-s3-files-into-shared-tier/notebook.ipynb b/notebooks/load-s3-files-into-shared-tier/notebook.ipynb index 79db5cfe..f9c5f8bb 100644 --- a/notebooks/load-s3-files-into-shared-tier/notebook.ipynb +++ b/notebooks/load-s3-files-into-shared-tier/notebook.ipynb @@ -85,7 +85,7 @@ "source": [ "%%sql\n", "\n", - "CREATE TABLE stocks (\n", + "CREATE TABLE stocks /* Creating table for sample data. */(\n", "\t`date` date NULL,\n", "\t`open` double NULL,\n", "\t`high` double NULL,\n", @@ -131,7 +131,7 @@ "outputs": [], "source": [ "%%sql\n", - "CREATE OR REPLACE PIPELINE stocks_pipeline\n", + "CREATE OR REPLACE PIPELINE stocks_pipeline /* Creating pipeline for sample data. */\n", " AS LOAD DATA S3 'helios-self-poc-stockticker/all_stocks_5yr.csv'\n", " CONFIG '{\"region\": \"us-east-1\"}'\n", " CREDENTIALS '{\"aws_access_key_id\": \"\",\n", diff --git a/notebooks/resume-evaluator/notebook.ipynb b/notebooks/resume-evaluator/notebook.ipynb index c3522f4e..7c06d1bc 100644 --- a/notebooks/resume-evaluator/notebook.ipynb +++ b/notebooks/resume-evaluator/notebook.ipynb @@ -31,6 +31,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "d96c8713-7f80-4f37-9f6d-ca73012205ec", "metadata": {}, @@ -45,6 +46,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "3896f5d3-5f34-462c-a10e-da1d97ba904e", "metadata": {}, @@ -78,6 +80,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "a065c93b-6086-4cf9-9f14-249cb8b23ed9", "metadata": {}, @@ -101,7 +104,7 @@ "source": [ "%%sql\n", "\n", - "CREATE TABLE IF NOT EXISTS resumes_profile_data(\n", + "CREATE TABLE IF NOT EXISTS resumes_profile_data /* Creating table for sample data. */(\n", " names text,\n", " email text,\n", " phone_no text,\n", @@ -114,6 +117,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "0a944957-8ddb-4838-af3a-22a56e8f4ff9", "metadata": {}, @@ -167,6 +171,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "60fb5de9-12a3-42b4-b9c9-738061600dc6", "metadata": {}, @@ -191,6 +196,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "ad6c68a5-23a0-4926-a6bc-1ac44731b73b", "metadata": {}, @@ -254,6 +260,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "8cfe7778-a8d4-48d9-88a8-45a4233e6581", "metadata": {}, @@ -343,6 +350,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "ec23888e-bf29-437b-a87f-794af8654294", "metadata": {}, @@ -396,6 +404,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "8abcb853-e58f-4ff8-ac95-f13d0d587557", "metadata": {}, @@ -448,6 +457,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "c884ea95-f50f-4ec3-9cb0-88baaf07f2fa", "metadata": {}, @@ -553,6 +563,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "e5a56e51-8bbe-4dd3-9233-6a1cccc8465d", "metadata": {}, @@ -561,6 +572,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "b697cc4c", "metadata": {}, @@ -618,7 +630,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.6" } }, "nbformat": 4, diff --git a/notebooks/semantic-search-with-openai-qa/notebook.ipynb b/notebooks/semantic-search-with-openai-qa/notebook.ipynb index b40c8bf0..5b11fe65 100644 --- a/notebooks/semantic-search-with-openai-qa/notebook.ipynb +++ b/notebooks/semantic-search-with-openai-qa/notebook.ipynb @@ -31,6 +31,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "f801cd94-180c-4dea-b85c-67659aad0ea6", "metadata": {}, @@ -40,6 +41,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "df04d713-f330-4335-9837-3ab79eb552d6", "metadata": {}, @@ -60,6 +62,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "62bd45fa-daac-4d71-ab76-be014ddd3a32", "metadata": {}, @@ -81,6 +84,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "c244aa25-f548-47b2-8942-991552dc0ca1", "metadata": {}, @@ -104,6 +108,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "0663c6f2-7741-4966-aea8-d5629e4a1cd4", "metadata": {}, @@ -130,6 +135,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "d287b813-2885-4b22-a431-03c6b4eab058", "metadata": {}, @@ -138,6 +144,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "682326b6-a475-4d79-828d-951780a6fb96", "metadata": {}, @@ -170,6 +177,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "5f7aee40-4774-4ef1-b700-a83f9fed4fbb", "metadata": {}, @@ -178,6 +186,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "05fcb9a8-2290-4507-aad1-a3002cab0ba6", "metadata": {}, @@ -203,6 +212,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "1faf22b7-5b99-4a9b-a88a-24acb16d133e", "metadata": {}, @@ -237,6 +247,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "cb523f8c-78b2-4a75-be15-52d29fac0fff", "metadata": {}, @@ -245,6 +256,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "117daa30", "metadata": {}, @@ -259,6 +271,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "ca811e5f-6dcd-471b-a4de-03eab42acf4f", "metadata": {}, @@ -280,6 +293,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "393e0d4a-8020-447e-b0ae-aa4199b1a016", "metadata": {}, @@ -302,7 +316,7 @@ "outputs": [], "source": [ "%%sql\n", - "CREATE TABLE IF NOT EXISTS winter_olympics_2022 (\n", + "CREATE TABLE IF NOT EXISTS winter_olympics_2022 /* Creating table for sample data. */(\n", " id INT PRIMARY KEY,\n", " text TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,\n", " embedding BLOB\n", @@ -310,6 +324,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "6b7ab530-4f55-482f-8e4c-475df06fe9b3", "metadata": {}, @@ -318,6 +333,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "51be94b1-9901-499c-a364-c85782239e2a", "metadata": {}, @@ -338,6 +354,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "2ce8c4c5-f389-4d0d-b434-6cd628343688", "metadata": {}, @@ -356,6 +373,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "c4d4602c-bfec-4819-904b-4d376b920e44", "metadata": {}, @@ -510,6 +528,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "0935c8cb-a397-4892-b0ef-5b5ddee2b82a", "metadata": {}, @@ -518,6 +537,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "1202b364", "metadata": {}, @@ -569,7 +589,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.6" } }, "nbformat": 4, diff --git a/notebooks/semantic-visualization-and-vector-datatype/notebook.ipynb b/notebooks/semantic-visualization-and-vector-datatype/notebook.ipynb index 8326ada5..34aa1238 100644 --- a/notebooks/semantic-visualization-and-vector-datatype/notebook.ipynb +++ b/notebooks/semantic-visualization-and-vector-datatype/notebook.ipynb @@ -31,6 +31,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "db3fc39a-3817-433e-a4cf-e65d3253dd31", "metadata": {}, @@ -43,6 +44,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "3876c8c3-7313-46d5-822d-2ec5785376c9", "metadata": {}, @@ -55,6 +57,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "8bf18203-feb5-45f3-b41f-289236c3704c", "metadata": {}, @@ -82,6 +85,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "ca75637e-ae94-4f37-bc94-8d84f2560790", "metadata": {}, @@ -96,6 +100,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "3174a995-aa93-45da-833f-29cffa054945", "metadata": {}, @@ -111,7 +116,7 @@ "outputs": [], "source": [ "%%sql\n", - "CREATE TABLE words(word varchar(25));\n", + "CREATE TABLE /* Creating table for sample data. */ words(word varchar(25));\n", "\n", "INSERT INTO words VALUES (\"red\"), (\"potatoes\"), (\"soda\"), (\"cheese\"),\n", " (\"water\"), (\"blue\"), (\"crispy\"), (\"hamburger\"),\n", @@ -138,6 +143,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "146d4e8d-ae81-4f08-b25e-63b55c8c6439", "metadata": {}, @@ -159,6 +165,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "73064337-681e-447d-8257-975012a6149b", "metadata": {}, @@ -189,6 +196,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "2170f85e-3057-4e99-b026-1cda3f54203e", "metadata": {}, @@ -197,6 +205,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "50cddc8b-f5c2-4ec9-8e1f-6f94b40568df", "metadata": {}, @@ -218,6 +227,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "fbef9ff6-d4d1-41d4-8400-fe0d37a0048d", "metadata": {}, @@ -226,6 +236,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "c8f22e01-f80c-4b79-8ebe-857d179d4392", "metadata": {}, @@ -247,6 +258,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "cb855078-6608-4a19-b329-8de84da6de07", "metadata": {}, @@ -274,6 +286,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "02a2a551-10df-4d0e-a0e9-ebe2faa0f997", "metadata": {}, @@ -295,6 +308,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "5081de0f-019a-43e8-a6ec-c1a103d37ac4", "metadata": {}, @@ -320,6 +334,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "42154bcc-f4a1-4a21-9668-2c1da9fbfa35", "metadata": {}, @@ -358,6 +373,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "ef965660-2716-4e25-891c-68f343623c1e", "metadata": {}, @@ -376,6 +392,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "4392c11b-aca1-4533-bc5f-75737b266f42", "metadata": {}, @@ -420,6 +437,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "083a3e4a-cb9c-4079-bcfa-94e06d6887bc", "metadata": {}, @@ -428,6 +446,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "75a661ea-d447-4a7d-9379-c80730e6a14e", "metadata": {}, @@ -436,6 +455,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "5917b0d2-1ffb-48cf-b15e-d00fc3b27c1b", "metadata": {}, @@ -466,6 +486,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "ffe0ce17-9508-47ad-a239-41bacf09b8da", "metadata": {}, @@ -485,6 +506,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "178899b6-9d0a-409b-aacb-9e05a2669136", "metadata": {}, @@ -504,6 +526,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "60db6de5-0e1a-469e-bffc-b77c53cad9ee", "metadata": {}, @@ -575,6 +598,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "d906c5e5-bd11-4c4f-ba13-8b4a2a09c9d7", "metadata": {}, @@ -602,6 +626,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "9bd7668c-a84d-42ff-962b-ead151d81b9a", "metadata": {}, @@ -610,6 +635,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "72e79695-e9a0-4e09-817e-8963a9dcd340", "metadata": {}, @@ -647,7 +673,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -661,7 +687,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.8" + "version": "3.11.6" } }, "nbformat": 4, diff --git a/notebooks/similarity-search-on-vector-data/notebook.ipynb b/notebooks/similarity-search-on-vector-data/notebook.ipynb index ad6a51a9..0f8d9cb0 100644 --- a/notebooks/similarity-search-on-vector-data/notebook.ipynb +++ b/notebooks/similarity-search-on-vector-data/notebook.ipynb @@ -95,7 +95,8 @@ "outputs": [], "source": [ "%%sql\n", - "CREATE TABLE comments(id INT NOT NULL PRIMARY KEY,\n", + "CREATE TABLE comments /* Creating table for sample data. */\n", + " (id INT NOT NULL PRIMARY KEY,\n", " comment TEXT,\n", " comment_embedding VECTOR(4) NOT NULL,\n", " category VARCHAR(256));"