Browse Source

week1 and week2 exercies

pull/18/head
Sanjay Semwal 5 months ago
parent
commit
81920d9b9b
  1. 284
      week1/day1.ipynb
  2. 205
      week1/day2 EXERCISE.ipynb
  3. 1543
      week1/day5.ipynb
  4. 593
      week1/week1 EXERCISE.ipynb

284
week1/day1.ipynb

@ -69,7 +69,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "4e2a9393-7767-488e-a8bf-27c12dca35bd",
"metadata": {},
"outputs": [],
@ -108,18 +108,10 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "7b87cadb-d513-4303-baee-a37b6f938e4d",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"API key found and looks good so far!\n"
]
}
],
"outputs": [],
"source": [
"# Load environment variables in a file called .env\n",
"\n",
@ -140,7 +132,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "019974d9-f3ad-4a8a-b5f9-0a3719aea2d3",
"metadata": {},
"outputs": [],
@ -154,7 +146,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": null,
"id": "c5e793b2-6775-426a-a139-4848291d0463",
"metadata": {},
"outputs": [],
@ -177,23 +169,10 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": null,
"id": "2ef960cf-6dc2-4cda-afb3-b38be12f4c97",
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'soup' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[23], line 3\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;66;03m# Let's try one out\u001b[39;00m\n\u001b[0;32m----> 3\u001b[0m ed \u001b[38;5;241m=\u001b[39m \u001b[43mWebsite\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mhttps://jaivikhimalay.com\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m 4\u001b[0m \u001b[38;5;66;03m#ed = Website(\"https://edwarddonner.com\")\u001b[39;00m\n\u001b[1;32m 5\u001b[0m \u001b[38;5;28mprint\u001b[39m(ed\u001b[38;5;241m.\u001b[39mtitle)\n",
"Cell \u001b[0;32mIn[22], line 17\u001b[0m, in \u001b[0;36mWebsite.__init__\u001b[0;34m(self, url)\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39murl \u001b[38;5;241m=\u001b[39m url\n\u001b[1;32m 14\u001b[0m response \u001b[38;5;241m=\u001b[39m requests\u001b[38;5;241m.\u001b[39mget(url)\n\u001b[0;32m---> 17\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mtext \u001b[38;5;241m=\u001b[39m \u001b[43msoup\u001b[49m\u001b[38;5;241m.\u001b[39mbody\u001b[38;5;241m.\u001b[39mget_text(separator\u001b[38;5;241m=\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m, strip\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m)\n",
"\u001b[0;31mNameError\u001b[0m: name 'soup' is not defined"
]
}
],
"outputs": [],
"source": [
"# Let's try one out. Change the website and add print statements to follow along.\n",
"\n",
@ -223,7 +202,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"id": "abdb8417-c5dc-44bc-9bee-2e059d162699",
"metadata": {},
"outputs": [],
@ -237,7 +216,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"id": "f0275b1b-7cfe-4f9d-abfa-7650d378da0c",
"metadata": {},
"outputs": [],
@ -255,71 +234,10 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"id": "26448ec4-5c00-4204-baec-7df91d11ff2e",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"You are looking at a website titled Jaivik Himalay\n",
"The contents of this website is as follows; please provide a short summary of this website in markdown. If it includes news or announcements, then summarize these too.\n",
"\n",
"0\n",
"Skip to Content\n",
"Services\n",
"About\n",
"Contact\n",
"Open Menu\n",
"Close Menu\n",
"Services\n",
"About\n",
"Contact\n",
"Open Menu\n",
"Close Menu\n",
"Services\n",
"About\n",
"Contact\n",
"Enhance the accessibility of your products and services to customers\n",
"Application Architecture, Design & Development Services\n",
"Engaging and solving customers’ requirements to automate their business processes, by transforming requirements into a ready to use products.\n",
"Application Refactoring, Performance Improvement & Integration Services\n",
"Keeping clients by leveraging the latest practices and technologies in the industry to transform their outdated and sluggish systems into ones that are incredibly efficient.\n",
"Distribution Services\n",
"Assisting companies in meeting their requirements by sourcing a diverse range of products from both local and global markets.\n",
"Read More\n",
"Services\n",
"Application Architecture, Design & Development Services\n",
"We offer support to small and medium-sized businesses in developing their products or APIs from the initial concept to the launch stage. This encompasses every stage of the product life cycle.\n",
"Application Refactoring , Performance Improvement & Integration Services\n",
"With the support of the experience team, we can transform applications that were created using outdated technology. Applications that don't scale or perform well can also be redesigned, tested, and prepared for launch.\n",
"Distribution Services\n",
"We can assist you in lowering the price of importing or exporting goods to and from the United States and other nations. We are able to transport both domestically and abroad to a large number of businesses.\n",
"About Us\n",
"Group of seasoned experts that have spent the last 20 years working to solve clients' complex issues in the areas of payments, gift cards, logistics, and more.\n",
"We are situated in California's Silicon Valley.\n",
"Contact Us\n",
"Interested in working together? Fill out some info and we will be in touch shortly.\n",
"Name\n",
"*\n",
"First Name\n",
"Last Name\n",
"Email\n",
"*\n",
"Message\n",
"*\n",
"Thank you for contacting us! Will get back to you soon…\n",
"Location\n",
"Dublin, CA, 94568\n",
"Contact\n",
"info@jaivikhimalay.com\n",
"© Copyright 2024\n",
"Jaivik Himalay LLC\n",
".\n"
]
}
],
"outputs": [],
"source": [
"print(user_prompt_for(ed))"
]
@ -343,7 +261,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"id": "0134dfa4-8299-48b5-b444-f2a8c3403c88",
"metadata": {},
"outputs": [],
@ -359,24 +277,10 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"id": "36478464-39ee-485c-9f3f-6a4e458dbc9c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[{'role': 'system',\n",
" 'content': 'You are an assistant that analyzes the contents of a website and provides a short summary, ignoring text that might be navigation related. Respond in markdown.'},\n",
" {'role': 'user',\n",
" 'content': \"You are looking at a website titled Jaivik Himalay\\nThe contents of this website is as follows; please provide a short summary of this website in markdown. If it includes news or announcements, then summarize these too.\\n\\n0\\nSkip to Content\\nServices\\nAbout\\nContact\\nOpen Menu\\nClose Menu\\nServices\\nAbout\\nContact\\nOpen Menu\\nClose Menu\\nServices\\nAbout\\nContact\\nEnhance the accessibility of your products and services to customers\\nApplication Architecture, Design & Development Services\\nEngaging and solving customers’ requirements to automate their business processes, by transforming requirements into a ready to use products.\\nApplication Refactoring, Performance Improvement & Integration Services\\nKeeping clients by leveraging the latest practices and technologies in the industry to transform their outdated and sluggish systems into ones that are incredibly efficient.\\nDistribution Services\\nAssisting companies in meeting their requirements by sourcing a diverse range of products from both local and global markets.\\nRead More\\nServices\\nApplication Architecture, Design & Development Services\\nWe offer support to small and medium-sized businesses in developing their products or APIs from the initial concept to the launch stage. This encompasses every stage of the product life cycle.\\nApplication Refactoring , Performance Improvement & Integration Services\\nWith the support of the experience team, we can transform applications that were created using outdated technology. Applications that don't scale or perform well can also be redesigned, tested, and prepared for launch.\\nDistribution Services\\nWe can assist you in lowering the price of importing or exporting goods to and from the United States and other nations. We are able to transport both domestically and abroad to a large number of businesses.\\nAbout Us\\nGroup of seasoned experts that have spent the last 20 years working to solve clients' complex issues in the areas of payments, gift cards, logistics, and more.\\nWe are situated in California's Silicon Valley.\\nContact Us\\nInterested in working together? Fill out some info and we will be in touch shortly.\\nName\\n*\\nFirst Name\\nLast Name\\nEmail\\n*\\nMessage\\n*\\nThank you for contacting us! Will get back to you soon…\\nLocation\\nDublin, CA, 94568\\nContact\\ninfo@jaivikhimalay.com\\n© Copyright 2024\\nJaivik Himalay LLC\\n.\"}]"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"# Try this out, and then try for a few more websites\n",
"\n",
@ -393,7 +297,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"id": "905b9919-aba7-45b5-ae65-81b3d1d78e34",
"metadata": {},
"outputs": [],
@ -412,28 +316,17 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": null,
"id": "05e38d41-dfa4-4b20-9c96-c46ea75d9fb5",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'# Summary of Edward Donner\\'s Website\\n\\nThe website \"Home - Edward Donner\" features Ed, a code enthusiast and LLM (Large Language Model) experimenter. He is the co-founder and CTO of Nebula.io, a company focused on utilizing AI to improve talent discovery and management. Previously, Ed founded the AI startup untapt, which was acquired in 2021.\\n\\n## Key Features:\\n- **Outsmart**: A platform for LLMs to compete in diplomacy and strategy.\\n- **About Ed**: Personal insights about his interests in coding, DJing, and tech news.\\n- **Expertise**: Highlights his work with proprietary LLMs and a patented matching model in the recruitment space.\\n\\n## Recent Announcements and Posts:\\n- **November 13, 2024**: Resources for mastering AI and LLM engineering.\\n- **October 16, 2024**: Resources for transitioning from software engineer to AI data scientist.\\n- **August 6, 2024**: Introduction to the Outsmart LLM arena concept.\\n- **June 26, 2024**: Guidance on choosing the right LLM with a toolkit and resources.'"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"summarize(\"https://edwarddonner.com\")"
]
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": null,
"id": "3d926d59-450e-4609-92ba-2d6f244f1342",
"metadata": {},
"outputs": [],
@ -447,41 +340,10 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": null,
"id": "3018853a-445f-41ff-9560-d925d1774b2f",
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"# Website Summary: Edward Donner\n",
"\n",
"Edward Donner's website serves as a personal platform showcasing his passion for coding, experimenting with Large Language Models (LLMs), and his professional background in AI. Ed is the co-founder and CTO of Nebula.io, an AI-driven company focused on talent discovery and management, and he previously founded the startup untapt, which was acquired in 2021.\n",
"\n",
"## Key Highlights:\n",
"\n",
"- **Outsmart**: A featured section dedicated to an arena where LLMs compete in diplomatic and strategic challenges.\n",
" \n",
"- **Professional Background**: \n",
" - Co-founder and CTO of Nebula.io, which utilizes AI to enhance talent engagement.\n",
" - Former CEO of untapt, an AI startup acquired in 2021.\n",
"\n",
"## Recent Posts:\n",
"1. **Mastering AI and LLM Engineering – Resources** (Published on November 13, 2024)\n",
"2. **From Software Engineer to AI Data Scientist – Resources** (Published on October 16, 2024)\n",
"3. **Outsmart LLM Arena – A battle of diplomacy and deviousness** (Published on August 6, 2024)\n",
"4. **Choosing the Right LLM: Toolkit and Resources** (Published on June 26, 2024)\n",
"\n",
"The website presents a blend of personal interests, professional expertise, and resources relevant to those in the field of AI and LLMs."
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"display_summary(\"https://edwarddonner.com\")"
]
@ -504,81 +366,20 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": null,
"id": "45d83403-a24c-44b5-84ac-961449b4008f",
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"# Summary of CNN Website\n",
"\n",
"CNN is a comprehensive news platform that offers the latest updates across various categories including US and global news, politics, business, health, entertainment, science, and sports. The website features a mix of articles, videos, and live broadcasts, focusing on breaking news and significant events worldwide.\n",
"\n",
"## Notable Headlines and Topics:\n",
"- **2024 Elections:** Coverage on upcoming elections in the US.\n",
"- **Ukraine-Russia War:** Ongoing updates and live news regarding the conflict.\n",
"- **Israel-Hamas War:** Reports and analyses related to the recent escalation in hostilities.\n",
"- **Black Friday Deals:** Highlighting early promotions and deals from various retailers.\n",
"- **Health:** Articles discussing various health-related topics, including tips and recent studies.\n",
"\n",
"## Recent Event Highlights:\n",
"- **Gaetz Withdrawal:** Matt Gaetz withdrew as Trump’s attorney general pick amid allegations of misconduct.\n",
"- **Sexual Assault Allegations:** Multiple stories covering serious allegations against political figures, including reports linked to Trump's nominees.\n",
"- **Ground Beef Recall:** An issue of possible E. coli contamination affecting consumers.\n",
"- **Air Travel:** Warnings about potential delays for upcoming Thanksgiving air traffic.\n",
"\n",
"CNN also emphasizes their multimedia content, offering access to live streaming, podcasts, and interactive features on trending topics. The site encourages user engagement through feedback on their ads and technical experiences. \n",
"\n",
"Overall, CNN stands as a key source for real-time news and political commentary, ensuring that readers and viewers stay informed on current events."
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"display_summary(\"https://cnn.com\")"
]
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": null,
"id": "75e9fd40-b354-4341-991e-863ef2e59db7",
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"# Anthropic Overview\n",
"\n",
"Anthropic is an AI safety and research company based in San Francisco, focused on developing advanced AI systems that prioritize safety and reliability. The company is known for its interdisciplinary team with expertise in machine learning (ML), physics, policy, and product development.\n",
"\n",
"## Key Offerings\n",
"\n",
"- **Claude 3.5 Sonnet:** The latest and most intelligent AI model launched by Anthropic.\n",
"- **Claude for Enterprise:** A tailored solution for businesses to leverage AI for efficiency and new revenue opportunities.\n",
"- **API Access:** Allows developers and organizations to integrate Claude into their applications.\n",
"\n",
"## Recent Announcements\n",
"\n",
"- **Introduction of Claude 3.5 Sonnet and Claude 3.5 Haiku:** New models released on October 22, 2024, aimed at enhancing AI capabilities.\n",
"- **Core Views on AI Safety:** A deeper discussion on AI safety published on March 8, 2023.\n",
"- **Research Paper on Constitutional AI:** Focuses on the concept of harmlessness derived from AI feedback, published on December 15, 2022.\n",
"\n",
"Anthropic emphasizes the importance of aligning AI systems with human values and creating products that ensure safe interactions with artificial intelligence."
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"display_summary(\"https://anthropic.com\")"
]
@ -669,43 +470,10 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": null,
"id": "682eff74-55c4-4d4b-b267-703edbc293c7",
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"# Jaivik Himalay Overview\n",
"\n",
"Jaivik Himalay is a company specializing in various services aimed at enhancing business processes, application development, and distribution solutions. The main offerings include:\n",
"\n",
"## Services\n",
"1. **Application Architecture, Design & Development**: Assistance for small to medium-sized businesses in developing products or APIs from concept to launch, covering all stages of the product lifecycle.\n",
" \n",
"2. **Application Refactoring & Performance Improvement**: Transforming outdated applications into efficient, scalable solutions through comprehensive redesign and testing.\n",
"\n",
"3. **Distribution Services**: Support for businesses in sourcing a diverse range of products locally and globally, with a focus on reducing import/export costs.\n",
"\n",
"## About Us\n",
"The company is based in Silicon Valley, California, and comprises a team of seasoned experts with over 20 years of experience in solving complex client issues in payments, gift cards, logistics, and more.\n",
"\n",
"For inquiries or collaboration, contact details are provided, and interested individuals can submit their information through the contact form.\n",
"\n",
"### Contact Information\n",
"- **Location**: Dublin, CA, 94568\n",
"- **Email**: info@jaivikhimalay.com\n",
"\n",
"*Note: The website does not mention any specific news or announcements.*"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"display_summary(\"https://jaivikhimalay.com\")"
]

