From f9363128c45ee40d00bdf91bc063ad0209a21484 Mon Sep 17 00:00:00 2001 From: BhavyaKumar Shah Date: Sat, 11 Jan 2025 18:49:39 -0800 Subject: [PATCH] Added brochure generator with translation feature --- week1/day5.ipynb | 3688 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 3607 insertions(+), 81 deletions(-) diff --git a/week1/day5.ipynb b/week1/day5.ipynb index 397e5ed..943ec82 100644 --- a/week1/day5.ipynb +++ b/week1/day5.ipynb @@ -22,7 +22,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 101, "id": "d5b08506-dc8b-4443-9201-5f1848161363", "metadata": {}, "outputs": [], @@ -42,10 +42,18 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 102, "id": "fc5d8880-f2ee-4c06-af16-ecbc0262af61", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "API key looks good so far\n" + ] + } + ], "source": [ "# Initialize and constants\n", "\n", @@ -63,7 +71,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 103, "id": "106dd65e-90af-4ca8-86b6-23a41840645b", "metadata": {}, "outputs": [], @@ -101,12 +109,129 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 104, "id": "e30d8128-933b-44cc-81c8-ab4c9d86589a", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "['#main-content',\n", + " 'https://www.stanford.edu/',\n", + " 'https://www.stanford.edu/student-gateway/',\n", + " 'https://www.stanford.edu/faculty-staff-gateway/',\n", + " 'http://parents.stanford.edu/',\n", + " 'https://visit.stanford.edu',\n", + " 'http://alumni.stanford.edu/',\n", + " 'https://www.stanford.edu/news/',\n", + " 'https://www.stanford.edu/events/',\n", + " 'https://www.stanford.edu/academics/',\n", + " 'https://www.stanford.edu/research/',\n", + " 'https://www.stanford.edu/health-care/',\n", + " 'https://www.stanford.edu/campus-life/',\n", + " 'https://www.stanford.edu/admission/',\n", + " 'https://www.stanford.edu/about/',\n", + " 'https://campus-map.stanford.edu/',\n", + " 'https://profiles.stanford.edu/',\n", + " '#main-content',\n", + " 'https://www.stanford.edu/about/',\n", + " 'https://news.stanford.edu/stories/2025/01/assessing-wildfire-health-risks',\n", + " 'https://news.stanford.edu/stories/2025/01/assessing-wildfire-health-risks',\n", + " 'https://news.stanford.edu/stories/2025/01/ai-cancer-prognosis',\n", + " 'https://news.stanford.edu/stories/2025/01/ai-cancer-prognosis',\n", + " 'https://news.stanford.edu/stories/2025/01/guaranteed-income-can-lower-household-spending-while-reducing-debt',\n", + " 'https://news.stanford.edu/stories/2025/01/guaranteed-income-can-lower-household-spending-while-reducing-debt',\n", + " 'https://news.stanford.edu/stories/2025/01/type-2-diabetes',\n", + " 'https://news.stanford.edu/stories/2025/01/type-2-diabetes',\n", + " 'https://news.stanford.edu/stories/2025/01/report-outlines-stanford-principles-for-use-of-ai',\n", + " 'https://news.stanford.edu/stories/2025/01/report-outlines-stanford-principles-for-use-of-ai',\n", + " 'https://news.stanford.edu/stories/2024/12/A-5-books-to-help-you-disagree-productively',\n", + " 'https://news.stanford.edu/stories/2024/12/A-5-books-to-help-you-disagree-productively',\n", + " 'https://news.stanford.edu/',\n", + " 'https://undergrad.stanford.edu/',\n", + " 'https://vpge.stanford.edu/',\n", + " 'https://lifelonglearning.stanford.edu/',\n", + " 'http://med.stanford.edu/',\n", + " 'http://www.law.stanford.edu/',\n", + " 'http://humsci.stanford.edu/',\n", + " 'http://engineering.stanford.edu/',\n", + " 'http://ed.stanford.edu/',\n", + " 'https://sustainability.stanford.edu/',\n", + " 'http://gsb.stanford.edu/',\n", + " '/academics',\n", + " 'https://news.stanford.edu/stories/2024/05/meet-our-faculty-tadashi-tokieda',\n", + " '/research',\n", + " 'http://events.stanford.edu',\n", + " 'https://med.stanford.edu/',\n", + " 'https://stanfordhealthcare.org/',\n", + " 'https://stanfordchildrens.org/',\n", + " '/health-care/',\n", + " 'https://news.stanford.edu/stories/2024/05/blending-disciplines-for-a-more-colorful-world',\n", + " 'http://studentaffairs.stanford.edu/',\n", + " 'http://arts.stanford.edu/',\n", + " 'https://rec.stanford.edu/',\n", + " '/campus-life/',\n", + " 'https://gostanford.com/sports/2017/5/22/home-of-champions.aspx',\n", + " 'https://gostanford.com/news/2023/5/25/athletics-stanford-olympic-history.aspx',\n", + " 'https://gostanford.com/sports/featured',\n", + " 'https://gostanford.com/',\n", + " '/admission',\n", + " 'https://www.facebook.com/stanford',\n", + " 'https://twitter.com/stanford',\n", + " 'https://www.instagram.com/stanford/',\n", + " 'https://www.linkedin.com/school/stanford-university/',\n", + " 'https://www.youtube.com/stanford',\n", + " 'https://podcasts.apple.com/us/artist/stanford/1280771285',\n", + " 'https://www.gsb.stanford.edu/',\n", + " 'https://ed.stanford.edu/',\n", + " 'https://engineering.stanford.edu/',\n", + " 'https://humsci.stanford.edu/',\n", + " 'https://law.stanford.edu/',\n", + " 'https://med.stanford.edu/',\n", + " 'https://sustainability.stanford.edu/',\n", + " 'https://majors.stanford.edu/majors',\n", + " 'https://gradadmissions.stanford.edu/explore-programs',\n", + " '/list/research/',\n", + " 'http://library.stanford.edu/',\n", + " 'https://stanfordhealthcare.org/',\n", + " 'https://www.stanfordchildrens.org/',\n", + " 'https://online.stanford.edu/',\n", + " 'https://facts.stanford.edu/',\n", + " '/about/history',\n", + " 'https://wasc.stanford.edu/',\n", + " 'https://admission.stanford.edu/',\n", + " 'https://gradadmissions.stanford.edu',\n", + " 'https://financialaid.stanford.edu/',\n", + " 'https://campus-map.stanford.edu/',\n", + " 'https://community.stanford.edu/',\n", + " 'https://stanfordwho.stanford.edu/',\n", + " 'https://profiles.stanford.edu/',\n", + " '/admission',\n", + " 'https://visit.stanford.edu/',\n", + " 'https://giving.stanford.edu/',\n", + " 'https://careersearch.stanford.edu/',\n", + " 'http://facultypositions.stanford.edu/',\n", + " '/contact',\n", + " '/',\n", + " '/',\n", + " 'https://visit.stanford.edu/plan/',\n", + " '/search/',\n", + " 'https://emergency.stanford.edu/',\n", + " '/site/terms/',\n", + " '/site/privacy',\n", + " 'https://uit.stanford.edu/security/copyright-infringement',\n", + " 'https://adminguide.stanford.edu/chapter-1/subchapter-5/policy-1-5-4',\n", + " 'https://studentservices.stanford.edu/more-resources/student-policies/non-academic/non-discrimination',\n", + " '/site/accessibility/']" + ] + }, + "execution_count": 104, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "ed = Website(\"https://edwarddonner.com\")\n", + "ed = Website(\"https://www.stanford.edu\")\n", "ed.links" ] }, @@ -128,103 +253,543 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 105, "id": "6957b079-0d96-45f7-a26a-3487510e9b35", "metadata": {}, "outputs": [], "source": [ - "link_system_prompt = \"You are provided with a list of links found on a webpage. \\\n", - "You are able to decide which of the links would be most relevant to include in a brochure about the company, \\\n", - "such as links to an About page, or a Company page, or Careers/Jobs pages.\\n\"\n", - "link_system_prompt += \"You should respond in JSON as in this example:\"\n", - "link_system_prompt += \"\"\"\n", + "link_system_prompt = \"\"\"\n", + "You are provided with a list of links found on a webpage. \n", + "You are able to decide which of the links would be most relevant to include in a brochure about the company.\n", + "\n", + "Here are some examples of good link classifications:\n", + "\n", + "Example 1 - A Technology Company:\n", + "Input links:\n", + "/about-us\n", + "/privacy\n", + "/careers\n", + "/contact\n", + "/products\n", + "/terms\n", + "\n", + "Output:\n", + "{\n", + " \"links\": [\n", + " {\"type\": \"about page\", \"url\": \"https://company.com/about-us\"},\n", + " {\"type\": \"careers page\", \"url\": \"https://company.com/careers\"},\n", + " {\"type\": \"products page\", \"url\": \"https://company.com/products\"}\n", + " ]\n", + "}\n", + "\n", + "Example 2 - A Consulting Firm:\n", + "Input links:\n", + "/who-we-are\n", + "/services\n", + "/join-our-team\n", + "/blog\n", + "/cookie-policy\n", + "/case-studies\n", + "\n", + "Output:\n", + "{\n", + " \"links\": [\n", + " {\"type\": \"company overview\", \"url\": \"https://firm.com/who-we-are\"},\n", + " {\"type\": \"services page\", \"url\": \"https://firm.com/services\"},\n", + " {\"type\": \"careers page\", \"url\": \"https://firm.com/join-our-team\"},\n", + " {\"type\": \"case studies\", \"url\": \"https://firm.com/case-studies\"}\n", + " ]\n", + "}\n", + "\n", + "\n", + "Example 3 - An Educational Institution:\n", + "Input links:\n", + "/academics\n", + "/admissions\n", + "/research\n", + "/campus-life\n", + "/alumni\n", + "/contact\n", + "\n", + "Output:\n", "{\n", " \"links\": [\n", - " {\"type\": \"about page\", \"url\": \"https://full.url/goes/here/about\"},\n", - " {\"type\": \"careers page\": \"url\": \"https://another.full.url/careers\"}\n", + " {\"type\": \"academic programs\", \"url\": \"https://university.edu/academics\"},\n", + " {\"type\": \"admissions\", \"url\": \"https://university.edu/admissions\"},\n", + " {\"type\": \"research\", \"url\": \"https://university.edu/research\"},\n", + " {\"type\": \"campus life\", \"url\": \"https://university.edu/campus-life\"}\n", " ]\n", "}\n", + "\n", + "Now analyze the following links and categorize them similarly, providing full URLs. \n", + "Exclude any links to privacy policies, terms of service, or email addresses.\n", + "Respond in JSON format as shown in the examples above.\n", + "\"\"\"\n", + "\n", + "link_system_prompt += \"\"\"\n", + "Example of links to exclude:\n", + "- mailto:contact@company.com\n", + "- /privacy-policy\n", + "- /terms-of-service\n", + "- /cookies\n", + "- /sitemap.xml\n", "\"\"\"" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 106, "id": "b97e4068-97ed-4120-beae-c42105e4d59a", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "You are provided with a list of links found on a webpage. \n", + "You are able to decide which of the links would be most relevant to include in a brochure about the company.\n", + "\n", + "Here are some examples of good link classifications:\n", + "\n", + "Example 1 - A Technology Company:\n", + "Input links:\n", + "/about-us\n", + "/privacy\n", + "/careers\n", + "/contact\n", + "/products\n", + "/terms\n", + "\n", + "Output:\n", + "{\n", + " \"links\": [\n", + " {\"type\": \"about page\", \"url\": \"https://company.com/about-us\"},\n", + " {\"type\": \"careers page\", \"url\": \"https://company.com/careers\"},\n", + " {\"type\": \"products page\", \"url\": \"https://company.com/products\"}\n", + " ]\n", + "}\n", + "\n", + "Example 2 - A Consulting Firm:\n", + "Input links:\n", + "/who-we-are\n", + "/services\n", + "/join-our-team\n", + "/blog\n", + "/cookie-policy\n", + "/case-studies\n", + "\n", + "Output:\n", + "{\n", + " \"links\": [\n", + " {\"type\": \"company overview\", \"url\": \"https://firm.com/who-we-are\"},\n", + " {\"type\": \"services page\", \"url\": \"https://firm.com/services\"},\n", + " {\"type\": \"careers page\", \"url\": \"https://firm.com/join-our-team\"},\n", + " {\"type\": \"case studies\", \"url\": \"https://firm.com/case-studies\"}\n", + " ]\n", + "}\n", + "\n", + "\n", + "Example 3 - An Educational Institution:\n", + "Input links:\n", + "/academics\n", + "/admissions\n", + "/research\n", + "/campus-life\n", + "/alumni\n", + "/contact\n", + "\n", + "Output:\n", + "{\n", + " \"links\": [\n", + " {\"type\": \"academic programs\", \"url\": \"https://university.edu/academics\"},\n", + " {\"type\": \"admissions\", \"url\": \"https://university.edu/admissions\"},\n", + " {\"type\": \"research\", \"url\": \"https://university.edu/research\"},\n", + " {\"type\": \"campus life\", \"url\": \"https://university.edu/campus-life\"}\n", + " ]\n", + "}\n", + "\n", + "Now analyze the following links and categorize them similarly, providing full URLs. \n", + "Exclude any links to privacy policies, terms of service, or email addresses.\n", + "Respond in JSON format as shown in the examples above.\n", + "\n", + "Example of links to exclude:\n", + "- mailto:contact@company.com\n", + "- /privacy-policy\n", + "- /terms-of-service\n", + "- /cookies\n", + "- /sitemap.xml\n", + "\n" + ] + } + ], "source": [ "print(link_system_prompt)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 107, "id": "8e1f601b-2eaf-499d-b6b8-c99050c9d6b3", "metadata": {}, "outputs": [], "source": [ + "# def get_links_user_prompt(website):\n", + "# user_prompt = f\"Here is the list of links on the website of {website.url} - \"\n", + "# user_prompt += \"please decide which of these are relevant web links for a brochure about the company, respond with the full https URL in JSON format. \\\n", + "# Do not include Terms of Service, Privacy, email links.\\n\"\n", + "# user_prompt += \"Links (some might be relative links):\\n\"\n", + "# user_prompt += \"\\n\".join(website.links)\n", + "# return user_prompt\n", + "\n", + "\n", "def get_links_user_prompt(website):\n", - " user_prompt = f\"Here is the list of links on the website of {website.url} - \"\n", - " user_prompt += \"please decide which of these are relevant web links for a brochure about the company, respond with the full https URL in JSON format. \\\n", - "Do not include Terms of Service, Privacy, email links.\\n\"\n", - " user_prompt += \"Links (some might be relative links):\\n\"\n", - " user_prompt += \"\\n\".join(website.links)\n", + " base_url = website.url.rstrip('/')\n", + " user_prompt = f\"Website URL: {base_url}\\n\\n\"\n", + " user_prompt += \"Found links:\\n\"\n", + " \n", + " # Convert relative links to absolute URLs\n", + " formatted_links = []\n", + " for link in website.links:\n", + " if link and isinstance(link, str): # Check if link is valid\n", + " if link.startswith('/'):\n", + " formatted_links.append(f\"{base_url}{link}\")\n", + " elif link.startswith('http'):\n", + " formatted_links.append(link)\n", + " # Skip mailto: and other excluded links\n", + " elif not any(excluded in link.lower() for excluded in ['mailto:', 'privacy', 'terms', 'cookies', 'sitemap']):\n", + " # Handle other relative links\n", + " formatted_links.append(f\"{base_url}/{link.lstrip('/')}\")\n", + " \n", + " user_prompt += \"\\n\".join(formatted_links)\n", " return user_prompt" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 108, "id": "6bcbfa78-6395-4685-b92c-22d592050fd7", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Website URL: https://www.stanford.edu\n", + "\n", + "Found links:\n", + "https://www.stanford.edu/#main-content\n", + "https://www.stanford.edu/\n", + "https://www.stanford.edu/student-gateway/\n", + "https://www.stanford.edu/faculty-staff-gateway/\n", + "http://parents.stanford.edu/\n", + "https://visit.stanford.edu\n", + "http://alumni.stanford.edu/\n", + "https://www.stanford.edu/news/\n", + "https://www.stanford.edu/events/\n", + "https://www.stanford.edu/academics/\n", + "https://www.stanford.edu/research/\n", + "https://www.stanford.edu/health-care/\n", + "https://www.stanford.edu/campus-life/\n", + "https://www.stanford.edu/admission/\n", + "https://www.stanford.edu/about/\n", + "https://campus-map.stanford.edu/\n", + "https://profiles.stanford.edu/\n", + "https://www.stanford.edu/#main-content\n", + "https://www.stanford.edu/about/\n", + "https://news.stanford.edu/stories/2025/01/assessing-wildfire-health-risks\n", + "https://news.stanford.edu/stories/2025/01/assessing-wildfire-health-risks\n", + "https://news.stanford.edu/stories/2025/01/ai-cancer-prognosis\n", + "https://news.stanford.edu/stories/2025/01/ai-cancer-prognosis\n", + "https://news.stanford.edu/stories/2025/01/guaranteed-income-can-lower-household-spending-while-reducing-debt\n", + "https://news.stanford.edu/stories/2025/01/guaranteed-income-can-lower-household-spending-while-reducing-debt\n", + "https://news.stanford.edu/stories/2025/01/type-2-diabetes\n", + "https://news.stanford.edu/stories/2025/01/type-2-diabetes\n", + "https://news.stanford.edu/stories/2025/01/report-outlines-stanford-principles-for-use-of-ai\n", + "https://news.stanford.edu/stories/2025/01/report-outlines-stanford-principles-for-use-of-ai\n", + "https://news.stanford.edu/stories/2024/12/A-5-books-to-help-you-disagree-productively\n", + "https://news.stanford.edu/stories/2024/12/A-5-books-to-help-you-disagree-productively\n", + "https://news.stanford.edu/\n", + "https://undergrad.stanford.edu/\n", + "https://vpge.stanford.edu/\n", + "https://lifelonglearning.stanford.edu/\n", + "http://med.stanford.edu/\n", + "http://www.law.stanford.edu/\n", + "http://humsci.stanford.edu/\n", + "http://engineering.stanford.edu/\n", + "http://ed.stanford.edu/\n", + "https://sustainability.stanford.edu/\n", + "http://gsb.stanford.edu/\n", + "https://www.stanford.edu/academics\n", + "https://news.stanford.edu/stories/2024/05/meet-our-faculty-tadashi-tokieda\n", + "https://www.stanford.edu/research\n", + "http://events.stanford.edu\n", + "https://med.stanford.edu/\n", + "https://stanfordhealthcare.org/\n", + "https://stanfordchildrens.org/\n", + "https://www.stanford.edu/health-care/\n", + "https://news.stanford.edu/stories/2024/05/blending-disciplines-for-a-more-colorful-world\n", + "http://studentaffairs.stanford.edu/\n", + "http://arts.stanford.edu/\n", + "https://rec.stanford.edu/\n", + "https://www.stanford.edu/campus-life/\n", + "https://gostanford.com/sports/2017/5/22/home-of-champions.aspx\n", + "https://gostanford.com/news/2023/5/25/athletics-stanford-olympic-history.aspx\n", + "https://gostanford.com/sports/featured\n", + "https://gostanford.com/\n", + "https://www.stanford.edu/admission\n", + "https://www.facebook.com/stanford\n", + "https://twitter.com/stanford\n", + "https://www.instagram.com/stanford/\n", + "https://www.linkedin.com/school/stanford-university/\n", + "https://www.youtube.com/stanford\n", + "https://podcasts.apple.com/us/artist/stanford/1280771285\n", + "https://www.gsb.stanford.edu/\n", + "https://ed.stanford.edu/\n", + "https://engineering.stanford.edu/\n", + "https://humsci.stanford.edu/\n", + "https://law.stanford.edu/\n", + "https://med.stanford.edu/\n", + "https://sustainability.stanford.edu/\n", + "https://majors.stanford.edu/majors\n", + "https://gradadmissions.stanford.edu/explore-programs\n", + "https://www.stanford.edu/list/research/\n", + "http://library.stanford.edu/\n", + "https://stanfordhealthcare.org/\n", + "https://www.stanfordchildrens.org/\n", + "https://online.stanford.edu/\n", + "https://facts.stanford.edu/\n", + "https://www.stanford.edu/about/history\n", + "https://wasc.stanford.edu/\n", + "https://admission.stanford.edu/\n", + "https://gradadmissions.stanford.edu\n", + "https://financialaid.stanford.edu/\n", + "https://campus-map.stanford.edu/\n", + "https://community.stanford.edu/\n", + "https://stanfordwho.stanford.edu/\n", + "https://profiles.stanford.edu/\n", + "https://www.stanford.edu/admission\n", + "https://visit.stanford.edu/\n", + "https://giving.stanford.edu/\n", + "https://careersearch.stanford.edu/\n", + "http://facultypositions.stanford.edu/\n", + "https://www.stanford.edu/contact\n", + "https://www.stanford.edu/\n", + "https://www.stanford.edu/\n", + "https://visit.stanford.edu/plan/\n", + "https://www.stanford.edu/search/\n", + "https://emergency.stanford.edu/\n", + "https://www.stanford.edu/site/terms/\n", + "https://www.stanford.edu/site/privacy\n", + "https://uit.stanford.edu/security/copyright-infringement\n", + "https://adminguide.stanford.edu/chapter-1/subchapter-5/policy-1-5-4\n", + "https://studentservices.stanford.edu/more-resources/student-policies/non-academic/non-discrimination\n", + "https://www.stanford.edu/site/accessibility/\n" + ] + } + ], "source": [ "print(get_links_user_prompt(ed))" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 109, "id": "a29aca19-ca13-471c-a4b4-5abbfa813f69", "metadata": {}, "outputs": [], "source": [ - "def get_links(url):\n", - " website = Website(url)\n", - " response = openai.chat.completions.create(\n", - " model=MODEL,\n", - " messages=[\n", - " {\"role\": \"system\", \"content\": link_system_prompt},\n", - " {\"role\": \"user\", \"content\": get_links_user_prompt(website)}\n", - " ],\n", - " response_format={\"type\": \"json_object\"}\n", - " )\n", - " result = response.choices[0].message.content\n", - " return json.loads(result)" + "# def get_links(url):\n", + "# website = Website(url)\n", + "# response = openai.chat.completions.create(\n", + "# model=MODEL,\n", + "# messages=[\n", + "# {\"role\": \"system\", \"content\": link_system_prompt},\n", + "# {\"role\": \"user\", \"content\": get_links_user_prompt(website)}\n", + "# ],\n", + "# response_format={\"type\": \"json_object\"}\n", + "# )\n", + "# result = response.choices[0].message.content\n", + "# return json.loads(result)\n", + "\n", + "\n", + "def get_links(url, industry_type=None):\n", + " try:\n", + " website = Website(url)\n", + " user_prompt = get_links_user_prompt(website)\n", + " \n", + " # Add industry context if provided\n", + " if industry_type:\n", + " user_prompt += f\"\\nThis is a {industry_type} company website.\"\n", + " \n", + " response = openai.chat.completions.create(\n", + " model=MODEL,\n", + " messages=[\n", + " {\"role\": \"system\", \"content\": link_system_prompt},\n", + " {\"role\": \"user\", \"content\": user_prompt}\n", + " ],\n", + " response_format={\"type\": \"json_object\"}\n", + " )\n", + " result = response.choices[0].message.content\n", + " return json.loads(result)\n", + " except Exception as e:\n", + " print(f\"Error processing links: {str(e)}\")\n", + " return {\"links\": []} # Return empty list in case of error\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 110, "id": "74a827a0-2782-4ae5-b210-4a242a8b4cc2", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "['#main-content',\n", + " 'https://www.stanford.edu/',\n", + " 'https://www.stanford.edu/student-gateway/',\n", + " 'https://www.stanford.edu/faculty-staff-gateway/',\n", + " 'http://parents.stanford.edu/',\n", + " 'https://visit.stanford.edu',\n", + " 'http://alumni.stanford.edu/',\n", + " 'https://www.stanford.edu/news/',\n", + " 'https://www.stanford.edu/events/',\n", + " 'https://www.stanford.edu/academics/',\n", + " 'https://www.stanford.edu/research/',\n", + " 'https://www.stanford.edu/health-care/',\n", + " 'https://www.stanford.edu/campus-life/',\n", + " 'https://www.stanford.edu/admission/',\n", + " 'https://www.stanford.edu/about/',\n", + " 'https://campus-map.stanford.edu/',\n", + " 'https://profiles.stanford.edu/',\n", + " '#main-content',\n", + " 'https://www.stanford.edu/about/',\n", + " 'https://news.stanford.edu/stories/2025/01/assessing-wildfire-health-risks',\n", + " 'https://news.stanford.edu/stories/2025/01/assessing-wildfire-health-risks',\n", + " 'https://news.stanford.edu/stories/2025/01/ai-cancer-prognosis',\n", + " 'https://news.stanford.edu/stories/2025/01/ai-cancer-prognosis',\n", + " 'https://news.stanford.edu/stories/2025/01/guaranteed-income-can-lower-household-spending-while-reducing-debt',\n", + " 'https://news.stanford.edu/stories/2025/01/guaranteed-income-can-lower-household-spending-while-reducing-debt',\n", + " 'https://news.stanford.edu/stories/2025/01/type-2-diabetes',\n", + " 'https://news.stanford.edu/stories/2025/01/type-2-diabetes',\n", + " 'https://news.stanford.edu/stories/2025/01/report-outlines-stanford-principles-for-use-of-ai',\n", + " 'https://news.stanford.edu/stories/2025/01/report-outlines-stanford-principles-for-use-of-ai',\n", + " 'https://news.stanford.edu/stories/2024/12/A-5-books-to-help-you-disagree-productively',\n", + " 'https://news.stanford.edu/stories/2024/12/A-5-books-to-help-you-disagree-productively',\n", + " 'https://news.stanford.edu/',\n", + " 'https://undergrad.stanford.edu/',\n", + " 'https://vpge.stanford.edu/',\n", + " 'https://lifelonglearning.stanford.edu/',\n", + " 'http://med.stanford.edu/',\n", + " 'http://www.law.stanford.edu/',\n", + " 'http://humsci.stanford.edu/',\n", + " 'http://engineering.stanford.edu/',\n", + " 'http://ed.stanford.edu/',\n", + " 'https://sustainability.stanford.edu/',\n", + " 'http://gsb.stanford.edu/',\n", + " '/academics',\n", + " 'https://news.stanford.edu/stories/2024/05/meet-our-faculty-tadashi-tokieda',\n", + " '/research',\n", + " 'http://events.stanford.edu',\n", + " 'https://med.stanford.edu/',\n", + " 'https://stanfordhealthcare.org/',\n", + " 'https://stanfordchildrens.org/',\n", + " '/health-care/',\n", + " 'https://news.stanford.edu/stories/2024/05/blending-disciplines-for-a-more-colorful-world',\n", + " 'http://studentaffairs.stanford.edu/',\n", + " 'http://arts.stanford.edu/',\n", + " 'https://rec.stanford.edu/',\n", + " '/campus-life/',\n", + " 'https://gostanford.com/sports/2017/5/22/home-of-champions.aspx',\n", + " 'https://gostanford.com/news/2023/5/25/athletics-stanford-olympic-history.aspx',\n", + " 'https://gostanford.com/sports/featured',\n", + " 'https://gostanford.com/',\n", + " '/admission',\n", + " 'https://www.facebook.com/stanford',\n", + " 'https://twitter.com/stanford',\n", + " 'https://www.instagram.com/stanford/',\n", + " 'https://www.linkedin.com/school/stanford-university/',\n", + " 'https://www.youtube.com/stanford',\n", + " 'https://podcasts.apple.com/us/artist/stanford/1280771285',\n", + " 'https://www.gsb.stanford.edu/',\n", + " 'https://ed.stanford.edu/',\n", + " 'https://engineering.stanford.edu/',\n", + " 'https://humsci.stanford.edu/',\n", + " 'https://law.stanford.edu/',\n", + " 'https://med.stanford.edu/',\n", + " 'https://sustainability.stanford.edu/',\n", + " 'https://majors.stanford.edu/majors',\n", + " 'https://gradadmissions.stanford.edu/explore-programs',\n", + " '/list/research/',\n", + " 'http://library.stanford.edu/',\n", + " 'https://stanfordhealthcare.org/',\n", + " 'https://www.stanfordchildrens.org/',\n", + " 'https://online.stanford.edu/',\n", + " 'https://facts.stanford.edu/',\n", + " '/about/history',\n", + " 'https://wasc.stanford.edu/',\n", + " 'https://admission.stanford.edu/',\n", + " 'https://gradadmissions.stanford.edu',\n", + " 'https://financialaid.stanford.edu/',\n", + " 'https://campus-map.stanford.edu/',\n", + " 'https://community.stanford.edu/',\n", + " 'https://stanfordwho.stanford.edu/',\n", + " 'https://profiles.stanford.edu/',\n", + " '/admission',\n", + " 'https://visit.stanford.edu/',\n", + " 'https://giving.stanford.edu/',\n", + " 'https://careersearch.stanford.edu/',\n", + " 'http://facultypositions.stanford.edu/',\n", + " '/contact',\n", + " '/',\n", + " '/',\n", + " 'https://visit.stanford.edu/plan/',\n", + " '/search/',\n", + " 'https://emergency.stanford.edu/',\n", + " '/site/terms/',\n", + " '/site/privacy',\n", + " 'https://uit.stanford.edu/security/copyright-infringement',\n", + " 'https://adminguide.stanford.edu/chapter-1/subchapter-5/policy-1-5-4',\n", + " 'https://studentservices.stanford.edu/more-resources/student-policies/non-academic/non-discrimination',\n", + " '/site/accessibility/']" + ] + }, + "execution_count": 110, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "# Anthropic has made their site harder to scrape, so I'm using HuggingFace..\n", "\n", - "huggingface = Website(\"https://huggingface.co\")\n", + "huggingface = Website(\"https://stanford.com\")\n", "huggingface.links" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 111, "id": "d3d583e2-dcc4-40cc-9b28-1e8dbf402924", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "{'links': [{'type': 'homepage', 'url': 'https://standord.com/'},\n", + " {'type': 'about page', 'url': 'https://standord.com/about'},\n", + " {'type': 'publications page', 'url': 'https://standord.com/publications'},\n", + " {'type': 'approach page', 'url': 'https://standord.com/approach'},\n", + " {'type': 'contact page', 'url': 'https://standord.com/contact-us'}]}" + ] + }, + "execution_count": 111, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "get_links(\"https://huggingface.co\")" + "get_links(\"https://standord.com\")" ] }, { @@ -239,42 +804,2278 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 112, "id": "85a5b6e2-e7ef-44a9-bc7f-59ede71037b5", "metadata": {}, "outputs": [], "source": [ - "def get_all_details(url):\n", + "# def get_all_details(url):\n", + "# result = \"Landing page:\\n\"\n", + "# result += Website(url).get_contents()\n", + "# links = get_links(url)\n", + "# print(\"Found links:\", links)\n", + "# for link in links[\"links\"]:\n", + "# result += f\"\\n\\n{link['type']}\\n\"\n", + "# result += Website(link[\"url\"]).get_contents()\n", + "# return result\n", + "\n", + "\n", + "def get_all_details(url, industry_type=None):\n", " result = \"Landing page:\\n\"\n", " result += Website(url).get_contents()\n", - " links = get_links(url)\n", - " print(\"Found links:\", links)\n", + " links = get_links(url, industry_type)\n", + " print(\"Found links:\", json.dumps(links, indent=2))\n", + " \n", " for link in links[\"links\"]:\n", - " result += f\"\\n\\n{link['type']}\\n\"\n", - " result += Website(link[\"url\"]).get_contents()\n", + " try:\n", + " result += f\"\\n\\n{link['type']}\\n\"\n", + " result += Website(link[\"url\"]).get_contents()\n", + " except Exception as e:\n", + " print(f\"Error processing link {link['url']}: {str(e)}\")\n", + " continue\n", + " \n", " return result" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 113, "id": "5099bd14-076d-4745-baf3-dac08d8e5ab2", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Found links: {\n", + " \"links\": [\n", + " {\n", + " \"type\": \"university overview\",\n", + " \"url\": \"https://www.stanford.edu/about/\"\n", + " },\n", + " {\n", + " \"type\": \"academic programs\",\n", + " \"url\": \"https://www.stanford.edu/academics/\"\n", + " },\n", + " {\n", + " \"type\": \"admissions\",\n", + " \"url\": \"https://www.stanford.edu/admission/\"\n", + " },\n", + " {\n", + " \"type\": \"research\",\n", + " \"url\": \"https://www.stanford.edu/research/\"\n", + " },\n", + " {\n", + " \"type\": \"campus life\",\n", + " \"url\": \"https://www.stanford.edu/campus-life/\"\n", + " },\n", + " {\n", + " \"type\": \"health care\",\n", + " \"url\": \"https://www.stanford.edu/health-care/\"\n", + " },\n", + " {\n", + " \"type\": \"events\",\n", + " \"url\": \"https://www.stanford.edu/events/\"\n", + " },\n", + " {\n", + " \"type\": \"news\",\n", + " \"url\": \"https://www.stanford.edu/news/\"\n", + " },\n", + " {\n", + " \"type\": \"alumni\",\n", + " \"url\": \"http://alumni.stanford.edu/\"\n", + " },\n", + " {\n", + " \"type\": \"student resources\",\n", + " \"url\": \"https://undergrad.stanford.edu/\"\n", + " }\n", + " ]\n", + "}\n", + "Landing page:\n", + "Webpage Title:\n", + "Stanford University\n", + "Webpage Contents:\n", + "Skip to content\n", + "Stanford University\n", + "Information for:\n", + "Students\n", + "Faculty & Staff\n", + "Families\n", + "Visitors\n", + "Alumni\n", + "Search\n", + "Menu\n", + "News\n", + "Events\n", + "Academics\n", + "Research\n", + "Health Care\n", + "Campus Life\n", + "Admission\n", + "About\n", + "Search term\n", + "Search Stanford:\n", + "Web\n", + "People\n", + "Search Web\n", + "Other ways to search:\n", + "Map\n", + "Profiles\n", + "Stanford\n", + "Explore Stanford\n", + "Main Content\n", + "A Societal Mission\n", + "Stanford was founded almost 150 years ago on a bedrock of societal purpose. Our mission is to contribute to the world by educating students for lives of leadership and contribution with integrity; advancing fundamental knowledge and cultivating creativity; leading in pioneering research for effective clinical therapies; and accelerating solutions and amplifying their impact.\n", + "More about Stanford\n", + "Campus News\n", + "Stories about people, research, and innovation across the Farm\n", + "Earth & Climate\n", + "What we know about the health effects of wildfire\n", + "Health & Medicine\n", + "New AI model predicts cancer prognosis, response to treatment\n", + "Economics\n", + "Guaranteed income can lower household spending while reducing debt\n", + "Health & Medicine\n", + "AI helps identify the biology underlying Type 2 diabetes\n", + "Institutional News\n", + "Report outlines Stanford principles for use of AI\n", + "Social Sciences\n", + "Five books to help you disagree productively in 2025\n", + "More campus news\n", + "Academics\n", + "Preparing students to make meaningful contributions to society as engaged citizens and leaders in a complex world\n", + "Undergraduate Education\n", + "Rich learning experiences that provide a broad liberal arts foundation and deep subject-area expertise\n", + "Undergraduate Education\n", + "Graduate Education\n", + "Unsurpassed opportunities to participate in the advancement of entire fields of knowledge\n", + "Graduate education\n", + "Driving impact\n", + "Continuing adult education, executive and professional programs, and programs for K-12 students\n", + "Lifelong Learning\n", + "Seven schools in which to pursue your passions\n", + "Medicine\n", + "Law\n", + "Humanities & Sciences\n", + "Engineering\n", + "Education\n", + "Sustainability\n", + "Business\n", + "More about academics\n", + "Profile of Tadashi Tokieda\n", + "“When I ‘decided’ to become a mathematician, it was not a decision. I could not do otherwise. You don’t decide to fall in love with somebody. It just happens.”\n", + "Tadashi Tokieda\n", + "Professor (Teaching) of Mathematics\n", + "More\n", + "Research\n", + "Driving discoveries vital to our world, our health, and our intellectual life\n", + "15 Institutes\n", + "cross disciplinary boundaries\n", + "20 Libraries\n", + "hold over 12 million items\n", + "$1.98 Billion\n", + "sponsored research budget\n", + "More about research\n", + "Upcoming Events\n", + "More events\n", + "Health Care\n", + "Advancing human health through innovative research, education, and care\n", + "Stanford Medicine\n", + "Leading a worldwide revolution in precision health through biomedical research, education, and clinical enterprises\n", + "Stanford Medicine\n", + "Stanford Health Care\n", + "Leveraging expertise and advanced technology  to deliver unparalleled care for each patient’s unique needs\n", + "Stanford Health Care\n", + "Stanford Children’s Health\n", + "The only health care network in the Bay Area – and one of the few in the country – exclusively dedicated to pediatric and obstetric care\n", + "Stanford Children’s Health\n", + "More about health care\n", + "Profile of Yannie Tan\n", + "“I think about all the projects that students throw themselves at quarter after quarter, just really expanding and stretching their minds. … Stanford allows you to experience evolutions of yourself.”\n", + "Yannie Tan\n", + "Class of 2024\n", + "More\n", + "Campus Life\n", + "Building a vibrant community of creative and accomplished people from around the world\n", + "Student Life\n", + "A residential campus with diverse housing, exceptional dining, and over 600 student organizations\n", + "Student Affairs\n", + "Arts & Culture\n", + "A rich tradition of fostering creativity and a vibrant arts district on campus\n", + "Stanford Arts\n", + "Recreation & Wellness\n", + "State-of-the-art facilities and fitness programs to encourage movement and play\n", + "Recreation & Wellness\n", + "More about campus life\n", + "Athletics\n", + "Providing student-athletes the opportunity to achieve excellence both in competition and in the classroom\n", + "Home of Champions\n", + "Stanford’s 136 NCAA championships are the most for any university, a product of an unrivaled culture of excellence and continued support from the campus community\n", + "National Championships\n", + "Olympic Excellence\n", + "The Cardinal has produced at least one medalist in every Olympics in which the U.S. has competed since 1912, totaling 335 medals from 196 medalists\n", + "Medals\n", + "Multidimensional Impact\n", + "Stanford student-athletes have achieved local, national, and global impact through community involvement and advocacy\n", + "Athlete Stories\n", + "More about athletics\n", + "Admission\n", + "Offering extraordinary freedom to explore, to collaborate, and to challenge yourself\n", + "Explore the possibilities of a Stanford education as you map out your college journey.\n", + "We look for distinctive students who exhibit an abundance of energy and curiosity in their classes, activities, projects, research, and lives.\n", + "Stanford meets the full financial need of every admitted undergrad who qualifies for assistance.\n", + "More than two-thirds of undergrads receive some form of financial assistance. Generally, tuition is covered for families with incomes below $150,000.\n", + "More about admission\n", + "Facebook\n", + "Twitter\n", + "Instagram\n", + "LinkedIn\n", + "YouTube\n", + "iTunes U\n", + "Schools\n", + "Business\n", + "Education\n", + "Engineering\n", + "Humanities & Sciences\n", + "Law\n", + "Medicine\n", + "Sustainability\n", + "Academics\n", + "Undergraduate Majors\n", + "Graduate Programs\n", + "Research\n", + "Research Centers A\n", + "-\n", + "to\n", + "Z\n", + "Libraries\n", + "Health Care\n", + "Stanford Health Care\n", + "Stanford Children's Health\n", + "Online Learning\n", + "Stanford Online\n", + "About Stanford\n", + "Facts\n", + "History\n", + "Accreditation\n", + "Admission\n", + "Undergraduate\n", + "Graduate\n", + "Financial Aid\n", + "Resources\n", + "Campus Map\n", + "Community Engagement\n", + "Directory\n", + "Stanford Profiles\n", + "Applying\n", + "Visiting\n", + "Giving\n", + "Careers\n", + "Faculty Positions\n", + "Contact\n", + "Stanford\n", + "University\n", + "Stanford Home\n", + "Maps & Directions\n", + "Search Stanford\n", + "Emergency Info\n", + "Terms of Use\n", + "Privacy\n", + "Copyright\n", + "Trademarks\n", + "Non-Discrimination\n", + "Accessibility\n", + "©\n", + "Copyright\n", + "Stanford University\n", + ".\n", + "Stanford\n", + ",\n", + "California\n", + "94305\n", + ".\n", + "\n", + "\n", + "\n", + "university overview\n", + "Webpage Title:\n", + "A Societal Mission – Stanford University\n", + "Webpage Contents:\n", + "Skip to content\n", + "Stanford University\n", + "Information for:\n", + "Students\n", + "Faculty & Staff\n", + "Families\n", + "Visitors\n", + "Alumni\n", + "Search\n", + "Menu\n", + "News\n", + "Events\n", + "Academics\n", + "Research\n", + "Health Care\n", + "Campus Life\n", + "Admission\n", + "About\n", + "Search term\n", + "Search Stanford:\n", + "Web\n", + "People\n", + "Search Web\n", + "Other ways to search:\n", + "Map\n", + "Profiles\n", + "Main Content\n", + "A Societal Mission\n", + "Stanford was founded almost 150 years ago on a bedrock of societal purpose. Our mission is to contribute to the world by educating students for lives of leadership and contribution with integrity; advancing fundamental knowledge and cultivating creativity; leading in pioneering research for effective clinical therapies; and accelerating solutions and amplifying their impact.\n", + "Excellence in research, teaching, and medical care\n", + "Who we are\n", + "What drives our faculty, students, and staff is a spirit of possibility, a legacy inherited from our pioneering founders who created Stanford in the memory of their only child to benefit other people’s children. At Stanford, we learn from our past but focus on the future, continually looking for new ways to make the world a better place.\n", + "We believe strongly in the role that higher education plays in supporting a thriving society. Colleges and universities not only prepare students for their chosen path, but they help create the next generation of citizen leaders and problem solvers. Higher education institutions pursue a distinct and enduring mission in our society, dedicated solely to the creation and dissemination of knowledge. The breadth and richness of the fabric that comprises the world’s institutions of higher learning are integral to long-term human advancement and well-being.\n", + "Educating tomorrow’s global citizens\n", + "Stanford provides students the opportunity to engage with big ideas, to cross conceptual and disciplinary boundaries, and to become global citizens who embrace diversity of thought and experience. We offer students broad and deep academic programs across seven schools and multiple fields – including the arts and humanities, natural and social sciences, engineering, sustainability, medicine, law, education, and business. The university’s breadth of excellence and culture of innovation uniquely position it to attract and retain the best faculty in the world, who offer students the knowledge and tools to discover and embrace new ideas, and to prepare for successful careers and lives of service. The need for strong ethical principles to achieve a common good is embedded across our educational offerings. Stanford’s distinguished alumni network and highly engaged alumni community provide students with lifelong access to mentors and peers, who help to create partnerships with the world beyond campus, once again enhancing the collective contributions of our community.\n", + "Learn more about academics\n", + "Creating knowledge in an environment of academic freedom\n", + "Unfettered inquiry is the foundation of research and education. Driven by a deep belief in academic freedom, we continually pose questions and develop new ideas to advance knowledge. Fundamental, curiosity-driven research is central to the university’s mission, and students have extensive opportunities to join Stanford scholars in research that develops new knowledge and deepens understanding of ourselves and the world around us. A hallmark of Stanford is our extensive and vibrant ecosystem of interdisciplinary research. With all seven of Stanford’s schools located on our historic campus and many institutes serving as a hub for collaboration across academic fields, the opportunities for disruptive breakthroughs are numerous and the results are evident. Stanford has had 36 Nobel Prize winners since the university’s founding and is tied among research universities for the most Nobel Prizes won since 2000. We are equally purposeful in thinking actively about the ethical implications of our research and its application in the broader world.\n", + "Learn more about research\n", + "Rapidly advancing knowledge into application\n", + "Building on our culture of interdisciplinary collaboration that drives discovery and innovation, the university is creating “accelerators” to readily support university researchers with funding, infrastructure, technological resources, and external partners so that discoveries made at Stanford can become solutions with impact far beyond campus.\n", + "Examples include the Innovative Medicines Accelerator, dedicated to reducing the time and cost of making medicines while ensuring more effective treatments are reaching patients, and the Sustainability Accelerator within the Stanford Doerr of Sustainability, the university’s first new school in 70 years and a testament to its commitment to being a leader on climate-related research and education. Work is also ongoing within Stanford’s Graduate School of Education to accelerate more effective and equitable learning solutions, and at the Stanford Impact Labs, which creates an innovative research and development pipeline for the social sciences.\n", + "Learn more about the Sustainability Accelerator\n", + "Excellence in clinical care\n", + "Our medical enterprise, Stanford Medicine, provides access to unparalleled patient care across the San Francisco Bay Area, while its world-class researchers make groundbreaking discoveries that advance medical care across the globe. Comprising the School of Medicine, Stanford Health Care, and Stanford Children’s Health, our medical enterprise focuses on predicting, preventing, and curing disease by tailoring health care to the unique biology and life circumstance of each of us. Stanford Medicine enjoys both physical proximity and strong research ties to the university’s other schools, allowing for strong partnerships among world-class faculty that accelerate tangible health benefits for patients.\n", + "Learn more about Stanford Medicine\n", + "Access\n", + "A deep respect for diversity in all its forms\n", + "Stanford values diversity in background, experience, interests and perspectives. We see to cultivate a campus environment in which all students have the opportunity to learn from each other’s experiences and to think critically about their own views and preconceptions. The university seeks to provide all students with the opportunity and tools to build community and connection across the racial, socioeconomic, geographical, and political lines that often present barriers to greater understanding, mutual respect, and authentic friendship. Opportunities to foster social responsibility and an abiding appreciation for ethics are integral to the Stanford educational experience.\n", + "Learn more about admission\n", + "Financial support that makes a difference\n", + "We strive to support each student in accessing the full amount of financial aid needed to thrive at Stanford. This commitment to financial equity changes not only the lives of students who receive it, but also the education of those who learn alongside them. Nearly 70 percent of Stanford undergraduates receive some form of financial aid, and those from lower-income families have their tuition, room, and board provided for in full. More than 80 percent of those who receive an undergraduate degree from Stanford graduate with no debt.\n", + "Learn more about financial aid\n", + "Community\n", + "A thriving student life\n", + "A flourishing residential campus is an integral part of the world-class educational experience Stanford offers. Stanford is home to a community of creative and accomplished people from around the world, from acapella singers to Olympic athletes. Students can choose from among more than 600 student organizations to become involved in, ranging from religious, ethnic, and cultural groups to organizations focusing on the arts and community service, to social, athletic, and recreational activities. And Stanford offers 36 varsity sports – 20 for women and 16 for men – in addition to campus-wide physical education academic classes, fitness and wellness, aquatics, intramurals, adventure programming, and 43 club sports.\n", + "Learn more about campus life\n", + "Strong relationships with our neighbors\n", + "Stanford is proud to be a citizen of Silicon Valley and the Bay Area. We engage and build meaningful relationships with our neighbors through events, public exhibitions and performances in the arts, lectures, and lifelong learning, both on campus and online. We support local parents with access to health information, help K-12 teachers increase interest and involvement in math and science, and provide the local business community with access to lectures by today’s entrepreneurial thought leaders. And our medical enterprise, Stanford Health Care, provides access to unparalleled patient care across the Bay Area, while its world-class researchers make groundbreaking discoveries that advance medical care across the globe.\n", + "Learn more about community engagement\n", + "Learn more\n", + "Stanford was founded in 1885 by California senator Leland Stanford and his wife, Jane, “to promote the public welfare by exercising an influence in behalf of humanity and civilization.” The university is governed by a Board of Trustees, President, Provost, Academic Council and a number of other academic and administrative officers.\n", + "Leadership and Governance\n", + "Our History\n", + "Facebook\n", + "Twitter\n", + "Instagram\n", + "LinkedIn\n", + "YouTube\n", + "iTunes U\n", + "Schools\n", + "Business\n", + "Education\n", + "Engineering\n", + "Humanities & Sciences\n", + "Law\n", + "Medicine\n", + "Sustainability\n", + "Academics\n", + "Undergraduate Majors\n", + "Graduate Programs\n", + "Research\n", + "Research Centers A\n", + "-\n", + "to\n", + "Z\n", + "Libraries\n", + "Health Care\n", + "Stanford Health Care\n", + "Stanford Children's Health\n", + "Online Learning\n", + "Stanford Online\n", + "About Stanford\n", + "Facts\n", + "History\n", + "Accreditation\n", + "Admission\n", + "Undergraduate\n", + "Graduate\n", + "Financial Aid\n", + "Resources\n", + "Campus Map\n", + "Community Engagement\n", + "Directory\n", + "Stanford Profiles\n", + "Applying\n", + "Visiting\n", + "Giving\n", + "Careers\n", + "Faculty Positions\n", + "Contact\n", + "Stanford\n", + "University\n", + "Stanford Home\n", + "Maps & Directions\n", + "Search Stanford\n", + "Emergency Info\n", + "Terms of Use\n", + "Privacy\n", + "Copyright\n", + "Trademarks\n", + "Non-Discrimination\n", + "Accessibility\n", + "©\n", + "Copyright\n", + "Stanford University\n", + ".\n", + "Stanford\n", + ",\n", + "California\n", + "94305\n", + ".\n", + "\n", + "\n", + "\n", + "academic programs\n", + "Webpage Title:\n", + "Academics – Stanford University\n", + "Webpage Contents:\n", + "Skip to content\n", + "Stanford University\n", + "Information for:\n", + "Students\n", + "Faculty & Staff\n", + "Families\n", + "Visitors\n", + "Alumni\n", + "Search\n", + "Menu\n", + "News\n", + "Events\n", + "Academics\n", + "Research\n", + "Health Care\n", + "Campus Life\n", + "Admission\n", + "About\n", + "Search term\n", + "Search Stanford:\n", + "Web\n", + "People\n", + "Search Web\n", + "Other ways to search:\n", + "Map\n", + "Profiles\n", + "Main Content\n", + "Academics\n", + "Stanford students create and apply knowledge by thinking and doing, preparing for leadership in a rapidly changing world.\n", + "2,323\n", + "Faculty members\n", + "6:1\n", + "Student-to-faculty ratio\n", + "Nearly 200\n", + "Graduate fields of study\n", + "Undergraduate Studies\n", + "Undergraduate Education\n", + "Stanford Undergrad is your guide to undergraduate academics and opportunities run by the Vice Provost for Undergraduate Education.\n", + "Stanford Undergrad\n", + "Majors\n", + "Explore the 66 major fields of undergraduate study at Stanford.\n", + "Explore Majors\n", + "Undergraduate Facts & Figures\n", + "Approximately 7,800 undergraduate students attend Stanford. Learn more about the undergraduate program and student body.\n", + "Facts about the Undergraduate Program\n", + "Seven schools on one campus offer students boundless opportunities to pursue their passions and collaborate on solving complex global problems.\n", + "Learn more about our seven schools\n", + "Graduate Studies\n", + "Office of the Vice Provost for Graduate Education\n", + "The VPGE office works collaboratively across the University to ensure that every graduate student has the best possible education.\n", + "Graduate Education\n", + "Graduate Facts & Figures\n", + "Today, 9,688 students are pursuing 14 distinct postbaccalaureate degrees in nearly 200 graduate programs in all seven of Stanford’s schools. Learn more about graduate studies at Stanford.\n", + "Facts about Graduate Studies\n", + "Lifelong Learning\n", + "From Pre-K to College\n", + "Stanford offers a variety of educational and enrichment opportunities for young children through high schoolers and community college students. Offerings include STEM programs for all ages, classes for parents of infants to teens, an entire online high school, and internships.\n", + "Pre-K to College\n", + "Professional Development\n", + "Learn from our expert faculty as you grow your knowledge in your professional sphere or prepare to pivot into a new career.\n", + "Professional Development\n", + "Learning for Exploration and Enrichment\n", + "No matter where you live or work, Stanford offers learning opportunities that empower you to feed your curiosity, seek meaning, and engage wholeheartedly in the world.\n", + "Learning for Exploration and Enrichment\n", + "Facebook\n", + "Twitter\n", + "Instagram\n", + "LinkedIn\n", + "YouTube\n", + "iTunes U\n", + "Schools\n", + "Business\n", + "Education\n", + "Engineering\n", + "Humanities & Sciences\n", + "Law\n", + "Medicine\n", + "Sustainability\n", + "Academics\n", + "Undergraduate Majors\n", + "Graduate Programs\n", + "Research\n", + "Research Centers A\n", + "-\n", + "to\n", + "Z\n", + "Libraries\n", + "Health Care\n", + "Stanford Health Care\n", + "Stanford Children's Health\n", + "Online Learning\n", + "Stanford Online\n", + "About Stanford\n", + "Facts\n", + "History\n", + "Accreditation\n", + "Admission\n", + "Undergraduate\n", + "Graduate\n", + "Financial Aid\n", + "Resources\n", + "Campus Map\n", + "Community Engagement\n", + "Directory\n", + "Stanford Profiles\n", + "Applying\n", + "Visiting\n", + "Giving\n", + "Careers\n", + "Faculty Positions\n", + "Contact\n", + "Stanford\n", + "University\n", + "Stanford Home\n", + "Maps & Directions\n", + "Search Stanford\n", + "Emergency Info\n", + "Terms of Use\n", + "Privacy\n", + "Copyright\n", + "Trademarks\n", + "Non-Discrimination\n", + "Accessibility\n", + "©\n", + "Copyright\n", + "Stanford University\n", + ".\n", + "Stanford\n", + ",\n", + "California\n", + "94305\n", + ".\n", + "\n", + "\n", + "\n", + "admissions\n", + "Webpage Title:\n", + "Admission – Stanford University\n", + "Webpage Contents:\n", + "Skip to content\n", + "Stanford University\n", + "Information for:\n", + "Students\n", + "Faculty & Staff\n", + "Families\n", + "Visitors\n", + "Alumni\n", + "Search\n", + "Menu\n", + "News\n", + "Events\n", + "Academics\n", + "Research\n", + "Health Care\n", + "Campus Life\n", + "Admission\n", + "About\n", + "Search term\n", + "Search Stanford:\n", + "Web\n", + "People\n", + "Search Web\n", + "Other ways to search:\n", + "Map\n", + "Profiles\n", + "Main Content\n", + "Admission\n", + "Explore the possibilities of a Stanford education.\n", + "7,841\n", + "Undergraduate students\n", + "Class of 2027\n", + "from 76 countries + 49 states\n", + "9,688\n", + "Graduate students\n", + "Undergraduates\n", + "Undergraduate Admission\n", + "About 1,700 freshmen and 30 transfer students enroll at Stanford each year. We review each applicant with an eye to academic excellence, intellectual vitality, and personal context.\n", + "Undergraduate Admission\n", + "Undergraduate Financial Aid\n", + "Stanford meets the full financial need of every admitted undergrad who qualifies for assistance. Tuition is covered for undergrads with family incomes under $150,000. Tuition, room, and board are covered for undergrads with family incomes below $100,000.\n", + "Undergraduate Financial Aid\n", + "Profile of the Class of 2027\n", + "Class of 2027\n", + "Graduate Studies\n", + "Graduate Admission\n", + "More than 200 degree programs are offered across seven schools at Stanford. Admission requirements vary greatly among them.\n", + "Graduate Admissions\n", + "Financing Graduate Study\n", + "The cost of graduate study at Stanford — and the resources available for financial support — vary by degree, school and enrollment status. About 85% of Stanford graduate students receive financial assistance.\n", + "Graduate Student Funding\n", + "Vice Provost for Graduate Education\n", + "The Office of the Vice Provost for Graduate Education offers information for prospective students of the 200+ graduate degree programs offered at Stanford.\n", + "Information for Prospective Students\n", + "Financial Aid\n", + "We are committed to making a world-class education affordable.\n", + "About 65%\n", + "of students receive financial aid toward the cost of attendance\n", + "Tuition covered\n", + "for undergrads with family incomes below $150,000\n", + "Tuition, room, & board covered\n", + "for undergrads with family incomes below $100,000\n", + "Graduate aid available\n", + "based on available funds and academic merit\n", + "More About Financial Aid\n", + "Applying To Other Programs\n", + "Summer Session\n", + "High school students, current Stanford students, and other college students can all apply to participate in eight-week summer academic programs.\n", + "Summer Session\n", + "Lifelong Learning\n", + "Stanford offers valuable opportunities in continuing adult education, executive, and professional programs, and special programs for K-12 students.\n", + "Continuing Education Programs\n", + "Postdocs\n", + "Information for postdoctoral scholars seeking positions at Stanford University.\n", + "Postdoctoral Positions\n", + "Facebook\n", + "Twitter\n", + "Instagram\n", + "LinkedIn\n", + "YouTube\n", + "iTunes U\n", + "Schools\n", + "Business\n", + "Education\n", + "Engineering\n", + "Humanities & Sciences\n", + "Law\n", + "Medicine\n", + "Sustainability\n", + "Academics\n", + "Undergraduate Majors\n", + "Graduate Programs\n", + "Research\n", + "Research Centers A\n", + "-\n", + "to\n", + "Z\n", + "Libraries\n", + "Health Care\n", + "Stanford Health Care\n", + "Stanford Children's Health\n", + "Online Learning\n", + "Stanford Online\n", + "About Stanford\n", + "Facts\n", + "History\n", + "Accreditation\n", + "Admission\n", + "Undergraduate\n", + "Graduate\n", + "Financial Aid\n", + "Resources\n", + "Campus Map\n", + "Community Engagement\n", + "Directory\n", + "Stanford Profiles\n", + "Applying\n", + "Visiting\n", + "Giving\n", + "Careers\n", + "Faculty Positions\n", + "Contact\n", + "Stanford\n", + "University\n", + "Stanford Home\n", + "Maps & Directions\n", + "Search Stanford\n", + "Emergency Info\n", + "Terms of Use\n", + "Privacy\n", + "Copyright\n", + "Trademarks\n", + "Non-Discrimination\n", + "Accessibility\n", + "©\n", + "Copyright\n", + "Stanford University\n", + ".\n", + "Stanford\n", + ",\n", + "California\n", + "94305\n", + ".\n", + "\n", + "\n", + "\n", + "research\n", + "Webpage Title:\n", + "Research – Stanford University\n", + "Webpage Contents:\n", + "Skip to content\n", + "Stanford University\n", + "Information for:\n", + "Students\n", + "Faculty & Staff\n", + "Families\n", + "Visitors\n", + "Alumni\n", + "Search\n", + "Menu\n", + "News\n", + "Events\n", + "Academics\n", + "Research\n", + "Health Care\n", + "Campus Life\n", + "Admission\n", + "About\n", + "Search term\n", + "Search Stanford:\n", + "Web\n", + "People\n", + "Search Web\n", + "Other ways to search:\n", + "Map\n", + "Profiles\n", + "Main Content\n", + "Research\n", + "From Nobel Prize winners to undergraduates, all members of the Stanford community are engaged in the creation of knowledge.\n", + "15 Institutes\n", + "Cross interdisciplinary boundaries\n", + "20 Libraries\n", + "Hold over 12 million items\n", + "$1.98 Billion\n", + "Sponsored research budget\n", + "The Research Enterprise\n", + "Stanford’s culture of collaboration drives innovative discoveries in areas vital to our world, our health, and our intellectual life.\n", + "Interdisciplinary Research\n", + "At the intersection of disciplines is where new ideas emerge and innovative research happens.\n", + "Stanford Research\n", + "Institutes, Labs & Centers\n", + "Fifteen independent labs, centers, and institutes engage faculty and students from across the university.\n", + "Independent Laboratories, Centers and Institutes\n", + "Other Research Centers & Labs\n", + "Academic departments sponsor numerous other research centers and labs.\n", + "Listing of Stanford Research Centers\n", + "Where Research Happens\n", + "SLAC National Accelerator Laboratory\n", + "SLAC is a U.S. Department of Energy national laboratory operated by Stanford, conducting research in chemistry, materials and energy sciences, bioscience, fusion energy science, high-energy physics, cosmology and other fields.\n", + "SLAC National Accelerator Laboratory\n", + "Hoover Institution\n", + "The Hoover Institution, devoted to the study of domestic and international affairs, was founded in 1919 by Herbert Hoover, a member of Stanford’s pioneer class of 1895 and the 31st U.S. president.\n", + "Hoover Institution\n", + "Stanford Woods Institute for the Environment\n", + "Working toward a future in which societies meet people’s needs for water, food and health while protecting and nurturing the planet.\n", + "Stanford Woods Institute\n", + "Stanford Humanities Center\n", + "Advancing research into the historical, philosophical, literary, artistic, and cultural dimensions of the human experience.\n", + "Stanford Humanities Center\n", + "Stanford Bio-X\n", + "Biomedical and life science researchers, clinicians, engineers, physicists and computational scientists come together to unlock the secrets of the human body.\n", + "Stanford Bio-X\n", + "Freeman Spogli Institute for International Studies (FSI)\n", + "Understanding problems, policies and processes that cross borders and affect lives around the world.\n", + "Freeman Spogli Institute\n", + "More Research Centers\n", + "Libraries\n", + "Stanford University Libraries\n", + "Stanford is home to more than 20 individual libraries, each with a world-class collection of books, journals, films, maps and databases.\n", + "Stanford University Libraries\n", + "Online Catalog\n", + "SearchWorks is Stanford University Libraries’ official online search tool providing metadata about the 8 million+ resources in our physical and online collections.\n", + "SearchWorks\n", + "Undergraduate Research\n", + "Undergraduate Research and Independent Projects connects undergraduates with faculty to conduct research, advanced scholarship, and creative projects.\n", + "Undergraduate Research\n", + "Research Administration\n", + "The Office of the Vice Provost and Dean of Research, provides comprehensive information about the research enterprise at Stanford.\n", + "DoResearch\n", + "Find A Researcher\n", + "Search and read profiles of Stanford faculty, staff, students, and postdocs. Find researchers with whom you would like to collaborate.\n", + "Stanford Profiles\n", + "Facebook\n", + "Twitter\n", + "Instagram\n", + "LinkedIn\n", + "YouTube\n", + "iTunes U\n", + "Schools\n", + "Business\n", + "Education\n", + "Engineering\n", + "Humanities & Sciences\n", + "Law\n", + "Medicine\n", + "Sustainability\n", + "Academics\n", + "Undergraduate Majors\n", + "Graduate Programs\n", + "Research\n", + "Research Centers A\n", + "-\n", + "to\n", + "Z\n", + "Libraries\n", + "Health Care\n", + "Stanford Health Care\n", + "Stanford Children's Health\n", + "Online Learning\n", + "Stanford Online\n", + "About Stanford\n", + "Facts\n", + "History\n", + "Accreditation\n", + "Admission\n", + "Undergraduate\n", + "Graduate\n", + "Financial Aid\n", + "Resources\n", + "Campus Map\n", + "Community Engagement\n", + "Directory\n", + "Stanford Profiles\n", + "Applying\n", + "Visiting\n", + "Giving\n", + "Careers\n", + "Faculty Positions\n", + "Contact\n", + "Stanford\n", + "University\n", + "Stanford Home\n", + "Maps & Directions\n", + "Search Stanford\n", + "Emergency Info\n", + "Terms of Use\n", + "Privacy\n", + "Copyright\n", + "Trademarks\n", + "Non-Discrimination\n", + "Accessibility\n", + "©\n", + "Copyright\n", + "Stanford University\n", + ".\n", + "Stanford\n", + ",\n", + "California\n", + "94305\n", + ".\n", + "\n", + "\n", + "\n", + "campus life\n", + "Webpage Title:\n", + "Campus Life – Stanford University\n", + "Webpage Contents:\n", + "Skip to content\n", + "Stanford University\n", + "Information for:\n", + "Students\n", + "Faculty & Staff\n", + "Families\n", + "Visitors\n", + "Alumni\n", + "Search\n", + "Menu\n", + "News\n", + "Events\n", + "Academics\n", + "Research\n", + "Health Care\n", + "Campus Life\n", + "Admission\n", + "About\n", + "Search term\n", + "Search Stanford:\n", + "Web\n", + "People\n", + "Search Web\n", + "Other ways to search:\n", + "Map\n", + "Profiles\n", + "Main Content\n", + "Campus Life\n", + "Our thriving residential campus is home to a community of creative and accomplished people from around the world.\n", + "600+\n", + "Organized student groups\n", + "81\n", + "Undergraduate student residences\n", + "14,000+\n", + "Students living on campus\n", + "Student Life\n", + "Student Affairs\n", + "Comprising more than 25 offices and centers, Student Affairs provides a broad range of services and support to Stanford students, including leadership development, residential programs, public service, career exploration and community engagement.\n", + "Student Affairs\n", + "Housing & Dining\n", + "Nearly all undergraduates and about 72% of graduate students reside in 81 undergraduate student residences and 151 graduate on-campus residences. Nine dining halls, a teaching kitchen, and organic gardens provide the campus community with healthy, sustainable meals.\n", + "Residential & Dining Enterprises\n", + "Community Engagement & Diversity\n", + "Other programs supporting the student community:\n", + "Diversity Works\n", + "Haas Center for Public Service\n", + "Office for Religious & Spiritual Life\n", + "Graduate Life Office\n", + "Arts & Culture\n", + "The Arts at Stanford\n", + "Stanford has a rich tradition of fostering creativity and the arts. A vibrant campus “arts district” is situated along Palm Drive near the Oval.\n", + "The Arts at Stanford\n", + "Museums\n", + "The Stanford campus is home to two world-class art museums.\n", + "Cantor Center for the Visual Arts\n", + "Anderson Collection\n", + "Performing Arts\n", + "Stanford Live presents a wide range of performances and distinctive performing arts experiences.\n", + "Stanford Live\n", + "Athletics, Recreation, & Wellness\n", + "Recreation and Wellness\n", + "Students, faculty, and staff enjoy state-of-the-art recreational facilities and wellness programs.\n", + "Recreation & Wellness\n", + "Cardinal Athletics\n", + "Stanford students compete in 36 varsity sports and 43 club sports.\n", + "Cardinal Athletics\n", + "BeWell\n", + "Stanford offers incentives, programs, and activities that promote health and wellness.\n", + "Stanford BeWell\n", + "Getting Around\n", + "Biking is a popular way to get around campus. Transit options also include a free campus shuttle and car-share. Public Safety provides police and emergency services 24 hours a day.\n", + "Campus Map\n", + "Stanford Transportation\n", + "Public Safety\n", + "Facebook\n", + "Twitter\n", + "Instagram\n", + "LinkedIn\n", + "YouTube\n", + "iTunes U\n", + "Schools\n", + "Business\n", + "Education\n", + "Engineering\n", + "Humanities & Sciences\n", + "Law\n", + "Medicine\n", + "Sustainability\n", + "Academics\n", + "Undergraduate Majors\n", + "Graduate Programs\n", + "Research\n", + "Research Centers A\n", + "-\n", + "to\n", + "Z\n", + "Libraries\n", + "Health Care\n", + "Stanford Health Care\n", + "Stanford Children's Health\n", + "Online Learning\n", + "Stanford Online\n", + "About Stanford\n", + "Facts\n", + "History\n", + "Accreditation\n", + "Admission\n", + "Undergraduate\n", + "Graduate\n", + "Financial Aid\n", + "Resources\n", + "Campus Map\n", + "Community Engagement\n", + "Directory\n", + "Stanford Profiles\n", + "Applying\n", + "Visiting\n", + "Giving\n", + "Careers\n", + "Faculty Positions\n", + "Contact\n", + "Stanford\n", + "University\n", + "Stanford Home\n", + "Maps & Directions\n", + "Search Stanford\n", + "Emergency Info\n", + "Terms of Use\n", + "Privacy\n", + "Copyright\n", + "Trademarks\n", + "Non-Discrimination\n", + "Accessibility\n", + "©\n", + "Copyright\n", + "Stanford University\n", + ".\n", + "Stanford\n", + ",\n", + "California\n", + "94305\n", + ".\n", + "\n", + "\n", + "\n", + "health care\n", + "Webpage Title:\n", + "Health Care – Stanford University\n", + "Webpage Contents:\n", + "Skip to content\n", + "Stanford University\n", + "Information for:\n", + "Students\n", + "Faculty & Staff\n", + "Families\n", + "Visitors\n", + "Alumni\n", + "Search\n", + "Menu\n", + "News\n", + "Events\n", + "Academics\n", + "Research\n", + "Health Care\n", + "Campus Life\n", + "Admission\n", + "About\n", + "Search term\n", + "Search Stanford:\n", + "Web\n", + "People\n", + "Search Web\n", + "Other ways to search:\n", + "Map\n", + "Profiles\n", + "Main Content\n", + "Health Care\n", + "Clinical care, research, and education fuel innovation to advance human health.\n", + "1,600+\n", + "Faculty physicians\n", + "New adult hospital\n", + "Opened in 2019\n", + "540,000+\n", + "Annual pediatric visits to Stanford Children’s\n", + "Patient Care\n", + "We coordinate expertise with the most advanced treatments and technology for the best possible patient outcomes.\n", + "Stanford Health Care\n", + "Stanford Medicine delivers unparalleled care for each patient’s unique needs. Our multidisciplinary approach to health care coordinates expertise with the most advanced technology for the best possible outcomes.\n", + "Stanford Health Care\n", + "Stanford Children’s Health\n", + "Stanford Children’s Health is the only health care network in the Bay Area – and one of the few in the country – exclusively dedicated to pediatric and obstetric care.\n", + "Stanford Children's Health\n", + "Research\n", + "We are drawn to the difficult problems, the ones for which prevailing science does not yet have a framework to understand.\n", + "Medicine\n", + "Stanford Medicine scientists transform cancer cells into weapons against cancer\n", + "Medicine\n", + "Moms’ and babies’ medical data predicts prematurity complications\n", + "Medicine\n", + "Potential and pitfalls of smart toilets: Would you use one?\n", + "Medicine\n", + "Single drug injection wards off COVID-19 hospitalizations, in Stanford Medicine-led trial\n", + "More Stanford Medicine Research\n", + "Education\n", + "Our strength in interdisciplinary scholarship, our dedicated faculty, and a culture of innovation set the training ground for the next generation of biomedical leaders and pioneers.\n", + "Stanford School of Medicine\n", + "With easy access to world-class faculty and coursework in medical science as well as engineering, computer science, education, business, and the humanities, aspiring physicians and scientists can experiment across disciplines and customize their education to match their interests.\n", + "Stanford School of Medicine\n", + "Facebook\n", + "Twitter\n", + "Instagram\n", + "LinkedIn\n", + "YouTube\n", + "iTunes U\n", + "Schools\n", + "Business\n", + "Education\n", + "Engineering\n", + "Humanities & Sciences\n", + "Law\n", + "Medicine\n", + "Sustainability\n", + "Academics\n", + "Undergraduate Majors\n", + "Graduate Programs\n", + "Research\n", + "Research Centers A\n", + "-\n", + "to\n", + "Z\n", + "Libraries\n", + "Health Care\n", + "Stanford Health Care\n", + "Stanford Children's Health\n", + "Online Learning\n", + "Stanford Online\n", + "About Stanford\n", + "Facts\n", + "History\n", + "Accreditation\n", + "Admission\n", + "Undergraduate\n", + "Graduate\n", + "Financial Aid\n", + "Resources\n", + "Campus Map\n", + "Community Engagement\n", + "Directory\n", + "Stanford Profiles\n", + "Applying\n", + "Visiting\n", + "Giving\n", + "Careers\n", + "Faculty Positions\n", + "Contact\n", + "Stanford\n", + "University\n", + "Stanford Home\n", + "Maps & Directions\n", + "Search Stanford\n", + "Emergency Info\n", + "Terms of Use\n", + "Privacy\n", + "Copyright\n", + "Trademarks\n", + "Non-Discrimination\n", + "Accessibility\n", + "©\n", + "Copyright\n", + "Stanford University\n", + ".\n", + "Stanford\n", + ",\n", + "California\n", + "94305\n", + ".\n", + "\n", + "\n", + "\n", + "events\n", + "Webpage Title:\n", + "Upcoming Events – Stanford University\n", + "Webpage Contents:\n", + "Skip to content\n", + "Stanford University\n", + "Information for:\n", + "Students\n", + "Faculty & Staff\n", + "Families\n", + "Visitors\n", + "Alumni\n", + "Search\n", + "Menu\n", + "News\n", + "Events\n", + "Academics\n", + "Research\n", + "Health Care\n", + "Campus Life\n", + "Admission\n", + "About\n", + "Search term\n", + "Search Stanford:\n", + "Web\n", + "People\n", + "Search Web\n", + "Other ways to search:\n", + "Map\n", + "Profiles\n", + "Main Content\n", + "Upcoming Events\n", + "Explore opportunities to engage with people, ideas, art, and education across campus.\n", + "More Stanford Events\n", + "Facebook\n", + "Twitter\n", + "Instagram\n", + "LinkedIn\n", + "YouTube\n", + "iTunes U\n", + "Schools\n", + "Business\n", + "Education\n", + "Engineering\n", + "Humanities & Sciences\n", + "Law\n", + "Medicine\n", + "Sustainability\n", + "Academics\n", + "Undergraduate Majors\n", + "Graduate Programs\n", + "Research\n", + "Research Centers A\n", + "-\n", + "to\n", + "Z\n", + "Libraries\n", + "Health Care\n", + "Stanford Health Care\n", + "Stanford Children's Health\n", + "Online Learning\n", + "Stanford Online\n", + "About Stanford\n", + "Facts\n", + "History\n", + "Accreditation\n", + "Admission\n", + "Undergraduate\n", + "Graduate\n", + "Financial Aid\n", + "Resources\n", + "Campus Map\n", + "Community Engagement\n", + "Directory\n", + "Stanford Profiles\n", + "Applying\n", + "Visiting\n", + "Giving\n", + "Careers\n", + "Faculty Positions\n", + "Contact\n", + "Stanford\n", + "University\n", + "Stanford Home\n", + "Maps & Directions\n", + "Search Stanford\n", + "Emergency Info\n", + "Terms of Use\n", + "Privacy\n", + "Copyright\n", + "Trademarks\n", + "Non-Discrimination\n", + "Accessibility\n", + "©\n", + "Copyright\n", + "Stanford University\n", + ".\n", + "Stanford\n", + ",\n", + "California\n", + "94305\n", + ".\n", + "\n", + "\n", + "\n", + "news\n", + "Webpage Title:\n", + "Stanford News – Stanford University\n", + "Webpage Contents:\n", + "Skip to content\n", + "Stanford University\n", + "Information for:\n", + "Students\n", + "Faculty & Staff\n", + "Families\n", + "Visitors\n", + "Alumni\n", + "Search\n", + "Menu\n", + "News\n", + "Events\n", + "Academics\n", + "Research\n", + "Health Care\n", + "Campus Life\n", + "Admission\n", + "About\n", + "Search term\n", + "Search Stanford:\n", + "Web\n", + "People\n", + "Search Web\n", + "Other ways to search:\n", + "Map\n", + "Profiles\n", + "Main Content\n", + "Stanford News\n", + "Stories about people, research, and innovation across the Farm\n", + "Economics\n", + "Guaranteed income can lower household spending while reducing debt\n", + "Earth & Climate\n", + "What we know about the health effects of wildfire\n", + "Institutional News\n", + "AI Playground offers a safe place to explore and experiment\n", + "Health & Medicine\n", + "The case for joy in global health research\n", + "Institutional News\n", + "Report outlines Stanford principles for use of AI\n", + "Science & Engineering\n", + "A new ultrathin conductor for nanoelectronics\n", + "Health & Medicine\n", + "New AI model predicts cancer prognosis, response to treatment\n", + "Academics\n", + "In Stanford’s Practical Ethics Club, students examine life’s moral complexities\n", + "More Stanford News\n", + "Facebook\n", + "Twitter\n", + "Instagram\n", + "LinkedIn\n", + "YouTube\n", + "iTunes U\n", + "Schools\n", + "Business\n", + "Education\n", + "Engineering\n", + "Humanities & Sciences\n", + "Law\n", + "Medicine\n", + "Sustainability\n", + "Academics\n", + "Undergraduate Majors\n", + "Graduate Programs\n", + "Research\n", + "Research Centers A\n", + "-\n", + "to\n", + "Z\n", + "Libraries\n", + "Health Care\n", + "Stanford Health Care\n", + "Stanford Children's Health\n", + "Online Learning\n", + "Stanford Online\n", + "About Stanford\n", + "Facts\n", + "History\n", + "Accreditation\n", + "Admission\n", + "Undergraduate\n", + "Graduate\n", + "Financial Aid\n", + "Resources\n", + "Campus Map\n", + "Community Engagement\n", + "Directory\n", + "Stanford Profiles\n", + "Applying\n", + "Visiting\n", + "Giving\n", + "Careers\n", + "Faculty Positions\n", + "Contact\n", + "Stanford\n", + "University\n", + "Stanford Home\n", + "Maps & Directions\n", + "Search Stanford\n", + "Emergency Info\n", + "Terms of Use\n", + "Privacy\n", + "Copyright\n", + "Trademarks\n", + "Non-Discrimination\n", + "Accessibility\n", + "©\n", + "Copyright\n", + "Stanford University\n", + ".\n", + "Stanford\n", + ",\n", + "California\n", + "94305\n", + ".\n", + "\n", + "\n", + "\n", + "alumni\n", + "Webpage Title:\n", + "Welcome to the Stanford Alumni Association | Stanford Alumni Association\n", + "Webpage Contents:\n", + "Skip to main content\n", + "Alumni Directory\n", + "(external link)\n", + "Email\n", + "(external link)\n", + "Search\n", + "Events\n", + "Featured Events\n", + "All Alumni Events\n", + "Alumni Community Events\n", + "(external link)\n", + "Career Events\n", + "Student Events\n", + "University Events\n", + "(external link)\n", + "Stanford Athletics Tickets\n", + "(external link)\n", + "Reunion Homecoming\n", + "Reunion 2024\n", + "Ways to Volunteer\n", + "View Schedule\n", + "Registration\n", + "Alumni Center Events\n", + "Host with SAA\n", + "Event Spaces\n", + "Planning Resources\n", + "IRL Adventures for the Whole Family\n", + "Get on the list\n", + "(external link)\n", + "Reading\n", + "& Resources\n", + "News & Stories\n", + "Recent Stories\n", + "STANFORD magazine\n", + "(external link)\n", + "Newsletters\n", + "Read Class Notes\n", + "(external link)\n", + "Learn\n", + "Learning Opportunities\n", + "Recorded Live Talks\n", + "(external link)\n", + "Recommended Podcasts\n", + "Subscribe to Learn List\n", + "Career Connections\n", + "Getting Started\n", + "Students\n", + "Career Resources\n", + "Give Career Support\n", + "Post or Find Jobs\n", + "(external link)\n", + "Post or Find Internships\n", + "(external link)\n", + "Connect on Alumni Directory\n", + "(external link)\n", + "Alumni Linkedin Group\n", + "(external link)\n", + "Programs\n", + "& Perks\n", + "Perks & Membership\n", + "Perks for All Alumni\n", + "Become an SAA Member\n", + "SAA Membership Card\n", + "SAA Member Benefits\n", + "Sierra Programs\n", + "Summer Family Camp\n", + "Faculty/Staff Weekend\n", + "Healthy Living Retreat for Women\n", + "Memorial Day Weekend\n", + "Sierra Camp Conference Center\n", + "(external link)\n", + "Sierra Programs Updates\n", + "Travel/Study\n", + "The Stanford Advantage\n", + "Find a Destination\n", + "Experiences\n", + "Custom Journeys\n", + "Trip Alerts\n", + "Shop\n", + "Stanford Alumni Fan Shop\n", + "(external link)\n", + "Stanford Alumni Coffee\n", + "(external link)\n", + "Wine Collection\n", + "(external link)\n", + "Communities\n", + "Clubs & Groups\n", + "Discover Alumni Groups\n", + "Interest & Affinity Groups\n", + "Professional Groups\n", + "Regional Groups (U.S.)\n", + "Regional Groups (International)\n", + "School Groups\n", + "(external link)\n", + "Shared Identity Groups\n", + "Leader Resources\n", + "Young Alumni\n", + "Recent Grad Resources\n", + "Stanford 10\n", + "Undergraduate Students\n", + "All Undergraduates\n", + "Frosh\n", + "Sophomores\n", + "Juniors\n", + "Seniors\n", + "Senior Awards\n", + "Senior Commencement\n", + "Events\n", + "Graduate Students\n", + "All Graduate Students\n", + "Grad Student Awards\n", + "Grad Commencement\n", + "Volunteer\n", + "Volunteer\n", + "Opportunities\n", + "Leadership\n", + "Richard W. Lyman Award\n", + "Multicultural Alumni Hall of Fame\n", + "Beyond the Farm\n", + "Join a Project\n", + "Project Leaders\n", + "Stanford Associates\n", + "Grants\n", + "Awards\n", + "Associates Designees\n", + "Board of Governors\n", + "Trustee Nominations\n", + "Board Facts\n", + "Becoming a Trustee\n", + "Current Trustees\n", + "(external link)\n", + "About\n", + "About Us\n", + "Get to Know SAA\n", + "Departments\n", + "Executive Leadership\n", + "Jobs\n", + "(external link)\n", + "Alumni Center\n", + "Amenities & Space\n", + "Dedication & Donors\n", + "Contact Us\n", + "Get in Touch\n", + "Frequently Asked Questions\n", + "Update Your Contact Info\n", + "(external link)\n", + "Submit a Class Note\n", + "(external link)\n", + "Submit an Obituary\n", + "(external link)\n", + "IRL Adventures for the Whole Family\n", + "Get on the list\n", + "(external link)\n", + "Alumni Directory\n", + "(external link)\n", + "Email\n", + "(external link)\n", + "Search\n", + "Events\n", + "Featured Events\n", + "All Alumni Events\n", + "Alumni Community Events\n", + "(external link)\n", + "Career Events\n", + "Student Events\n", + "University Events\n", + "(external link)\n", + "Stanford Athletics Tickets\n", + "(external link)\n", + "Reunion Homecoming\n", + "Reunion 2024\n", + "Ways to Volunteer\n", + "View Schedule\n", + "Registration\n", + "Alumni Center Events\n", + "Host with SAA\n", + "Event Spaces\n", + "Planning Resources\n", + "IRL Adventures for the Whole Family\n", + "Get on the list\n", + "(external link)\n", + "Reading\n", + "& Resources\n", + "News & Stories\n", + "Recent Stories\n", + "STANFORD magazine\n", + "(external link)\n", + "Newsletters\n", + "Read Class Notes\n", + "(external link)\n", + "Learn\n", + "Learning Opportunities\n", + "Recorded Live Talks\n", + "(external link)\n", + "Recommended Podcasts\n", + "Subscribe to Learn List\n", + "Career Connections\n", + "Getting Started\n", + "Students\n", + "Career Resources\n", + "Give Career Support\n", + "Post or Find Jobs\n", + "(external link)\n", + "Post or Find Internships\n", + "(external link)\n", + "Connect on Alumni Directory\n", + "(external link)\n", + "Alumni Linkedin Group\n", + "(external link)\n", + "Programs\n", + "& Perks\n", + "Perks & Membership\n", + "Perks for All Alumni\n", + "Become an SAA Member\n", + "SAA Membership Card\n", + "SAA Member Benefits\n", + "Sierra Programs\n", + "Summer Family Camp\n", + "Faculty/Staff Weekend\n", + "Healthy Living Retreat for Women\n", + "Memorial Day Weekend\n", + "Sierra Camp Conference Center\n", + "(external link)\n", + "Sierra Programs Updates\n", + "Travel/Study\n", + "The Stanford Advantage\n", + "Find a Destination\n", + "Experiences\n", + "Custom Journeys\n", + "Trip Alerts\n", + "Shop\n", + "Stanford Alumni Fan Shop\n", + "(external link)\n", + "Stanford Alumni Coffee\n", + "(external link)\n", + "Wine Collection\n", + "(external link)\n", + "Communities\n", + "Clubs & Groups\n", + "Discover Alumni Groups\n", + "Interest & Affinity Groups\n", + "Professional Groups\n", + "Regional Groups (U.S.)\n", + "Regional Groups (International)\n", + "School Groups\n", + "(external link)\n", + "Shared Identity Groups\n", + "Leader Resources\n", + "Young Alumni\n", + "Recent Grad Resources\n", + "Stanford 10\n", + "Undergraduate Students\n", + "All Undergraduates\n", + "Frosh\n", + "Sophomores\n", + "Juniors\n", + "Seniors\n", + "Senior Awards\n", + "Senior Commencement\n", + "Events\n", + "Graduate Students\n", + "All Graduate Students\n", + "Grad Student Awards\n", + "Grad Commencement\n", + "Volunteer\n", + "Volunteer\n", + "Opportunities\n", + "Leadership\n", + "Richard W. Lyman Award\n", + "Multicultural Alumni Hall of Fame\n", + "Beyond the Farm\n", + "Join a Project\n", + "Project Leaders\n", + "Stanford Associates\n", + "Grants\n", + "Awards\n", + "Associates Designees\n", + "Board of Governors\n", + "Trustee Nominations\n", + "Board Facts\n", + "Becoming a Trustee\n", + "Current Trustees\n", + "(external link)\n", + "About\n", + "About Us\n", + "Get to Know SAA\n", + "Departments\n", + "Executive Leadership\n", + "Jobs\n", + "(external link)\n", + "Alumni Center\n", + "Amenities & Space\n", + "Dedication & Donors\n", + "Contact Us\n", + "Get in Touch\n", + "Frequently Asked Questions\n", + "Update Your Contact Info\n", + "(external link)\n", + "Submit a Class Note\n", + "(external link)\n", + "Submit an Obituary\n", + "(external link)\n", + "IRL Adventures for the Whole Family\n", + "Get on the list\n", + "(external link)\n", + "Events\n", + "Featured Events\n", + "All Alumni Events\n", + "Alumni Community Events\n", + "(external link)\n", + "Career Events\n", + "Student Events\n", + "University Events\n", + "(external link)\n", + "Stanford Athletics Tickets\n", + "(external link)\n", + "Reunion Homecoming\n", + "Reunion 2024\n", + "Ways to Volunteer\n", + "View Schedule\n", + "Registration\n", + "Alumni Center Events\n", + "Host with SAA\n", + "Event Spaces\n", + "Planning Resources\n", + "IRL Adventures for the Whole Family\n", + "Get on the list\n", + "(external link)\n", + "Reading\n", + "& Resources\n", + "News & Stories\n", + "Recent Stories\n", + "STANFORD magazine\n", + "(external link)\n", + "Newsletters\n", + "Read Class Notes\n", + "(external link)\n", + "Learn\n", + "Learning Opportunities\n", + "Recorded Live Talks\n", + "(external link)\n", + "Recommended Podcasts\n", + "Subscribe to Learn List\n", + "Career Connections\n", + "Getting Started\n", + "Students\n", + "Career Resources\n", + "Give Career Support\n", + "Post or Find Jobs\n", + "(external link)\n", + "Post or Find Internships\n", + "(external link)\n", + "Connect on Alumni Directory\n", + "(external link)\n", + "Alumni Linkedin Group\n", + "(external link)\n", + "Programs\n", + "& Perks\n", + "Perks & Membership\n", + "Perks for All Alumni\n", + "Become an SAA Member\n", + "SAA Membership Card\n", + "SAA Member Benefits\n", + "Sierra Programs\n", + "Summer Family Camp\n", + "Faculty/Staff Weekend\n", + "Healthy Living Retreat for Women\n", + "Memorial Day Weekend\n", + "Sierra Camp Conference Center\n", + "(external link)\n", + "Sierra Programs Updates\n", + "Travel/Study\n", + "The Stanford Advantage\n", + "Find a Destination\n", + "Experiences\n", + "Custom Journeys\n", + "Trip Alerts\n", + "Shop\n", + "Stanford Alumni Fan Shop\n", + "(external link)\n", + "Stanford Alumni Coffee\n", + "(external link)\n", + "Wine Collection\n", + "(external link)\n", + "Communities\n", + "Clubs & Groups\n", + "Discover Alumni Groups\n", + "Interest & Affinity Groups\n", + "Professional Groups\n", + "Regional Groups (U.S.)\n", + "Regional Groups (International)\n", + "School Groups\n", + "(external link)\n", + "Shared Identity Groups\n", + "Leader Resources\n", + "Young Alumni\n", + "Recent Grad Resources\n", + "Stanford 10\n", + "Undergraduate Students\n", + "All Undergraduates\n", + "Frosh\n", + "Sophomores\n", + "Juniors\n", + "Seniors\n", + "Senior Awards\n", + "Senior Commencement\n", + "Events\n", + "Graduate Students\n", + "All Graduate Students\n", + "Grad Student Awards\n", + "Grad Commencement\n", + "Volunteer\n", + "Volunteer\n", + "Opportunities\n", + "Leadership\n", + "Richard W. Lyman Award\n", + "Multicultural Alumni Hall of Fame\n", + "Beyond the Farm\n", + "Join a Project\n", + "Project Leaders\n", + "Stanford Associates\n", + "Grants\n", + "Awards\n", + "Associates Designees\n", + "Board of Governors\n", + "Trustee Nominations\n", + "Board Facts\n", + "Becoming a Trustee\n", + "Current Trustees\n", + "(external link)\n", + "About\n", + "About Us\n", + "Get to Know SAA\n", + "Departments\n", + "Executive Leadership\n", + "Jobs\n", + "(external link)\n", + "Alumni Center\n", + "Amenities & Space\n", + "Dedication & Donors\n", + "Contact Us\n", + "Get in Touch\n", + "Frequently Asked Questions\n", + "Update Your Contact Info\n", + "(external link)\n", + "Submit a Class Note\n", + "(external link)\n", + "Submit an Obituary\n", + "(external link)\n", + "IRL Adventures for the Whole Family\n", + "Get on the list\n", + "(external link)\n", + "Welcome Home\n", + "Step into the virtual home of Stanford’s global community—a place where the Cardinal spirit thrives beyond the palm-lined campus. Reconnect with classmates, discover opportunities, and stay up-to-date on the latest research and ideas from Stanford.\n", + "Stanford Alumni Association\n", + "A Toast to President Levin\n", + "We welcome Stanford’s 13th president, Jonathan D. Levin, ’94.\n", + "A Toast to President Levin\n", + "Stories\n", + "News, views, and perspectives from the Stanford community.\n", + "Up Toward Mountains Higher\n", + "(external link)\n", + "from\n", + "STANFORD magazine\n", + "From the Foothills to the Bay, Jonathan Levin sees a range of opportunity.\n", + "The Legend\n", + "(external link)\n", + "from\n", + "STANFORD magazine\n", + "Career Wins, 1,216. National Championships, 3. Final Fours, 14. Tara VanDerveer? Priceless.\n", + "Alumni Magazine—Winter 2025\n", + "Dig into the current issue of STANFORD magazine.\n", + "Optional screen reader text\n", + "(external link)\n", + "Read more stories\n", + "Programming With a Purpose\n", + "There’s something for everyone at Stanford Alumni. We’re here to help you connect, learn, and grow every step of the way.\n", + "Career Connections\n", + "Looking to make a career change or network with other alumni? Don’t miss out on our career resources.\n", + "See career resources\n", + "Students\n", + "Welcome, Stanford students! Don’t miss out on special programming developed just for you.\n", + "Find student programming\n", + "Community\n", + "Stay connected, make new friends, and find out about events for alumni. Alumni groups are spread worldwide based on region, industry, identity, interest, and more.\n", + "Discover groups\n", + "(external link)\n", + "Travel/Study\n", + "Not Your Average Family Vacation\n", + "Our 2025 Family Adventures are now open! Next year’s lineup includes swimming with sea lions in Galápagos, spectacular safaris in South Africa, and much more. Instead of another ho-hum road trip filled with iPads and eye rolls, show the kids the whole, wide world.\n", + "Jun\n", + "19\n", + "–\n", + "to\n", + "Jun\n", + "30\n", + "Japan Family Adventure\n", + "With Young Explorer Program for kids ages 6+\n", + "Delve into ancient traditions and modern pop culture with the whole family. Learn about Samurai practices and visit meticulously sculpted gardens and serene temples.\n", + "Jun\n", + "24\n", + "–\n", + "to\n", + "Jul\n", + "02\n", + "Galápagos Islands\n", + "With Young Explorer Program for kids ages 6+\n", + "Enjoy a family cruise through the remote island chain and encounter unique wildlife up close, including playful sea lions, giant tortoises and blue footed boobies.\n", + "Jul\n", + "13\n", + "–\n", + "to\n", + "Jul\n", + "20\n", + "Switzerland\n", + "With Young Explorer Program for kids ages 7+\n", + "There is so much to experience and enjoy in and around Interlaken: chocolate, wines, train and boat rides, Schilthorn’s famous Thrill Walk, and vast cultural treasures.\n", + "Explore 2025 trips\n", + "(external link)\n", + "Loading...\n", + "Sponsors\n", + "Loading...\n", + "Loading...\n", + "See what SAA offers just for alumni and SAA members.\n", + "Read your Class Notes in our new digital portal.\n", + "(external link)\n", + "Stanford Alumni Association\n", + "Frances C. Arrillaga Alumni Center\n", + "326 Galvez Street\n", + "Stanford, CA 94305-6105\n", + "Map\n", + "on Google\n", + "(external link)\n", + "Facebook Page\n", + "LinkedIn Page\n", + "Instagram Page\n", + "Youtube Channel\n", + "Get to Know SAA\n", + "STANFORD Magazine\n", + "(external link)\n", + "Contact Us\n", + "Help\n", + "Access SAA Member Card\n", + "Check your alumni email\n", + "(external link)\n", + "My Alumni Account\n", + "(external link)\n", + "Give to Stanford\n", + "(external link)\n", + "Accessibility\n", + "Privacy Policy\n", + "Terms of Use\n", + "Code of Conduct\n", + "Stanford\n", + "University\n", + "Stanford Home\n", + "(link is external)\n", + "Maps & Directions\n", + "(link is external)\n", + "Search Stanford\n", + "(link is external)\n", + "Emergency Info\n", + "(link is external)\n", + "Terms of Use\n", + "(link is external)\n", + "Privacy\n", + "(link is external)\n", + "Copyright\n", + "(link is external)\n", + "Trademarks\n", + "(link is external)\n", + "Non-Discrimination\n", + "(link is external)\n", + "Accessibility\n", + "(link is external)\n", + "© Stanford University.\n", + "Stanford, California 94305.\n", + "\n", + "\n", + "\n", + "student resources\n", + "Webpage Title:\n", + "Undergrad\n", + "Webpage Contents:\n", + "Skip to main content\n", + "Skip to secondary navigation\n", + "Stanford\n", + "Undergrad\n", + "VPUE\n", + "VPUE\n", + "Undergrad\n", + "Search this site\n", + "Submit Search\n", + "Menu\n", + "Academic Advising\n", + "Programs\n", + "Arts Intensive\n", + "Bing Honors College\n", + "About Bing Honors College\n", + "Who is Eligible\n", + "What to Expect During the Program\n", + "Key Program Dates\n", + "Benefits\n", + "What BHC Can Do for You\n", + "Why Bing Honors College?\n", + "Activities During the College\n", + "Housing and Dining\n", + "Apply to Bing Honors College\n", + "Eligibility and Commitment\n", + "Participating Departments and Programs\n", + "Contact Your Department\n", + "Register for BHC\n", + "For Faculty\n", + "Resources\n", + "Contact BHC\n", + "Bing Overseas Studies Program\n", + "Civic, Liberal, and Global Education\n", + "Community Engaged Learning / Cardinal Courses\n", + "Education as Self-Fashioning\n", + "Frosh 101 / Transfer 101\n", + "Introductory Seminars\n", + "ITALIC\n", + "Leland Scholars Program\n", + "Oral Communication Program\n", + "Oral Communication Program Home\n", + "Oral Communication Program Team\n", + "Oral Communication Courses\n", + "Oral Communication Workshops\n", + "Oral Communication Tutoring\n", + "Speaking Inspiration\n", + "Program in Writing and Rhetoric\n", + "Sophomore College\n", + "Structured Liberal Education\n", + "Summer Bridge Programs\n", + "Ways of Thinking / Ways of Doing\n", + "Opportunities\n", + "Arts\n", + "Creativity and the Arts Overview\n", + "Arts Majors, Minors, Honors, Coterm, and Classes\n", + "Arts Funding, Internships, and Jobs\n", + "Careers and Internships\n", + "Diversity Outreach and Opportunities\n", + "Mellon Mays Undergraduate Fellowship Program\n", + "Humanities\n", + "Where to Study the Humanities at Stanford\n", + "Gateway Courses in the Humanities\n", + "Why Study the Humanities?\n", + "More Opportunities for Humanities Students\n", + "Leadership\n", + "Academic Leadership Opportunities\n", + "VPUE Student Advisory Group\n", + "Other Leadership Opportunities\n", + "Leveling the Learning Landscape\n", + "Public and Community Service\n", + "Research\n", + "Tutoring & Support\n", + "For Faculty / Staff\n", + "About\n", + "Meet the Vice Provost\n", + "Awards and Graduation Honors\n", + "Undergraduate Departmental Award Recipients, 2023-2024\n", + "Undergraduate National and University Award Recipients, 2023-2024\n", + "Golden, Firestone, and Kennedy Thesis Awards\n", + "Undergraduate Honors Society Recipients 2023-2024\n", + "Past Graduation Honors Recipients\n", + "Diversity, Equity and Inclusion\n", + "The Committee on Residential Learning\n", + "Study of Undergraduate Education at Stanford\n", + "Main content start\n", + "Welcome to Stanford Undergrad\n", + "Stanford Undergrad is your guide to academics and educational opportunities offered through the Office of the Vice Provost for Undergraduate Education and our campus partners.\n", + "Intisar Alkhatib\n", + "\"I have never felt more at home than I have at LSP. It fundamentally shifted me, from my conceptualization of healthy love to my feeling of belonging at Stanford.\"\n", + "Meet some of our new LSP students\n", + "Jay Hamilton appointed vice provost for undergraduate education\n", + "Jay Hamilton, the Hearst Professor of Communication and director of the Stanford Journalism Program, has been appointed vice provost for undergraduate education, effective Jan. 1, 2025. Hamilton, chair of the Department of Communication and First-Year Requirements Governance Board, has taught and led at Stanford since 2013. He is looking forward to building on VPUE’s mission and core programs such as COLLEGE.\n", + "Read the full Stanford Report story\n", + "Learning Different Approaches to Sustainability\n", + "Stanford professors William Barnett and Chris Field have one message to their students: Tackling the environmental crisis will require that each of us take on a leadership role, now. Their class, COLLEGE 106: Environmental Sustainability: Global Predicaments and Possible Solutions, was one of seven different courses COLLEGE students could choose from as part of the spring quarter theme, Global Perspectives.\n", + "Read more about COLLEGE 106 in the Stanford Report\n", + "What is COLLEGE?\n", + "More than a class—it's an experience!\n", + "What is SoCo?\n", + "The immersive,\n", + "three-week residential classes\n", + "often include field trips and hands-on learning outside the classroom, creating a connection with your SoCo faculty and life-long friendships.\n", + "What is SoCo?\n", + "Focus on Creativity\n", + "What is Arts Intensive?\n", + "Arts Intensive offers students time to focus on a single, project-based arts class with campus faculty and guest artists. The courses provide the unique opportunity to create in small class sizes outside of the pressures of the regular academic year.\n", + "What is Arts Intensive?\n", + "Speaking and Writing Support\n", + "Hume Center\n", + "The Hume Center for Writing and Speaking works with all Stanford students to help them develop rich and varied abilities in every aspect of writing and oral communication. Find out what to expect when you see a tutor and how to schedule an appointment.\n", + "What to Expect\n", + "The Advising Resource Toolkit\n", + "These advising tools may be used cooperatively during an advising conversation or you may use them on your own, to help you prepare for a conversation with your academic advisor. They are intended to:\n", + "help frame your reflections throughout your time at Stanford\n", + "guide your strategic thinking if you face challenges or difficulty\n", + "facilitate your academic planning and intellectual development\n", + "support you as you consider post-undergraduate education\n", + "Advising Resource Toolkit\n", + "Bing Overseas Studies Program\n", + "Isabella Saracco, History\n", + "This photo was taken in front of Castle Mareccio, in Bolzano/Bolzen, a city in the South Tyrol region of Italy. I visited on one of the long weekends of the quarter; getting to travel the country and learn about the cultural diversity within Italy was one of my favorite parts of the program. South Tyrol was incredibly different from Florence--it's a bilingual region, and everything was in both Italian and German!\n", + "Explore Overseas Studies\n", + "Web Accessibility\n", + "Stanford University is committed to providing an online environment that is accessible to everyone, including individuals with disabilities. Having trouble accessing any of this content due to a disability?\n", + "Learn more about accessibility at Stanford and report accessibility issues\n", + "Back to Top\n", + "Stanford\n", + "Undergrad\n", + "Web Login\n", + "Address\n", + "Sweet Hall\n", + "590 Escondido Mall\n", + "Stanford\n", + ",\n", + "CA\n", + "94305-3082\n", + "United States\n", + "Campus Map\n", + "Contact Us\n", + "Stanford Instagram\n", + "Twitter\n", + "Youtube\n", + "Need Help?\n", + "vpue@stanford.edu\n", + "(650) 723-4463\n", + "About VPUE\n", + "Meet the Vice Provost\n", + "Diversity, Equity and Inclusion\n", + "Stanford Undergrad is your guide to academics and educational opportunities offered through the Office of the Vice Provost for Undergraduate Education and our campus partners.\n", + "The Stanford Undergrad site is for matriculated students. If you have questions about applying to the university as an undergraduate or transfer student, or to learn about scholarship and financial aid opportunities, please contact\n", + "Undergraduate Admissions\n", + ".\n", + "Stanford\n", + "VPUE\n", + "Vice Provost for Undergraduate Education\n", + "Stanford Undergrad is your guide to undergraduate academics and opportunities found within the Vice Provost for Undergraduate Education.\n", + "Sweet Hall\n", + "590 Escondido Mall\n", + "Stanford\n", + ",\n", + "CA\n", + "94305\n", + "map\n", + "Connect with us!\n", + "Twitter\n", + "Stanford Facebook\n", + "Stanford Instagram\n", + "Youtube\n", + "Need help?\n", + "vpue@stanford.edu\n", + "(650)723-4463\n", + "More to Explore\n", + "Academic Advising\n", + "Research and Independent Projects\n", + "Tutoring and Support\n", + "For Faculty / Staff\n", + "VPUE Units\n", + "Academic Advising\n", + "Bing Overseas Studies Programs\n", + "Center for Teaching and Learning\n", + "Haas Center for Public Service\n", + "Program in Writing and Rhetoric\n", + "Stanford Introductory Studies\n", + "Vice Provost’s Office\n", + "VPUE Programs\n", + "Approaching Stanford (APSU)\n", + "Arts Intensive (AI)\n", + "Bing Honors College (BHC)\n", + "Bing Overseas Studies Programs (BOSP)\n", + "Cardinal Service\n", + "Civic, Liberal, and Global Education (COLLEGE)\n", + "Education as Self-Fashioning (ESF)\n", + "Frosh 101 / Transfer 101\n", + "Hume Center for Writing and Speaking\n", + "Introductory Seminars (IntroSems)\n", + "ITALIC: Immersion in the Arts\n", + "Leland Scholars Program (LSP)\n", + "New Student Orientation (NSO)\n", + "Oral Communication Program\n", + "Program in Writing and Rhetoric (PWR)\n", + "Sophomore College (SoCo)\n", + "Structured Liberal Education (SLE)\n", + "Student Learning Programs\n", + "Summer Bridge Programs\n", + "Summer Fellows Program (SSFP)\n", + "Research and Independent Projects\n", + "Ways of Thinking / Ways of Doing (WAYS)\n", + "Stanford\n", + "University\n", + "(link is external)\n", + "Stanford Home\n", + "(link is external)\n", + "Maps & Directions\n", + "(link is external)\n", + "Search Stanford\n", + "(link is external)\n", + "Emergency Info\n", + "(link is external)\n", + "Terms of Use\n", + "(link is external)\n", + "Privacy\n", + "(link is external)\n", + "Copyright\n", + "(link is external)\n", + "Trademarks\n", + "(link is external)\n", + "Non-Discrimination\n", + "(link is external)\n", + "Accessibility\n", + "(link is external)\n", + "© Stanford University.\n", + "Stanford, California 94305.\n", + "\n", + "\n" + ] + } + ], "source": [ - "print(get_all_details(\"https://huggingface.co\"))" + "print(get_all_details(\"https://stanford.com\"))" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 114, "id": "9b863a55-f86c-4e3f-8a79-94e24c1a8cf2", "metadata": {}, "outputs": [], "source": [ - "system_prompt = \"You are an assistant that analyzes the contents of several relevant pages from a company website \\\n", - "and creates a short brochure about the company for prospective customers, investors and recruits. Respond in markdown.\\\n", - "Include details of company culture, customers and careers/jobs if you have the information.\"\n", + "system_prompt = \"\"\"You are an assistant that analyzes website content and creates a snarky brochure with specified sections.\n", + "\n", + "FORMAT REQUIRED:\n", + "# [Company Name]: The Real Story\n", + "\n", + "## What They Actually Do\n", + "[A snarky description of their main products/services]\n", + "\n", + "## Company Culture & Vibes\n", + "[A witty take on their work environment and values]\n", + "\n", + "## Why They Think They're Special\n", + "[A sarcastic overview of their unique selling points]\n", + "\n", + "## The Fine Print\n", + "[Humorous disclaimers and caveats about working with/for them]\n", + "\n", + "## Should You Join?\n", + "[A playful pros and cons list for potential employees]\n", + "\n", + "RULES:\n", + "- Keep sections in the exact order specified above\n", + "- Use markdown formatting\n", + "- Maintain a snarky but not mean-spirited tone\n", + "- Include specific details from the website content\n", + "- Keep each section to 2-3 paragraphs maximum\n", + "\n", + "Example Format:\n", + "# Acme Corp: The Real Story\n", + "\n", + "## What They Actually Do\n", + "[Content here]\n", + "\n", + "[Continue with other sections...]\"\"\"\n", + "\n", + "system_prompt += \"\"\"\n", + "\n", + "SECTION REQUIREMENTS:\n", + "1. \"What They Actually Do\" must include:\n", + " - Main product/service description\n", + " - Target market\n", + " - Key features\n", + "\n", + "2. \"Company Culture & Vibes\" must include:\n", + " - Office environment\n", + " - Work-life balance mentions\n", + " - Team structure\n", + "\n", + "[Continue with other sections...]\"\"\"\n", "\n", "# Or uncomment the lines below for a more humorous brochure - this demonstrates how easy it is to incorporate 'tone':\n", "\n", @@ -285,56 +3086,573 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 115, "id": "6ab83d92-d36b-4ce0-8bcc-5bb4c2f8ff23", "metadata": {}, "outputs": [], "source": [ - "def get_brochure_user_prompt(company_name, url):\n", - " user_prompt = f\"You are looking at a company called: {company_name}\\n\"\n", - " user_prompt += f\"Here are the contents of its landing page and other relevant pages; use this information to build a short brochure of the company in markdown.\\n\"\n", - " user_prompt += get_all_details(url)\n", - " user_prompt = user_prompt[:5_000] # Truncate if more than 5,000 characters\n", + "# def get_brochure_user_prompt(company_name, url):\n", + "# user_prompt = f\"You are looking at a company called: {company_name}\\n\"\n", + "# user_prompt += f\"Here are the contents of its landing page and other relevant pages; use this information to build a short brochure of the company in markdown.\\n\"\n", + "# user_prompt += get_all_details(url)\n", + "# user_prompt = user_prompt[:5_000] # Truncate if more than 5,000 characters\n", + "# return user_prompt\n", + "\n", + "\n", + "def get_brochure_user_prompt(company_name, url, industry_type=None):\n", + " user_prompt = f\"Create a brochure for {company_name}\"\n", + " if industry_type:\n", + " user_prompt += f\", a company in the {industry_type} industry\"\n", + " user_prompt += \". Use ONLY the following website content to create the brochure:\\n\\n\"\n", + " user_prompt += get_all_details(url, industry_type)\n", + " user_prompt += \"\\nMake sure to follow the exact format specified in the system prompt.\"\n", + " user_prompt = user_prompt[:5_000]\n", " return user_prompt" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 116, "id": "cd909e0b-1312-4ce2-a553-821e795d7572", "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Found links: {\n", + " \"links\": [\n", + " {\n", + " \"type\": \"academic programs\",\n", + " \"url\": \"https://www.stanford.edu/academics/\"\n", + " },\n", + " {\n", + " \"type\": \"research\",\n", + " \"url\": \"https://www.stanford.edu/research/\"\n", + " },\n", + " {\n", + " \"type\": \"health care\",\n", + " \"url\": \"https://www.stanford.edu/health-care/\"\n", + " },\n", + " {\n", + " \"type\": \"campus life\",\n", + " \"url\": \"https://www.stanford.edu/campus-life/\"\n", + " },\n", + " {\n", + " \"type\": \"admissions\",\n", + " \"url\": \"https://www.stanford.edu/admission/\"\n", + " },\n", + " {\n", + " \"type\": \"about the university\",\n", + " \"url\": \"https://www.stanford.edu/about/\"\n", + " },\n", + " {\n", + " \"type\": \"events\",\n", + " \"url\": \"https://www.stanford.edu/events/\"\n", + " },\n", + " {\n", + " \"type\": \"news\",\n", + " \"url\": \"https://www.stanford.edu/news/\"\n", + " },\n", + " {\n", + " \"type\": \"undergraduate programs\",\n", + " \"url\": \"https://undergrad.stanford.edu/\"\n", + " },\n", + " {\n", + " \"type\": \"graduate admissions\",\n", + " \"url\": \"https://gradadmissions.stanford.edu/explore-programs\"\n", + " },\n", + " {\n", + " \"type\": \"alumni resources\",\n", + " \"url\": \"http://alumni.stanford.edu/\"\n", + " },\n", + " {\n", + " \"type\": \"career services\",\n", + " \"url\": \"https://careersearch.stanford.edu/\"\n", + " },\n", + " {\n", + " \"type\": \"giving to Stanford\",\n", + " \"url\": \"https://giving.stanford.edu/\"\n", + " },\n", + " {\n", + " \"type\": \"student resources\",\n", + " \"url\": \"http://studentaffairs.stanford.edu/\"\n", + " }\n", + " ]\n", + "}\n" + ] + }, + { + "data": { + "text/plain": [ + "'Create a brochure for Stanford. Use ONLY the following website content to create the brochure:\\n\\nLanding page:\\nWebpage Title:\\nStanford University\\nWebpage Contents:\\nSkip to content\\nStanford University\\nInformation for:\\nStudents\\nFaculty & Staff\\nFamilies\\nVisitors\\nAlumni\\nSearch\\nMenu\\nNews\\nEvents\\nAcademics\\nResearch\\nHealth Care\\nCampus Life\\nAdmission\\nAbout\\nSearch term\\nSearch Stanford:\\nWeb\\nPeople\\nSearch Web\\nOther ways to search:\\nMap\\nProfiles\\nStanford\\nExplore Stanford\\nMain Content\\nA Societal Mission\\nStanford was founded almost 150 years ago on a bedrock of societal purpose. Our mission is to contribute to the world by educating students for lives of leadership and contribution with integrity; advancing fundamental knowledge and cultivating creativity; leading in pioneering research for effective clinical therapies; and accelerating solutions and amplifying their impact.\\nMore about Stanford\\nCampus News\\nStories about people, research, and innovation across the Farm\\nEarth & Climate\\nWhat we know about the health effects of wildfire\\nHealth & Medicine\\nNew AI model predicts cancer prognosis, response to treatment\\nEconomics\\nGuaranteed income can lower household spending while reducing debt\\nHealth & Medicine\\nAI helps identify the biology underlying Type 2 diabetes\\nInstitutional News\\nReport outlines Stanford principles for use of AI\\nSocial Sciences\\nFive books to help you disagree productively in 2025\\nMore campus news\\nAcademics\\nPreparing students to make meaningful contributions to society as engaged citizens and leaders in a complex world\\nUndergraduate Education\\nRich learning experiences that provide a broad liberal arts foundation and deep subject-area expertise\\nUndergraduate Education\\nGraduate Education\\nUnsurpassed opportunities to participate in the advancement of entire fields of knowledge\\nGraduate education\\nDriving impact\\nContinuing adult education, executive and professional programs, and programs for K-12 students\\nLifelong Learning\\nSeven schools in which to pursue your passions\\nMedicine\\nLaw\\nHumanities & Sciences\\nEngineering\\nEducation\\nSustainability\\nBusiness\\nMore about academics\\nProfile of Tadashi Tokieda\\n“When I ‘decided’ to become a mathematician, it was not a decision. I could not do otherwise. You don’t decide to fall in love with somebody. It just happens.”\\nTadashi Tokieda\\nProfessor (Teaching) of Mathematics\\nMore\\nResearch\\nDriving discoveries vital to our world, our health, and our intellectual life\\n15 Institutes\\ncross disciplinary boundaries\\n20 Libraries\\nhold over 12 million items\\n$1.98 Billion\\nsponsored research budget\\nMore about research\\nUpcoming Events\\nMore events\\nHealth Care\\nAdvancing human health through innovative research, education, and care\\nStanford Medicine\\nLeading a worldwide revolution in precision health through biomedical research, education, and clinical enterprises\\nStanford Medicine\\nStanford Health Care\\nLeveraging expertise and advanced technology\\xa0 to deliver unparalleled care for each patient’s unique needs\\nStanford Health Care\\nStanford Children’s Health\\nThe only health care network in the Bay Area – and one of the few in the country – exclusively dedicated to pediatric and obstetric care\\nStanford Children’s Health\\nMore about health care\\nProfile of Yannie Tan\\n“I think about all the projects that students throw themselves at quarter after quarter, just really expanding and stretching their minds. … Stanford allows you to experience evolutions of yourself.”\\nYannie Tan\\nClass of 2024\\nMore\\nCampus Life\\nBuilding a vibrant community of creative and accomplished people from around the world\\nStudent Life\\nA residential campus with diverse housing, exceptional dining, and over 600 student organizations\\nStudent Affairs\\nArts & Culture\\nA rich tradition of fostering creativity and a vibrant arts district on campus\\nStanford Arts\\nRecreation & Wellness\\nState-of-the-art facilities and fitness programs to encourage movement and play\\nRecreation & Wellness\\nMore about campus life\\nAthletics\\nProviding student-athletes the opportunity to achieve excellence both in competition and in the classroom\\nHome of Champions\\nStanford’s 136 NCAA championships are the most for any university, a product of an unrivaled culture of excellence and continued support from the campus community\\nNational Championships\\nOlympic Excellence\\nThe Cardinal has produced at least one medalist in every Olympics in which the U.S. has competed since 1912, totaling 335 medals from 196 medalists\\nMedals\\nMultidimensional Impact\\nStanford student-athletes have achieved local, national, and global impact through community involvement and advocacy\\nAthlete Stories\\nMore about athletics\\nAdmission\\nOffering extraordinary freedom to explore, to collaborate, and to challenge yourself\\nExplore the possibilities of a Stanford education as you map out your college journey.\\nWe look for distinctive students who exhibit an abundance of energy and curiosity in their classes, activities, projects, research, and lives.\\nStanford meets the full financial need of every admitted undergrad '" + ] + }, + "execution_count": 116, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "get_brochure_user_prompt(\"Stanford\", \"https://stanford.com\")" + ] + }, + { + "cell_type": "code", + "execution_count": 124, + "id": "0b7a97b5-7354-48e8-89ca-e7aa8bb1bc19", + "metadata": {}, "outputs": [], "source": [ - "get_brochure_user_prompt(\"HuggingFace\", \"https://huggingface.co\")" + "def translate_to_spanish(text):\n", + " \"\"\"Translates the generated brochure to Spanish\"\"\"\n", + " translation_prompt = \"\"\"You are a professional translator. Translate the following markdown-formatted brochure to Spanish. \n", + " Maintain all markdown formatting exactly as is. Keep section titles in their translated Spanish form.\n", + " \"\"\"\n", + " \n", + " try:\n", + " response = openai.chat.completions.create(\n", + " model=MODEL,\n", + " messages=[\n", + " {\"role\": \"system\", \"content\": translation_prompt},\n", + " {\"role\": \"user\", \"content\": text}\n", + " ]\n", + " )\n", + " return response.choices[0].message.content\n", + " except Exception as e:\n", + " return f\"Translation error: {str(e)}\"" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 125, "id": "e44de579-4a1a-4e6a-a510-20ea3e4b8d46", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Found links: {\n", + " \"links\": [\n", + " {\n", + " \"type\": \"homepage\",\n", + " \"url\": \"https://huggingface.co/\"\n", + " },\n", + " {\n", + " \"type\": \"models page\",\n", + " \"url\": \"https://huggingface.co/models\"\n", + " },\n", + " {\n", + " \"type\": \"datasets page\",\n", + " \"url\": \"https://huggingface.co/datasets\"\n", + " },\n", + " {\n", + " \"type\": \"spaces page\",\n", + " \"url\": \"https://huggingface.co/spaces\"\n", + " },\n", + " {\n", + " \"type\": \"posts page\",\n", + " \"url\": \"https://huggingface.co/posts\"\n", + " },\n", + " {\n", + " \"type\": \"documentation\",\n", + " \"url\": \"https://huggingface.co/docs\"\n", + " },\n", + " {\n", + " \"type\": \"enterprise solutions\",\n", + " \"url\": \"https://huggingface.co/enterprise\"\n", + " },\n", + " {\n", + " \"type\": \"pricing page\",\n", + " \"url\": \"https://huggingface.co/pricing\"\n", + " },\n", + " {\n", + " \"type\": \"blog\",\n", + " \"url\": \"https://huggingface.co/blog\"\n", + " },\n", + " {\n", + " \"type\": \"learn page\",\n", + " \"url\": \"https://huggingface.co/learn\"\n", + " }\n", + " ]\n", + "}\n" + ] + }, + { + "data": { + "text/markdown": [ + "# HuggingFace: The Real Story\n", + "\n", + "## What They Actually Do\n", + "Hugging Face is a pioneering platform designed to facilitate collaboration within the machine learning (ML) community. At its core, Hugging Face provides a comprehensive hub for users to discover, create, and collaborate on models, datasets, and applications. With an extensive library of over 400,000 models and 100,000 datasets, the platform serves as a vital resource for both budding and advanced practitioners in the field of AI. Additionally, Hugging Face offers specialized solutions, such as Compute and Enterprise plans, catering to the rigorous demands of organizations seeking to leverage cutting-edge AI technologies.\n", + "\n", + "The platform also includes dynamic features such as \"Spaces,\" allowing users to run and showcase their machine learning applications easily. Hugging Face actively embraces open source principles, providing powerful tools like Transformers and Diffusers, which are integral to various ML tasks, from text generation to image analysis.\n", + "\n", + "## Company Culture & Vibes\n", + "At Hugging Face, the company mission revolves around building a welcoming and collaborative community that transcends traditional corporate silos. The work environment emphasizes inclusivity, valuing diverse perspectives that contribute to innovation in AI. Employees are encouraged to be part of a collective effort that shapes the future of machine learning, fostering an atmosphere where experimentation and creativity can thrive.\n", + "\n", + "The company values open-source principles and provides its employees with opportunities to engage with a global community of developers and researchers. This culture of transparency and knowledge sharing not only enhances personal growth but also drives the organization’s mission forward, making Hugging Face a vibrant place to cultivate one’s career in AI.\n", + "\n", + "## Why They Think They're Special\n", + "Hugging Face distinguishes itself through its commitment to open source development and community collaboration. Its extensive catalog of models and datasets positions it as a go-to resource in the AI industry, catering to a diverse range of applications across different modalities, including text, audio, and visual data. The versatility of the platform ensures that users—from individual developers to large enterprises—can accelerate their machine learning projects without barriers.\n", + "\n", + "Moreover, Hugging Face provides enterprise-grade solutions that combine advanced security with dedicated support, making it an ideal partner for organizations. With over 50,000 companies utilizing its services, Hugging Face has established itself as a leader in AI technology, inspiring confidence and driving adoption across industries.\n", + "\n", + "## The Fine Print\n", + "Hugging Face operates with a clear focus on delivering value to its users while maintaining high ethical standards in AI development. The platform provides multiple pricing tiers, starting as low as $0.60 per hour for GPU computing, allowing users to choose a model that best fits their needs. For enterprises, competitive plans beginning at $20 per user per month include features like Single Sign-On, priority support, and access controls, ensuring a tailored approach to each organization's requirements.\n", + "\n", + "Hugging Face also maintains comprehensive documentation and resources for users, supporting their journey from novice to expert. The transparent user agreements and terms of service further protect the expectations of both contributors and users of the platform.\n", + "\n", + "## Should You Join?\n", + "### Pros\n", + "- **Innovative Environment**: Work at the forefront of AI and be part of a community that values creativity and collaboration.\n", + "- **Extensive Resources**: Have access to a plethora of models, datasets, and tools that can significantly enhance your work.\n", + "- **Career Growth**: Leverage opportunities for personal development and expand your professional network within an open-source ecosystem.\n", + "\n", + "### Cons\n", + "- **Fast-Paced**: The rapidly evolving nature of AI technologies may require continual learning and adaptation.\n", + "- **Open-Source Challenges**: Contributing to open-source projects can sometimes mean navigating complex collaboration dynamics.\n", + "- **High Expectations**: Working with leading organizations may result in a demanding work environment with high standards for performance. \n", + "\n", + "Overall, if you are passionate about AI and eager to collaborate with like-minded individuals, Hugging Face may be the perfect place for you to thrive." + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "Traducción en Español (Spanish Translation):\n" + ] + }, + { + "data": { + "text/markdown": [ + "# HuggingFace: La Verdadera Historia\n", + "\n", + "## Lo Que Realmente Hacen\n", + "Hugging Face es una plataforma pionera diseñada para facilitar la colaboración dentro de la comunidad de aprendizaje automático (ML). En su núcleo, Hugging Face proporciona un centro integral para que los usuarios descubran, creen y colaboren en modelos, conjuntos de datos y aplicaciones. Con una extensa biblioteca de más de 400,000 modelos y 100,000 conjuntos de datos, la plataforma sirve como un recurso vital tanto para practicantes novatos como avanzados en el campo de la IA. Además, Hugging Face ofrece soluciones especializadas, como planes de Compute y Enterprise, que satisfacen las rigurosas demandas de organizaciones que buscan aprovechar tecnologías de IA de vanguardia.\n", + "\n", + "La plataforma también incluye características dinámicas como “Espacios”, que permiten a los usuarios ejecutar y demostrar fácilmente sus aplicaciones de aprendizaje automático. Hugging Face adopta activamente principios de código abierto, proporcionando herramientas poderosas como Transformers y Diffusers, que son fundamentales para diversas tareas de ML, desde la generación de texto hasta el análisis de imágenes.\n", + "\n", + "## Cultura Empresarial y Atmosfera\n", + "En Hugging Face, la misión de la empresa gira en torno a construir una comunidad acogedora y colaborativa que trascienda los silos corporativos tradicionales. El ambiente de trabajo enfatiza la inclusividad, valorando diversas perspectivas que contribuyen a la innovación en IA. Se anima a los empleados a ser parte de un esfuerzo colectivo que moldea el futuro del aprendizaje automático, fomentando una atmósfera donde la experimentación y la creatividad pueden prosperar.\n", + "\n", + "La empresa valora los principios de código abierto y brinda a sus empleados oportunidades para interactuar con una comunidad global de desarrolladores e investigadores. Esta cultura de transparencia y compartición de conocimientos no solo mejora el crecimiento personal, sino que también impulsa la misión de la organización hacia adelante, haciendo de Hugging Face un lugar vibrante para cultivar la carrera de uno en IA.\n", + "\n", + "## Por Qué Piensan Que Son Especiales\n", + "Hugging Face se distingue por su compromiso con el desarrollo de código abierto y la colaboración comunitaria. Su extenso catálogo de modelos y conjuntos de datos lo posiciona como un recurso imprescindible en la industria de IA, atendiendo una amplia gama de aplicaciones en diferentes modalidades, incluyendo texto, audio y datos visuales. La versatilidad de la plataforma asegura que los usuarios, desde desarrolladores individuales hasta grandes empresas, puedan acelerar sus proyectos de aprendizaje automático sin barreras.\n", + "\n", + "Además, Hugging Face proporciona soluciones de nivel empresarial que combinan seguridad avanzada con soporte dedicado, convirtiéndolo en un socio ideal para las organizaciones. Con más de 50,000 empresas utilizando sus servicios, Hugging Face se ha establecido como un líder en tecnología de IA, inspirando confianza y fomentando la adopción en diversas industrias.\n", + "\n", + "## La Letra Pequeña\n", + "Hugging Face opera con un enfoque claro en ofrecer valor a sus usuarios mientras mantiene altos estándares éticos en el desarrollo de IA. La plataforma ofrece múltiples niveles de precios, comenzando desde tan solo $0.60 por hora para computación GPU, permitiendo a los usuarios elegir un modelo que se adapte mejor a sus necesidades. Para las empresas, los planes competitivos que comienzan en $20 por usuario al mes incluyen características como Inicio de Sesión Único, soporte prioritario y controles de acceso, garantizando un enfoque a medida para los requisitos de cada organización.\n", + "\n", + "Hugging Face también mantiene documentación exhaustiva y recursos para los usuarios, apoyando su viaje de novato a experto. Los acuerdos de usuario transparentes y los términos de servicio protegen aún más las expectativas tanto de los contribuyentes como de los usuarios de la plataforma.\n", + "\n", + "## ¿Deberías Unirte?\n", + "### Ventajas\n", + "- **Ambiente Innovador**: Trabaja en la vanguardia de la IA y sé parte de una comunidad que valora la creatividad y la colaboración.\n", + "- **Recursos Extensos**: Ten acceso a una plétora de modelos, conjuntos de datos y herramientas que pueden mejorar significativamente tu trabajo.\n", + "- **Crecimiento Profesional**: Aprovecha las oportunidades de desarrollo personal y expande tu red profesional dentro de un ecosistema de código abierto.\n", + "\n", + "### Desventajas\n", + "- **Rápido Desarrollo**: La naturaleza en rápida evolución de las tecnologías de IA puede requerir un aprendizaje y adaptación continuos.\n", + "- **Desafíos de Código Abierto**: Contribuir a proyectos de código abierto a veces puede significar navegar dinámicas de colaboración complejas.\n", + "- **Altas Expectativas**: Trabajar con organizaciones líderes puede resultar en un ambiente de trabajo exigente con altos estándares de desempeño.\n", + "\n", + "En general, si eres un apasionado de la IA y estás ansioso por colaborar con individuos que piensan de manera similar, Hugging Face puede ser el lugar perfecto para que prosperes." + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Found links: {\n", + " \"links\": [\n", + " {\n", + " \"type\": \"homepage\",\n", + " \"url\": \"https://huggingface.co/\"\n", + " },\n", + " {\n", + " \"type\": \"models page\",\n", + " \"url\": \"https://huggingface.co/models\"\n", + " },\n", + " {\n", + " \"type\": \"datasets page\",\n", + " \"url\": \"https://huggingface.co/datasets\"\n", + " },\n", + " {\n", + " \"type\": \"spaces page\",\n", + " \"url\": \"https://huggingface.co/spaces\"\n", + " },\n", + " {\n", + " \"type\": \"blog\",\n", + " \"url\": \"https://huggingface.co/blog\"\n", + " },\n", + " {\n", + " \"type\": \"enterprise page\",\n", + " \"url\": \"https://huggingface.co/enterprise\"\n", + " },\n", + " {\n", + " \"type\": \"pricing page\",\n", + " \"url\": \"https://huggingface.co/pricing\"\n", + " },\n", + " {\n", + " \"type\": \"documentation\",\n", + " \"url\": \"https://huggingface.co/docs\"\n", + " },\n", + " {\n", + " \"type\": \"join page\",\n", + " \"url\": \"https://huggingface.co/join\"\n", + " },\n", + " {\n", + " \"type\": \"learning resources\",\n", + " \"url\": \"https://huggingface.co/learn\"\n", + " },\n", + " {\n", + " \"type\": \"AI Tasks\",\n", + " \"url\": \"https://huggingface.co/tasks\"\n", + " },\n", + " {\n", + " \"type\": \"GitHub page\",\n", + " \"url\": \"https://github.com/huggingface\"\n", + " },\n", + " {\n", + " \"type\": \"community discussion forum\",\n", + " \"url\": \"https://discuss.huggingface.co\"\n", + " }\n", + " ]\n", + "}\n" + ] + }, + { + "data": { + "text/markdown": [ + "# Hugging Face: The Real Story\n", + "\n", + "## What They Actually Do\n", + "Hugging Face is at the forefront of the artificial intelligence revolution, serving as a collaborative platform where the machine learning community can access, share, and enhance models and datasets. They offer an extensive repository of over 400,000 models and 100,000 datasets, encompassing various modalities including text, image, video, audio, and even 3D. Hugging Face enables users to create, discover, and collaborate on machine learning applications efficiently while providing tools such as the HF Open Source stack and paid Compute solutions to accelerate the development process.\n", + "\n", + "The company also promotes innovative libraries and tools, such as Transformers, Diffusers, and Tokenizers, which are essential for both research and production in state-of-the-art machine learning applications. By hosting unlimited public models and enabling access to advanced enterprise-grade solutions, Hugging Face is committed to building the future of AI technology collaboratively.\n", + "\n", + "## Company Culture & Vibes\n", + "Hugging Face fosters a vibrant and inclusive culture heavily rooted in community collaboration and open-source principles. They are dedicated to breaking down barriers in AI development, making cutting-edge technology accessible to everyone. Hugging Face not only encourages creativity and innovation among its team members but also emphasizes the importance of support and shared learning within the broader machine learning community.\n", + "\n", + "The environment at Hugging Face is characterized by a strong spirit of collaboration; individuals work together to solve challenges and celebrate each other’s successes. Upholding values centered around transparency and community engagement, employees are often motivated by a shared vision of empowering the AI community to build responsibly and effectively.\n", + "\n", + "## Why They Think They're Special\n", + "Hugging Face distinguishes itself by being the home of a growing AI community that thrives on collaboration. With a platform that hosts more than 50,000 organizations, including major players like Amazon, Microsoft, and Google, they have created a powerful ecosystem that supports collective growth and innovation in AI. Their commitment to open-source solutions further ensures that advancements in machine learning are a collective effort rather than the domain of a few.\n", + "\n", + "Moreover, their pioneering integration of state-of-the-art models, comprehensive datasets, and user-friendly deployment options creates a unique offering that stands out in the rapidly evolving AI landscape. Hugging Face’s focus on community building, alongside their robust enterprise solutions, positions them as a leader in the AI technology industry.\n", + "\n", + "## The Fine Print\n", + "Working with or for Hugging Face means immersing yourself in a mission-driven environment where innovation and collaboration form the backbone of operations. Employees enjoy access to extensive resources, including advanced tools for machine learning development, while also engaging in continuous learning opportunities. The company prides itself on maintaining a supportive and inclusive atmosphere, with a promise of growth both individually and collectively.\n", + "\n", + "Hugging Face also provides enterprise solutions that include dedicated support, resource groups, and advanced security measures, making it an attractive choice for organizations seeking to secure their AI environments. Their scalable platform is tailored for teams of all sizes, ensuring that users can effectively build and deploy AI solutions per their specific needs.\n", + "\n", + "## Should You Join?\n", + "### Pros:\n", + "- **Collaborative Culture:** Work in an environment that values teamwork and community knowledge-sharing.\n", + "- **Leading Technology:** Access to cutting-edge tools and resources, ensuring you stay ahead in AI development.\n", + "- **Diverse Opportunities:** Engage with a broad range of projects across different modalities and industries.\n", + "- **Mission-Driven:** Contribute to a growing initiative that aims to democratize AI technology.\n", + "\n", + "### Cons:\n", + "- **Pace of Change:** The rapid evolution of the technology can be overwhelming for some.\n", + "- **Resource Allocation:** With a focus on community support, some projects may require more time for completion.\n", + "- **Complexity in Collaboration:** Navigating collaborative projects can sometimes introduce challenges in alignment and communication.\n", + "\n", + "In conclusion, joining Hugging Face means becoming part of a forward-thinking community that is shaping the future of AI, while offering a unique blend of challenges and rewards for its members." + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], "source": [ - "def create_brochure(company_name, url):\n", + "# def create_brochure(company_name, url):\n", + "# response = openai.chat.completions.create(\n", + "# model=MODEL,\n", + "# messages=[\n", + "# {\"role\": \"system\", \"content\": system_prompt},\n", + "# {\"role\": \"user\", \"content\": get_brochure_user_prompt(company_name, url)}\n", + "# ],\n", + "# )\n", + "# result = response.choices[0].message.content\n", + "# display(Markdown(result))\n", + "\n", + "\n", + "def create_brochure(company_name, url, industry_type=None, tone=\"snarky\", translate=False):\n", + " # Define available tones\n", + " tones = {\n", + " \"snarky\": \"use a sarcastic and witty tone\",\n", + " \"professional\": \"use a formal but engaging tone\",\n", + " \"casual\": \"use a friendly and conversational tone\",\n", + " \"enthusiastic\": \"use an excited and energetic tone\"\n", + " }\n", + " \n", + " # Base system prompt\n", + " base_system_prompt = \"\"\"You are an assistant that analyzes website content and creates a brochure with specified sections.\n", + "\n", + " FORMAT REQUIRED:\n", + " # [Company Name]: The Real Story\n", + "\n", + " ## What They Actually Do\n", + " [A description of their main products/services]\n", + "\n", + " ## Company Culture & Vibes\n", + " [A take on their work environment and values]\n", + "\n", + " ## Why They Think They're Special\n", + " [An overview of their unique selling points]\n", + "\n", + " ## The Fine Print\n", + " [Details about working with/for them]\n", + "\n", + " ## Should You Join?\n", + " [A pros and cons list for potential employees]\n", + "\n", + " RULES:\n", + " - Keep sections in the exact order specified above\n", + " - Use markdown formatting\n", + " - Use the specified tone\n", + " - Include specific details from the website content\n", + " - Keep each section to 2-3 paragraphs maximum\"\"\"\n", + " \n", + " # Create the modified system prompt with the specified tone\n", + " system_prompt = base_system_prompt.replace(\n", + " \"Use the specified tone\",\n", + " tones.get(tone, \"use a sarcastic and witty tone\")\n", + " )\n", + " \n", " response = openai.chat.completions.create(\n", " model=MODEL,\n", " messages=[\n", " {\"role\": \"system\", \"content\": system_prompt},\n", - " {\"role\": \"user\", \"content\": get_brochure_user_prompt(company_name, url)}\n", - " ],\n", + " {\"role\": \"user\", \"content\": get_brochure_user_prompt(company_name, url, industry_type)}\n", + " ],\n", " )\n", " result = response.choices[0].message.content\n", - " display(Markdown(result))" + " display(Markdown(result))\n", + "\n", + " # If translation is requested, translate and display\n", + " if translate:\n", + " print(\"\\nTraducción en Español (Spanish Translation):\")\n", + " spanish_version = translate_to_spanish(result)\n", + " display(Markdown(spanish_version))\n", + " \n", + " return result, spanish_version\n", + " \n", + " return result\n", + "\n", + "\n", + "# Get both English and Spanish versions\n", + "brochure, spanish = create_brochure(\n", + " \"HuggingFace\", \n", + " \"https://huggingface.co\", \n", + " \"AI technology\", \n", + " tone=\"professional\",\n", + " translate=True\n", + ")\n", + "\n", + "# Just English version\n", + "english_only = create_brochure(\n", + " \"HuggingFace\", \n", + " \"https://huggingface.co\", \n", + " \"AI technology\", \n", + " tone=\"professional\"\n", + ")\n", + "\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 126, "id": "e093444a-9407-42ae-924a-145730591a39", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Found links: {\n", + " \"links\": []\n", + "}\n" + ] + }, + { + "data": { + "text/markdown": [ + "# Stanford: The Real Story\n", + "\n", + "## What They Actually Do\n", + "Stanford operates within the AI technology industry, specializing in providing expert guidance and leadership in cybersecurity. Led by Jon Stanford, the company offers interim, fractional, and virtual security leadership to a diverse range of organizations, including enterprise, mid-market, venture capital, and private equity firms. Additionally, as the CEO and Managing Principal of Stanford Cyber Group LLC, they also engage with early-stage technology companies, focusing on security preparedness and ROI.\n", + "\n", + "In a rapidly evolving security landscape filled with complexities, Stanford aids clients in navigating through these challenges. They emphasize emerging AI security, governance, and regulatory requirements, ensuring that businesses can implement effective security measures while aligning with industry standards.\n", + "\n", + "## Company Culture & Vibes\n", + "At Stanford, the culture is driven by a commitment to understanding and addressing the unique security challenges faced by their clients. The work environment fosters collaboration between seasoned professionals who leverage their extensive expertise to provide tailored solutions. This culture of partnership ensures that every client receives personalized attention and strategic insights that are essential for navigating critical security decisions.\n", + "\n", + "The company values transparency and open communication, both within the team and with clients. This commitment to dialogues promotes a sense of trust and accountability, enabling Stanford to build lasting relationships with their numerous stakeholders.\n", + "\n", + "## Why They Think They're Special\n", + "Stanford distinguishes itself through its unparalleled expertise in cybersecurity and its deep understanding of the complexities surrounding emerging AI technologies. They pride themselves on not just being advisors but partners who actively engage with their clients to develop clear strategies that lead to critical outcomes. Their global experience across various sectors, including financial services, retail, and entertainment, equips them to handle diverse security needs.\n", + "\n", + "The emphasis on a fractional and virtual leadership model allows organizations to engage with high-level security expertise without the need for full-time hires, making effective security management more accessible for businesses of all sizes.\n", + "\n", + "## The Fine Print\n", + "Working with Stanford means gaining access to a suite of specialized services designed to enhance your organization's security posture. Clients can expect a strategic approach that addresses not just immediate security concerns but also looks at long-term goals and investments. The firm focuses on clear communication and tailored solutions, ensuring that each engagement is aligned with the clients' specific needs.\n", + "\n", + "Stanford's involvement spans across various industries, allowing them to bring a wealth of knowledge to every project. Their focus on both security preparedness and ROI means that they strive to deliver measurable outcomes that positively impact the bottom line.\n", + "\n", + "## Should You Join?\n", + "### Pros:\n", + "- **Expert Leadership**: Gain insights and guidance from seasoned professionals with extensive experience in cybersecurity.\n", + "- **Flexible Engagement**: Opportunity to work in a model that supports fractional and virtual leadership roles, allowing for diverse and dynamic project engagements.\n", + "- **Broad Industry Exposure**: Work with clients across various sectors, enhancing your experience and skills in different environments.\n", + "\n", + "### Cons:\n", + "- **High Expectations**: The complexity of client needs means that the pressure to deliver results can be significant.\n", + "- **Dynamic Environment**: Rapid changes in technology and cybersecurity regulations require constant learning and adaptation.\n", + "- **Potentially Irregular Workload**: Depending on client demands, project work may lead to variable workloads, which may not provide the consistency some professionals prefer." + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "\"# Stanford: The Real Story\\n\\n## What They Actually Do\\nStanford operates within the AI technology industry, specializing in providing expert guidance and leadership in cybersecurity. Led by Jon Stanford, the company offers interim, fractional, and virtual security leadership to a diverse range of organizations, including enterprise, mid-market, venture capital, and private equity firms. Additionally, as the CEO and Managing Principal of Stanford Cyber Group LLC, they also engage with early-stage technology companies, focusing on security preparedness and ROI.\\n\\nIn a rapidly evolving security landscape filled with complexities, Stanford aids clients in navigating through these challenges. They emphasize emerging AI security, governance, and regulatory requirements, ensuring that businesses can implement effective security measures while aligning with industry standards.\\n\\n## Company Culture & Vibes\\nAt Stanford, the culture is driven by a commitment to understanding and addressing the unique security challenges faced by their clients. The work environment fosters collaboration between seasoned professionals who leverage their extensive expertise to provide tailored solutions. This culture of partnership ensures that every client receives personalized attention and strategic insights that are essential for navigating critical security decisions.\\n\\nThe company values transparency and open communication, both within the team and with clients. This commitment to dialogues promotes a sense of trust and accountability, enabling Stanford to build lasting relationships with their numerous stakeholders.\\n\\n## Why They Think They're Special\\nStanford distinguishes itself through its unparalleled expertise in cybersecurity and its deep understanding of the complexities surrounding emerging AI technologies. They pride themselves on not just being advisors but partners who actively engage with their clients to develop clear strategies that lead to critical outcomes. Their global experience across various sectors, including financial services, retail, and entertainment, equips them to handle diverse security needs.\\n\\nThe emphasis on a fractional and virtual leadership model allows organizations to engage with high-level security expertise without the need for full-time hires, making effective security management more accessible for businesses of all sizes.\\n\\n## The Fine Print\\nWorking with Stanford means gaining access to a suite of specialized services designed to enhance your organization's security posture. Clients can expect a strategic approach that addresses not just immediate security concerns but also looks at long-term goals and investments. The firm focuses on clear communication and tailored solutions, ensuring that each engagement is aligned with the clients' specific needs.\\n\\nStanford's involvement spans across various industries, allowing them to bring a wealth of knowledge to every project. Their focus on both security preparedness and ROI means that they strive to deliver measurable outcomes that positively impact the bottom line.\\n\\n## Should You Join?\\n### Pros:\\n- **Expert Leadership**: Gain insights and guidance from seasoned professionals with extensive experience in cybersecurity.\\n- **Flexible Engagement**: Opportunity to work in a model that supports fractional and virtual leadership roles, allowing for diverse and dynamic project engagements.\\n- **Broad Industry Exposure**: Work with clients across various sectors, enhancing your experience and skills in different environments.\\n\\n### Cons:\\n- **High Expectations**: The complexity of client needs means that the pressure to deliver results can be significant.\\n- **Dynamic Environment**: Rapid changes in technology and cybersecurity regulations require constant learning and adaptation.\\n- **Potentially Irregular Workload**: Depending on client demands, project work may lead to variable workloads, which may not provide the consistency some professionals prefer.\"" + ] + }, + "execution_count": 126, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "create_brochure(\"HuggingFace\", \"https://huggingface.com\")" + "create_brochure(\"Stanford\", \"https://stanford.co\", \"AI technology\", tone=\"professional\")\n" ] }, { @@ -350,7 +3668,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 72, "id": "51db0e49-f261-4137-aabe-92dd601f7725", "metadata": {}, "outputs": [], @@ -375,24 +3693,232 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 93, "id": "56bf0ae3-ee9d-4a72-9cd6-edcac67ceb6d", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Found links: {\n", + " \"links\": [\n", + " {\n", + " \"type\": \"homepage\",\n", + " \"url\": \"https://stanford.com/\"\n", + " },\n", + " {\n", + " \"type\": \"academic programs\",\n", + " \"url\": \"https://www.stanford.edu/academics/\"\n", + " },\n", + " {\n", + " \"type\": \"research\",\n", + " \"url\": \"https://www.stanford.edu/research/\"\n", + " },\n", + " {\n", + " \"type\": \"campus life\",\n", + " \"url\": \"https://www.stanford.edu/campus-life/\"\n", + " },\n", + " {\n", + " \"type\": \"admissions\",\n", + " \"url\": \"https://www.stanford.edu/admission/\"\n", + " },\n", + " {\n", + " \"type\": \"about page\",\n", + " \"url\": \"https://www.stanford.edu/about/\"\n", + " },\n", + " {\n", + " \"type\": \"events\",\n", + " \"url\": \"https://www.stanford.edu/events/\"\n", + " },\n", + " {\n", + " \"type\": \"news\",\n", + " \"url\": \"https://www.stanford.edu/news/\"\n", + " },\n", + " {\n", + " \"type\": \"health care\",\n", + " \"url\": \"https://www.stanford.edu/health-care/\"\n", + " },\n", + " {\n", + " \"type\": \"student services\",\n", + " \"url\": \"https://studentaffairs.stanford.edu/\"\n", + " },\n", + " {\n", + " \"type\": \"alumni\",\n", + " \"url\": \"http://alumni.stanford.edu/\"\n", + " },\n", + " {\n", + " \"type\": \"visit\",\n", + " \"url\": \"https://visit.stanford.edu\"\n", + " },\n", + " {\n", + " \"type\": \"career services\",\n", + " \"url\": \"https://careersearch.stanford.edu/\"\n", + " }\n", + " ]\n", + "}\n" + ] + }, + { + "data": { + "text/markdown": [ + "# Welcome to Stanford University: Your Gateway to Overachieving!\n", + "\n", + "## Academics: Because Mediocrity is Not an Option\n", + "At Stanford, we’ve decided that our students shouldn’t just take a class or two. No, they should aim for nothing less than to “engage as leaders in a complex world.” It’s quite the overachieving agenda, but who wouldn’t want to be thrust into a whirlwind of academic excellence? With seven schools crammed full of fancy degrees, you’re bound to find something that not only fills your brain but puts your future on a silver platter!\n", + "\n", + "## Campus Life: The Royal Treatment\n", + "If you thought living in a campus dorm was synonymous with sharing a cramped space and cold pizza, think again! At Stanford, you can enjoy diverse housing options, extraordinary dining (because the cafeteria food definitely isn’t the typical fare), and a whopping **600 student organizations**, because what’s life without endless extracurricular commitments? Who needs free time anyway?\n", + "\n", + "## Health Care: Leading the Revolution (And the Waiting Room)\n", + "We’re revolutionizing precision health over here, one groundbreaking AI discovery at a time. Whether you’re seeking treatment for a mild headache or trying to outsmart Type 2 diabetes, we've got you covered—just don't mind the 10-hour wait for an appointment. After all, innovation takes time, right?\n", + "\n", + "## Research: For the Curious Overachiever\n", + "Did we mention our research budget is a cool **$1.98 billion**? That means we’re throwing money at groundbreaking research without looking back. Want to study the effects of climate change during your lunch break? Go ahead! With **20 libraries** holding over **12 million items**, you’ll have all the resources you need to deeply ponder life’s most pressing questions... after discovering what’s for lunch.\n", + "\n", + "## Career Opportunities: The Elite Training Ground\n", + "Looking for a job? Why not join the ranks of the academic elite? Stanford isn’t just about enrolling in courses; it’s about embarking on a life of continuous learning with truly grave expectations. We seek recruits who possess an “abundance of energy and curiosity”—because, apparently, lounging in your pajamas watching Netflix won’t cut it.\n", + "\n", + "## Customer Experience: Seriously, Who's In Charge Here?\n", + "At Stanford, we have a ton of different \"customers.\" You’ve got students, alumni, the families of students (gosh, we hope they don't need to catch their breath), and faculty making sure everything runs smoothly. You might think it’s chaotic, but it’s just Stanford's way of showing how seriously we take excellence in education. \n", + "\n", + "---\n", + "\n", + "### In Conclusion:\n", + "Stanford University - where dreams don’t just die; they’re meticulously refined to become the next big thing in the world. So, are you ready to overcommit your life to endless possibilities and relentless striving for excellence? Of course, you are! Welcome to the Farm." + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], "source": [ - "stream_brochure(\"HuggingFace\", \"https://huggingface.co\")" + "stream_brochure(\"Stanford\", \"https://stanford.com\")" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 94, "id": "fdb3f8d8-a3eb-41c8-b1aa-9f60686a653b", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Found links: {\n", + " \"links\": [\n", + " {\n", + " \"type\": \"academics page\",\n", + " \"url\": \"https://www.stanford.edu/academics/\"\n", + " },\n", + " {\n", + " \"type\": \"research page\",\n", + " \"url\": \"https://www.stanford.edu/research/\"\n", + " },\n", + " {\n", + " \"type\": \"campus life page\",\n", + " \"url\": \"https://www.stanford.edu/campus-life/\"\n", + " },\n", + " {\n", + " \"type\": \"admissions page\",\n", + " \"url\": \"https://www.stanford.edu/admission/\"\n", + " },\n", + " {\n", + " \"type\": \"about page\",\n", + " \"url\": \"https://www.stanford.edu/about/\"\n", + " },\n", + " {\n", + " \"type\": \"health care page\",\n", + " \"url\": \"https://www.stanford.edu/health-care/\"\n", + " },\n", + " {\n", + " \"type\": \"events page\",\n", + " \"url\": \"https://www.stanford.edu/events/\"\n", + " },\n", + " {\n", + " \"type\": \"life-long learning page\",\n", + " \"url\": \"https://lifelonglearning.stanford.edu/\"\n", + " },\n", + " {\n", + " \"type\": \"student gateway\",\n", + " \"url\": \"https://www.stanford.edu/student-gateway/\"\n", + " },\n", + " {\n", + " \"type\": \"faculty and staff gateway\",\n", + " \"url\": \"https://www.stanford.edu/faculty-staff-gateway/\"\n", + " },\n", + " {\n", + " \"type\": \"alumni page\",\n", + " \"url\": \"http://alumni.stanford.edu/\"\n", + " },\n", + " {\n", + " \"type\": \"giving page\",\n", + " \"url\": \"https://giving.stanford.edu/\"\n", + " },\n", + " {\n", + " \"type\": \"career services page\",\n", + " \"url\": \"https://careersearch.stanford.edu/\"\n", + " }\n", + " ]\n", + "}\n" + ] + }, + { + "data": { + "text/markdown": [ + "# Welcome to Stanford: The Exclusive Club of Overachievers\n", + "\n", + "### Mission: World Domination (or Something Like That) \n", + "Stanford was plopped into existence nearly 150 years ago with the grand mission of changing the world. Yes, while you were contemplating your cereal choices this morning, they were busy plotting to \"educate students for lives of leadership and contribution with integrity.\" Because who doesn’t want their kids to grow up to be absolute pillars of society, right?\n", + "\n", + "---\n", + "\n", + "### \"Academics”: The Only Place You Can Throw Money and Time \n", + "Sure, they offer a rich learning experience that you probably can’t find anywhere else. Seven whole schools to choose from: *Medicine, Law, Humanities & Sciences, Engineering, Education, Sustainability,* and *Business.* Imagine having to narrow down your future to just one of those paths. No pressure!\n", + "\n", + "---\n", + "\n", + "### Research: Sponsored Budget of Nearly Two Billion Dollars \n", + "That’s right, they've got a whopping $1.98 billion in sponsored research funding. Just think! With that kind of cash, you could fund a small country or, you know, an AI model that predicts your demise after stressing over deadlines.\n", + "\n", + "---\n", + "\n", + "### Customers or... You Mean Students? \n", + "Here, you'll find a kaleidoscope of diverse housing, *over 600 student organizations,* and exceptional dining (because who needs to eat ramen when you can have artisanal avocado toast?). Are you ready to live the dream?\n", + "\n", + "---\n", + "\n", + "### Careers: Join the Elite Ranks or Don't \n", + "Why join Stanford, you ask? Besides the whole \"changing the world\" thing, you also have the opportunity to work alongside some of the brightest minds on the planet. It's like being invited to a dinner party where everyone else is a Nobel laureate and you just enjoy the food. \n", + "\n", + "---\n", + "\n", + "### Stanford's Campus Life: An Instagrammer's Paradise Personified\n", + "Vibrant, colorful and oh-so-inventive; Environmentally friendly? Check. With state-of-the-art facilities and a rich tradition of creativity, you’ll blend in like a model on a magazine cover. And don’t even get us started on their athletics program. A staggering 136 NCAA championships might just give you an exercise-induced meltdown. \n", + "\n", + "---\n", + "\n", + "### The Conclusion: \n", + "If you've got the ambition of a thousand suns and the desperation to succeed, Stanford is basically waiting for you with open arms. Just remember, if you can’t contribute to a better world and you're contemplating your life choices, there’s always the chance to grab a latte and try again. \n", + "\n", + "*Join Stanford University where the competition is fierce, the research is boundless, and the dining halls serve food better than your last three dates!* 🚀" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], "source": [ "# Try changing the system prompt to the humorous version when you make the Brochure for Hugging Face:\n", "\n", - "stream_brochure(\"HuggingFace\", \"https://huggingface.co\")" + "stream_brochure(\"Stanford\", \"https://stanford.com\")" ] }, {