"# Load environment variables in a file called .env\n",
"\n",
@ -121,18 +113,10 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "a58394bf-1e45-46af-9bfd-01e24da6f49a",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello! Welcome! I'm glad to have your first message here. How can I assist you today?\n"
]
}
],
"outputs": [],
"source": [
"# To give you a preview -- calling OpenAI with these messages is this easy:\n",
"\n",
@ -181,63 +165,10 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "2ef960cf-6dc2-4cda-afb3-b38be12f4c97",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Home - Edward Donner\n",
"Home\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",
"November 13, 2024\n",
"Mastering AI and LLM Engineering – Resources\n",
"October 16, 2024\n",
"From Software Engineer to AI Data Scientist – resources\n",
"August 6, 2024\n",
"Outsmart LLM Arena – a battle of diplomacy and deviousness\n",
"June 26, 2024\n",
"Choosing the Right LLM: Toolkit and Resources\n",
"Navigation\n",
"Home\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",
@ -298,65 +229,10 @@
},
{
"cell_type": "code",
"execution_count": 11,
"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",
"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",
"November 13, 2024\n",
"Mastering AI and LLM Engineering – Resources\n",
"October 16, 2024\n",
"From Software Engineer to AI Data Scientist – resources\n",
"August 6, 2024\n",
"Outsmart LLM Arena – a battle of diplomacy and deviousness\n",
"June 26, 2024\n",
"Choosing the Right LLM: Toolkit and Resources\n",
"Navigation\n",
"Home\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))"
]
@ -395,18 +271,10 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"id": "21ed95c5-7001-47de-a36d-1d6673b403ce",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Oh, I don’t know, maybe it’s 22? Just kidding—it's 4. Basic math is still safe!\n"
]
}
],
"outputs": [],
"source": [
"# To give you a preview -- calling OpenAI with system and user messages:\n",
"\n",
@ -440,24 +308,10 @@
},
{
"cell_type": "code",
"execution_count": 15,
"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\\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!\\nNovember 13, 2024\\nMastering AI and LLM Engineering – Resources\\nOctober 16, 2024\\nFrom Software Engineer to AI Data Scientist – resources\\nAugust 6, 2024\\nOutsmart LLM Arena – a battle of diplomacy and deviousness\\nJune 26, 2024\\nChoosing the Right LLM: Toolkit and Resources\\nNavigation\\nHome\\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": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"# Try this out, and then try for a few more websites\n",
"\n",
@ -492,21 +346,10 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": null,
"id": "05e38d41-dfa4-4b20-9c96-c46ea75d9fb5",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'# Summary of Edward Donner\\'s Website\\n\\nEdward Donner\\'s website serves as a personal and professional hub for his interests and projects, particularly in the domains of code writing, large language models (LLMs), and artificial intelligence (AI). \\n\\n## About Ed\\n- Ed describes himself as a coder and enthusiast of LLMs, highlighting his background as the co-founder and CTO of Nebula.io, a company focused on leveraging AI to enhance talent discovery and management. \\n- He has a history as the founder and CEO of the AI startup untapt, which was acquired in 2021.\\n- Outside of his tech interests, Ed enjoys DJing and amateur electronic music production.\\n\\n## Key Projects and Features\\n- **Outsmart**: A platform where LLMs compete against each other in strategic scenarios.\\n \\n## Recent Posts\\n- **November 13, 2024**: \"Mastering AI and LLM Engineering – Resources\" - A collection of resources for those looking to deepen their skills in AI and LLM engineering.\\n- **October 16, 2024**: \"From Software Engineer to AI Data Scientist – Resources\" - Guidance and tools for transitioning from software engineering to AI data science roles.\\n- **August 6, 2024**: \"Outsmart LLM Arena – a battle of diplomacy and deviousness\" - A focus on the unique features of the Outsmart program.\\n- **June 26, 2024**: \"Choosing the Right LLM: Toolkit and Resources\" - A resource list for selecting suitable LLMs for various applications.\\n\\nOverall, the website presents Ed as a tech-savvy individual with a passion for sharing knowledge and resources in the AI field.'"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"summarize(\"https://edwarddonner.com\")"
]
@ -527,37 +370,10 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": null,
"id": "3018853a-445f-41ff-9560-d925d1774b2f",
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"# Website Summary: Edward Donner\n",
"\n",
"Edward Donner's website showcases his interests and professional background, particularly in coding and experimenting with large language models (LLMs). He is the co-founder and CTO of Nebula.io, a company focused on applying AI to enhance talent discovery and management. Previously, he founded the AI startup untapt, which was acquired in 2021. \n",
"\n",
"## Key Features:\n",
"- **Outsmart**: A unique platform where LLMs compete in strategy games that test diplomacy and cunning. \n",
"- **Blog Posts**: Various posts offering resources for mastering AI and LLM engineering, transitioning from software engineering to AI data science, and guidance on choosing the right LLM.\n",
"\n",
"## Recent Announcements:\n",
"- **November 13, 2024**: Post on \"Mastering AI and LLM Engineering.\"\n",
"- **October 16, 2024**: Insights on \"From Software Engineer to AI Data Scientist.\"\n",
"- **August 6, 2024**: Information on \"Outsmart LLM Arena.\"\n",
"- **June 26, 2024**: Resources for \"Choosing the Right LLM.\" \n",
"\n",
"Overall, the website serves as a platform for sharing knowledge and fostering connections within the AI and LLM community."
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"display_summary(\"https://edwarddonner.com\")"
]
@ -746,40 +562,10 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": null,
"id": "da7f7b16",
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"# Canva: Visual Suite for Everyone\n",
"\n",
"Canva is a user-friendly design platform that allows individuals and teams to create a variety of professional designs, including posters, logos, presentations, and more. It offers options for different users, including a free version for individuals and premium plans for teams and organizations.\n",
"\n",
"## Key Features:\n",
"- **Design Templates**: A wide range of customizable templates for various purposes, such as social media, business cards, and events.\n",
"- **AI-Powered Tools**: Features like Magic Write for copy generation and Magic Edit for photo transformation enhance design capabilities.\n",
"- **Collaboration**: Real-time collaborative tools for teams to design and provide feedback on projects together.\n",
"- **Printing Services**: Canva offers printing services for various products, with free delivery and sustainable practices.\n",
"- **Educational and Nonprofit Support**: Free premium features are available for educational organizations and nonprofits.\n",
"\n",
"## User Testimonials:\n",
"Business leaders commend Canva for its efficiency in streamlining design processes and maintaining brand consistency across teams.\n",
"\n",
"## Sustainability Efforts:\n",
"Canva emphasizes sustainability by planting trees for printed orders and operating with carbon neutrality.\n",
"\n",
"Overall, Canva caters to a diverse audience, from individuals to large organizations, by providing accessible and innovative design solutions."
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"new_summary(url, chrome_path)"
]
@ -796,44 +582,10 @@
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": null,
"id": "337b06da",
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"# OpenAI Website Summary\n",
"\n",
"OpenAI is focused on creating safe artificial general intelligence (AGI) that benefits humanity. The site features various products and initiatives aimed at enhancing creativity and productivity through advanced AI technologies. \n",
"\n",
"## Key Highlights:\n",
"\n",
"### Products and Features\n",
"- **Sora**: A new platform that allows users to bring their imagination to life through text, images, or videos.\n",
"- **ChatGPT**: Includes various applications such as ChatGPT Pro, desktop integration, and a new search feature. Recent upgrades allow ChatGPT to analyze images, hear, and speak.\n",
"- **Canvas**: A new writing and coding interface integrated within ChatGPT.\n",
"- **o1 Models**: A series of AI models designed to improve response time by incorporating deeper reasoning.\n",
"\n",
"### Announcements\n",
"- **Partnerships**: OpenAI announced a partnership with Apple to explore advancements in AI technology.\n",
"- **New Features**: Introduced improvements to the fine-tuning API and expanded custom models program, aiming to better serve developers and enterprise users.\n",
"- **Collaboration with Media**: A partnership with Le Monde and Prisa Media intends to bring French and Spanish news content to ChatGPT.\n",
"\n",
"### Research and Safety\n",
"- Ongoing research efforts are focused on building a safer AI framework, including advanced tools for compliance within the ChatGPT Enterprise suite.\n",
"- Publications addressing AI's benefits and risks, including topics like synthetic voices and biological threats, are regularly updated.\n",
"\n",
"For more detailed insights, the website facilitates exploration of their product offerings, research publications, and the newest tools for developers and businesses."