205
week1/day2 EXERCISE.ipynb

@ -68,7 +68,7 @@
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": null,
"id": "4e2a9393-7767-488e-a8bf-27c12dca35bd",
"metadata": {},
"outputs": [],
@ -82,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": 44,
"execution_count": null,
"id": "29ddd15d-a3c5-4f4e-a678-873f56162724",
"metadata": {},
"outputs": [],
@ -96,7 +96,7 @@
},
{
"cell_type": "code",
"execution_count": 45,
"execution_count": null,
"id": "dac0a679-599c-441f-9bf2-ddc73d35b940",
"metadata": {},
"outputs": [],
@ -110,7 +110,7 @@
},
{
"cell_type": "code",
"execution_count": 46,
"execution_count": null,
"id": "7bb9c624-14f0-4945-a719-8ddb64f66f47",
"metadata": {},
"outputs": [],
@ -124,38 +124,10 @@
},
{
"cell_type": "code",
"execution_count": 47,
"execution_count": null,
"id": "42b9f644-522d-4e05-a691-56e7658c0ea9",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Generative AI has numerous business applications across various industries, including:\n",
"\n",
"1. **Content Generation**: AI-powered tools can create high-quality content such as articles, social media posts, product descriptions, and more. This can help reduce content creation costs and increase productivity.\n",
"2. **Image and Video Generation**: Generative AI can produce realistic images and videos for advertising, marketing, and other purposes, reducing the need for expensive photography or video production services.\n",
"3. **Product Design and Development**: AI-powered tools can generate 3D models, product designs, and prototypes, accelerating the product development process and improving design efficiency.\n",
"4. **Customer Service Chatbots**: Generative AI can create conversational chatbots that provide personalized customer support, helping to improve customer satisfaction and reduce response times.\n",
"5. **Marketing Automation**: AI-powered tools can generate personalized marketing messages, subject lines, and email content, increasing the effectiveness of marketing campaigns.\n",
"6. **Data Analysis and Visualization**: Generative AI can help analyze large datasets, identify patterns, and create visualizations that make complex data insights more accessible to non-technical stakeholders.\n",
"7. **Language Translation**: AI-powered tools can generate high-quality translations for businesses operating in multiple languages, reducing translation costs and improving communication with customers.\n",
"8. **Music and Audio Generation**: Generative AI can create original music, sound effects, and audio content for advertising, film, and other applications.\n",
"9. **Automated Writing Assistants**: AI-powered tools can assist writers with research, suggestions, and even entire drafts, helping to improve writing efficiency and quality.\n",
"10. **Predictive Analytics**: Generative AI can analyze large datasets to predict future trends, behaviors, and outcomes, enabling businesses to make more informed decisions.\n",
"\n",
"Some specific business applications of Generative AI include:\n",
"\n",
"* **Amazon's Product Recommendations**: Amazon uses Generative AI to recommend products based on customer behavior and preferences.\n",
"* **Google's Image Search**: Google's image search engine uses Generative AI to provide accurate and relevant image results.\n",
"* **Hulu's Content Generation**: Hulu uses Generative AI to create personalized content recommendations for its users.\n",
"* **Microsoft's Azure AI**: Microsoft offers a range of AI-powered tools, including Generative AI, to help businesses improve their products and services.\n",
"\n",
"These are just a few examples of the many business applications of Generative AI. As the technology continues to evolve, we can expect to see even more innovative uses in various industries.\n"
]
}
],
"outputs": [],
"source": [
"response = requests.post(OLLAMA_API, json=payload, headers=HEADERS)\n",
"print(response.json()['message']['content'])"
@ -175,39 +147,10 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "7745b9c4-57dc-4867-9180-61fa5db55eb8",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Generative AI has numerous business applications across various industries. Here are some examples:\n",
"\n",
"1. **Content Generation**: Generative AI can be used to generate high-quality content such as blog posts, social media posts, product descriptions, and even entire articles. This can help businesses save time and resources while still producing engaging and relevant content.\n",
"2. **Product Design**: Generative AI can assist in the design of products by generating 3D models, prototypes, and even functional prototypes. This can be particularly useful for companies that require rapid prototyping or have limited in-house design capabilities.\n",
"3. **Marketing Automation**: Generative AI can help automate marketing efforts by generating personalized email campaigns, social media ads, and even lead generation content.\n",
"4. **Customer Service Chatbots**: Generative AI-powered chatbots can provide 24/7 customer support, answering common queries, and helping to resolve simple issues. This can free up human customer service agents to focus on more complex and emotionally charged issues.\n",
"5. **Data Analysis and Insights**: Generative AI can be used to analyze large datasets and identify patterns, trends, and insights that may have gone unnoticed by humans. This can help businesses gain a competitive edge and make data-driven decisions.\n",
"6. **Virtual Assistants**: Generative AI-powered virtual assistants can be integrated into various business systems to provide personalized support and guidance to employees, customers, or partners.\n",
"7. **Supply Chain Optimization**: Generative AI can be used to optimize supply chain operations by predicting demand, managing inventory levels, and identifying potential bottlenecks.\n",
"8. **Risk Management**: Generative AI-powered risk management tools can help businesses identify and mitigate potential risks, such as financial losses, regulatory non-compliance, or reputational damage.\n",
"9. **Financial Analysis**: Generative AI can be used to analyze large datasets of financial transactions, predicting market trends, identifying potential investment opportunities, and detecting fraudulent activity.\n",
"10. **Cybersecurity Threat Detection**: Generative AI-powered threat detection tools can help identify and respond to cybersecurity threats in real-time, reducing the risk of data breaches and other security incidents.\n",
"\n",
"Some specific examples of businesses that are already leveraging Generative AI include:\n",
"\n",
"* Google (using Generative AI for image search and content generation)\n",
"* Amazon (using Generative AI for product recommendations and customer service chatbots)\n",
"* IBM (using Generative AI for marketing automation and sales forecasting)\n",
"* Accenture (using Generative AI for data analysis and insights)\n",
"* NVIDIA (using Generative AI for computer vision and graphics rendering)\n",
"\n",
"These are just a few examples, but the potential applications of Generative AI are vast and continue to expand as the technology advances.\n"
]
}
],
"outputs": [],
"source": [
"import ollama\n",
"\n",
@ -227,7 +170,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"id": "00496450-b078-469c-8072-4cb633df9928",
"metadata": {},
"outputs": [],
@ -241,7 +184,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": null,
"id": "37aea1a6-2d35-4c8b-9264-43da5884d069",
"metadata": {},
"outputs": [],
@ -252,7 +195,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": null,
"id": "383f8e2a-c98d-48bc-9c3f-ece4ef077ec9",
"metadata": {},
"outputs": [],
@ -282,70 +225,10 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": null,
"id": "36e99eba-5758-4471-8860-2f5a42771e6b",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"https://jaivikhimalay.com\n",
"Jaivik Himalay\n",
"0\n",
"Skip to Content\n",
"Services\n",
"About\n",
"Contact\n",
"Open Menu\n",
"Close Menu\n",
"Services\n",
"About\n",
"Contact\n",
"Open Menu\n",
"Close Menu\n",
"Services\n",
"About\n",
"Contact\n",
"Enhance the accessibility of your products and services to customers\n",
"Application Architecture, Design & Development Services\n",
"Engaging and solving customers’ requirements to automate their business processes, by transforming requirements into a ready to use products.\n",
"Application Refactoring, Performance Improvement & Integration Services\n",
"Keeping clients by leveraging the latest practices and technologies in the industry to transform their outdated and sluggish systems into ones that are incredibly efficient.\n",
"Distribution Services\n",
"Assisting companies in meeting their requirements by sourcing a diverse range of products from both local and global markets.\n",
"Read More\n",
"Services\n",
"Application Architecture, Design & Development Services\n",
"We offer support to small and medium-sized businesses in developing their products or APIs from the initial concept to the launch stage. This encompasses every stage of the product life cycle.\n",
"Application Refactoring , Performance Improvement & Integration Services\n",
"With the support of the experience team, we can transform applications that were created using outdated technology. Applications that don't scale or perform well can also be redesigned, tested, and prepared for launch.\n",
"Distribution Services\n",
"We can assist you in lowering the price of importing or exporting goods to and from the United States and other nations. We are able to transport both domestically and abroad to a large number of businesses.\n",
"About Us\n",
"Group of seasoned experts that have spent the last 20 years working to solve clients' complex issues in the areas of payments, gift cards, logistics, and more.\n",
"We are situated in California's Silicon Valley.\n",
"Contact Us\n",
"Interested in working together? Fill out some info and we will be in touch shortly.\n",
"Name\n",
"*\n",
"First Name\n",
"Last Name\n",
"Email\n",
"*\n",
"Message\n",
"*\n",
"Thank you for contacting us! Will get back to you soon…\n",
"Location\n",
"Dublin, CA, 94568\n",
"Contact\n",
"info@jaivikhimalay.com\n",
"© Copyright 2024\n",
"Jaivik Himalay LLC\n",
".\n"
]
}
],
"outputs": [],
"source": [
"ed = Website(\"https://jaivikhimalay.com\")\n",
"print(ed.url)\n",
@ -355,7 +238,7 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": null,
"id": "793f8c35-fbde-4160-90b5-a2fd8ea5f5e6",
"metadata": {},
"outputs": [],
@ -369,7 +252,7 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": null,
"id": "ecbfa0e2-39c2-4467-989b-4ab9810de72d",
"metadata": {},
"outputs": [],
@ -387,7 +270,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": null,
"id": "cf5a1da8-1628-4bbb-a2f8-e06409fe4e45",
"metadata": {},
"outputs": [],
@ -403,7 +286,7 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": null,
"id": "fc9040a8-0a62-4658-94d9-0674b9045986",
"metadata": {},
"outputs": [],
@ -419,28 +302,17 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": null,
"id": "fc2aff45-ba1d-44f8-8b5d-f34934eb1ee8",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\"# Website Summary\\n### Overview\\n\\nJaivik Himalay is a technology consulting firm that offers a range of services to help businesses improve their products and services, automate business processes, and enhance accessibility.\\n\\n### Services\\n\\n* **Application Architecture**: Development of applications from concept to launch for small and medium-sized businesses.\\n* **Refactoring & Integration**: Transformation of outdated applications into efficient ones using the latest industry practices and technologies.\\n* **Distribution Services**: Sourcing diverse products from local and global markets to meet clients' requirements.\\n\\n### About Us\\n\\nJaivik Himalay is a group of seasoned experts with 20 years of experience solving complex issues in various areas, including payments, gift cards, logistics. The company is based in California's Silicon Valley.\\n\\n### Contact Us\\n\\nThe company invites interested individuals to contact them through the provided email address.\""
]
},
"execution_count": 40,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"summarize(\"https://jaivikhimalay.com\")"
]
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": null,
"id": "ef0e940d-fed4-417b-8d95-4a0fd3b9b3d7",
"metadata": {},
"outputs": [],
@ -452,43 +324,10 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": null,
"id": "086296f1-c748-4747-93d2-554732392400",
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"# Jaivik Himalaya Website Summary\n",
"\n",
"## Overview\n",
"\n",
"Jaivik Himalaya is a professional services company specializing in application development, refactoring, and distribution services.\n",
"\n",
"### Key Services\n",
"\n",
"- **Application Architecture**: Designing and developing products or APIs from concept to launch.\n",
"- **Application Refactoring & Performance Improvement**: Transforming outdated systems into efficient ones using latest industry practices and technologies.\n",
"- **Distribution Services**: Sourcing products from local and global markets to assist businesses in meeting their requirements.\n",
"\n",
"### About Us\n",
"\n",
"Jaivik Himalaya is led by a group of experienced experts with 20 years of experience solving complex issues in various domains such as payments, gift cards, logistics, etc. The company is based in Silicon Valley, California.\n",
"\n",
"### Contact Information\n",
"\n",
"- Email: `info@jaivikhimalay.com`\n",
"- Location: Dublin, CA 94568\n",
"- Address: No specific address provided on the website."
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"display_summary(\"https://jaivikhimalay.com\")"
]

1543
week1/day5.ipynb

File diff suppressed because one or more lines are too long

593
week1/week1 EXERCISE.ipynb

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save