diff --git a/week1/Intermediate Python.ipynb b/week1/Intermediate Python.ipynb index aaaa0e3..ea3bdb1 100644 --- a/week1/Intermediate Python.ipynb +++ b/week1/Intermediate Python.ipynb @@ -464,7 +464,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "llms", "language": "python", "name": "python3" }, @@ -478,7 +478,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.11" + "version": "3.11.13" } }, "nbformat": 4, diff --git a/week1/day1.ipynb b/week1/day1.ipynb index 7d0c489..572b91a 100644 --- a/week1/day1.ipynb +++ b/week1/day1.ipynb @@ -110,7 +110,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "4e2a9393-7767-488e-a8bf-27c12dca35bd", "metadata": {}, "outputs": [], @@ -151,18 +151,10 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "id": "7b87cadb-d513-4303-baee-a37b6f938e4d", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "API key found and looks good so far!\n" - ] - } - ], + "outputs": [], "source": [ "# Load environment variables in a file called .env\n", "\n", @@ -183,7 +175,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "id": "019974d9-f3ad-4a8a-b5f9-0a3719aea2d3", "metadata": {}, "outputs": [], @@ -204,18 +196,10 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "id": "a58394bf-1e45-46af-9bfd-01e24da6f49a", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Hello! It's great to meet you. How can I assist you today?\n" - ] - } - ], + "outputs": [], "source": [ "import openai\n", "\n", @@ -270,62 +254,7 @@ "execution_count": null, "id": "2ef960cf-6dc2-4cda-afb3-b38be12f4c97", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Home - Edward Donner\n", - "Home\n", - "Connect Four\n", - "Outsmart\n", - "An arena that pits LLMs against each other in a battle of diplomacy and deviousness\n", - "About\n", - "Posts\n", - "Well, hi there.\n", - "I’m Ed. I like writing code and experimenting with LLMs, and hopefully you’re here because you do too. I also enjoy DJing (but I’m badly out of practice), amateur electronic music production (\n", - "very\n", - "amateur) and losing myself in\n", - "Hacker News\n", - ", nodding my head sagely to things I only half understand.\n", - "I’m the co-founder and CTO of\n", - "Nebula.io\n", - ". We’re applying AI to a field where it can make a massive, positive impact: helping people discover their potential and pursue their reason for being. Recruiters use our product today to source, understand, engage and manage talent. I’m previously the founder and CEO of AI startup untapt,\n", - "acquired in 2021\n", - ".\n", - "We work with groundbreaking, proprietary LLMs verticalized for talent, we’ve\n", - "patented\n", - "our matching model, and our award-winning platform has happy customers and tons of press coverage.\n", - "Connect\n", - "with me for more!\n", - "May 28, 2025\n", - "Connecting my courses – become an LLM expert and leader\n", - "May 18, 2025\n", - "2025 AI Executive Briefing\n", - "April 21, 2025\n", - "The Complete Agentic AI Engineering Course\n", - "January 23, 2025\n", - "LLM Workshop – Hands-on with Agents – resources\n", - "Navigation\n", - "Home\n", - "Connect Four\n", - "Outsmart\n", - "An arena that pits LLMs against each other in a battle of diplomacy and deviousness\n", - "About\n", - "Posts\n", - "Get in touch\n", - "ed [at] edwarddonner [dot] com\n", - "www.edwarddonner.com\n", - "Follow me\n", - "LinkedIn\n", - "Twitter\n", - "Facebook\n", - "Subscribe to newsletter\n", - "Type your email…\n", - "Subscribe\n" - ] - } - ], + "outputs": [], "source": [ "# Let's try one out. Change the website and add print statements to follow along.\n", "\n", @@ -354,7 +283,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "id": "abdb8417-c5dc-44bc-9bee-2e059d162699", "metadata": {}, "outputs": [], @@ -368,7 +297,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "id": "f0275b1b-7cfe-4f9d-abfa-7650d378da0c", "metadata": {}, "outputs": [], @@ -386,67 +315,10 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "id": "26448ec4-5c00-4204-baec-7df91d11ff2e", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "You are looking at a website titled Home - Edward Donner\n", - "The contents of this website is as follows; please provide a short summary of this website in markdown. If it includes news or announcements, then summarize these too.\n", - "\n", - "Home\n", - "Connect Four\n", - "Outsmart\n", - "An arena that pits LLMs against each other in a battle of diplomacy and deviousness\n", - "About\n", - "Posts\n", - "Well, hi there.\n", - "I’m Ed. I like writing code and experimenting with LLMs, and hopefully you’re here because you do too. I also enjoy DJing (but I’m badly out of practice), amateur electronic music production (\n", - "very\n", - "amateur) and losing myself in\n", - "Hacker News\n", - ", nodding my head sagely to things I only half understand.\n", - "I’m the co-founder and CTO of\n", - "Nebula.io\n", - ". We’re applying AI to a field where it can make a massive, positive impact: helping people discover their potential and pursue their reason for being. Recruiters use our product today to source, understand, engage and manage talent. I’m previously the founder and CEO of AI startup untapt,\n", - "acquired in 2021\n", - ".\n", - "We work with groundbreaking, proprietary LLMs verticalized for talent, we’ve\n", - "patented\n", - "our matching model, and our award-winning platform has happy customers and tons of press coverage.\n", - "Connect\n", - "with me for more!\n", - "May 28, 2025\n", - "Connecting my courses – become an LLM expert and leader\n", - "May 18, 2025\n", - "2025 AI Executive Briefing\n", - "April 21, 2025\n", - "The Complete Agentic AI Engineering Course\n", - "January 23, 2025\n", - "LLM Workshop – Hands-on with Agents – resources\n", - "Navigation\n", - "Home\n", - "Connect Four\n", - "Outsmart\n", - "An arena that pits LLMs against each other in a battle of diplomacy and deviousness\n", - "About\n", - "Posts\n", - "Get in touch\n", - "ed [at] edwarddonner [dot] com\n", - "www.edwarddonner.com\n", - "Follow me\n", - "LinkedIn\n", - "Twitter\n", - "Facebook\n", - "Subscribe to newsletter\n", - "Type your email…\n", - "Subscribe\n" - ] - } - ], + "outputs": [], "source": [ "print(user_prompt_for(ed))" ] @@ -472,7 +344,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "id": "f25dcd35-0cd0-4235-9f64-ac37ed9eaaa5", "metadata": {}, "outputs": [], @@ -485,18 +357,10 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "id": "21ed95c5-7001-47de-a36d-1d6673b403ce", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Oh, you’re really hitting me with the tough questions! But fine, I’ll play along. 2 + 2 equals 4. Happy now?\n" - ] - } - ], + "outputs": [], "source": [ "# To give you a preview -- calling OpenAI with system and user messages:\n", "\n", @@ -514,7 +378,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "id": "0134dfa4-8299-48b5-b444-f2a8c3403c88", "metadata": {}, "outputs": [], @@ -530,24 +394,10 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": null, "id": "36478464-39ee-485c-9f3f-6a4e458dbc9c", "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "[{'role': 'system',\n", - " 'content': 'You are an assistant that analyzes the contents of a website and provides a short summary, ignoring text that might be navigation related. Respond in markdown.'},\n", - " {'role': 'user',\n", - " 'content': 'You are looking at a website titled Home - Edward Donner\\nThe contents of this website is as follows; please provide a short summary of this website in markdown. If it includes news or announcements, then summarize these too.\\n\\nHome\\nConnect Four\\nOutsmart\\nAn arena that pits LLMs against each other in a battle of diplomacy and deviousness\\nAbout\\nPosts\\nWell, hi there.\\nI’m Ed. I like writing code and experimenting with LLMs, and hopefully you’re here because you do too. I also enjoy DJing (but I’m badly out of practice), amateur electronic music production (\\nvery\\namateur) and losing myself in\\nHacker News\\n, nodding my head sagely to things I only half understand.\\nI’m the co-founder and CTO of\\nNebula.io\\n. We’re applying AI to a field where it can make a massive, positive impact: helping people discover their potential and pursue their reason for being. Recruiters use our product today to source, understand, engage and manage talent. I’m previously the founder and CEO of AI startup untapt,\\nacquired in 2021\\n.\\nWe work with groundbreaking, proprietary LLMs verticalized for talent, we’ve\\npatented\\nour matching model, and our award-winning platform has happy customers and tons of press coverage.\\nConnect\\nwith me for more!\\nMay 28, 2025\\nConnecting my courses – become an LLM expert and leader\\nMay 18, 2025\\n2025 AI Executive Briefing\\nApril 21, 2025\\nThe Complete Agentic AI Engineering Course\\nJanuary 23, 2025\\nLLM Workshop – Hands-on with Agents – resources\\nNavigation\\nHome\\nConnect Four\\nOutsmart\\nAn arena that pits LLMs against each other in a battle of diplomacy and deviousness\\nAbout\\nPosts\\nGet in touch\\ned [at] edwarddonner [dot] com\\nwww.edwarddonner.com\\nFollow me\\nLinkedIn\\nTwitter\\nFacebook\\nSubscribe to newsletter\\nType your email…\\nSubscribe'}]" - ] - }, - "execution_count": 21, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "# Try this out, and then try for a few more websites\n", "\n", @@ -564,7 +414,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": null, "id": "905b9919-aba7-45b5-ae65-81b3d1d78e34", "metadata": {}, "outputs": [], @@ -582,28 +432,17 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": null, "id": "05e38d41-dfa4-4b20-9c96-c46ea75d9fb5", "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "'# Summary of Edward Donner\\'s Website\\n\\nThis website belongs to Ed Donner, a technology enthusiast focused on coding and experimenting with large language models (LLMs). He is the co-founder and CTO of Nebula.io, a company leveraging AI to help individuals discover their potential in the talent space. Ed has a background in AI startups, having previously founded untapt, which was acquired in 2021.\\n\\n## Key Features:\\n- **Personal Interests**: Ed enjoys DJing, electronic music production, and engaging with content on Hacker News.\\n- **Professional Focus**: Nebula.io specializes in developing proprietary LLMs tailored for talent matching and management.\\n\\n## Recent Announcements:\\n- **May 28, 2025**: Course introduction on becoming an LLM expert and leader.\\n- **May 18, 2025**: Announcement of a 2025 AI Executive Briefing.\\n- **April 21, 2025**: Launch of the \"Complete Agentic AI Engineering Course\".\\n- **January 23, 2025**: A workshop titled \"LLM Workshop – Hands-on with Agents\" offering related resources. \\n\\nThe website encourages visitors to connect with Ed and subscribe to his newsletter for updates and insights.'" - ] - }, - "execution_count": 23, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "summarize(\"https://edwarddonner.com\")" ] }, { "cell_type": "code", - "execution_count": 24, + "execution_count": null, "id": "3d926d59-450e-4609-92ba-2d6f244f1342", "metadata": {}, "outputs": [], @@ -617,34 +456,10 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": null, "id": "3018853a-445f-41ff-9560-d925d1774b2f", "metadata": {}, - "outputs": [ - { - "data": { - "text/markdown": [ - "# Summary of Edward Donner's Website\n", - "\n", - "Edward Donner's personal website showcases his interests in coding, LLMs (Large Language Models), and electronic music. He is the co-founder and CTO of Nebula.io, a company focused on using AI to enhance talent discovery and management. He has previously founded another AI startup, untapt, which was acquired in 2021.\n", - "\n", - "## Recent Announcements:\n", - "\n", - "- **May 28, 2025**: Launch of courses aimed at helping individuals become experts and leaders in LLM technology.\n", - "- **May 18, 2025**: Announcement of the 2025 AI Executive Briefing.\n", - "- **April 21, 2025**: Introductory course titled \"The Complete Agentic AI Engineering Course.\"\n", - "- **January 23, 2025**: LLM Workshop offering hands-on resources for working with agents.\n", - "\n", - "The website encourages connection and collaboration, inviting visitors to reach out and engage." - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "display_summary(\"https://edwarddonner.com\")" ]