{ "cells": [ { "cell_type": "code", "execution_count": 6, "id": "0eccd20e", "metadata": {}, "outputs": [], "source": [ "from langchain_groq import ChatGroq" ] }, { "cell_type": "code", "execution_count": 7, "id": "c16ff50e", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "That's an easy one!\n", "\n", "The first person to set foot on the moon was Neil Armstrong. He stepped out of the lunar module Eagle and onto the moon's surface on July 20, 1969, during the Apollo 11 mission. Armstrong famously declared, \"That's one small step for man, one giant leap for mankind,\" as he became the first human to walk on the moon.\n" ] } ], "source": [ "llm = ChatGroq(\n", " temperature=0, \n", " groq_api_key='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', \n", " model_name=\"llama3-70b-8192\"\n", ")\n", "response = llm.invoke(\"The first person to land on moon was ...\")\n", "print(response.content)" ] }, { "cell_type": "code", "execution_count": 8, "id": "90d33612", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "USER_AGENT environment variable not set, consider setting it to identify your requests.\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Senior Data Engineer\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Skip to main content\n", "Open Virtual Assistant\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Home\n", "\n", "\n", "Career Areas\n", "\n", "\n", "Total Rewards\n", "\n", "\n", "Life@Nike\n", "\n", "\n", "Purpose\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Language\n", "\n", "\n", "\n", "\n", "\n", "Select a Language\n", "\n", " Deutsch \n", " English \n", " Español (España) \n", " Español (América Latina) \n", " Français \n", " Italiano \n", " Nederlands \n", " Polski \n", " Tiếng Việt \n", " Türkçe \n", " 简体中文 \n", " 繁體中文 \n", " עִברִית \n", " 한국어 \n", " 日本語 \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Careers\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Close Menu\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Careers\n", "\n", "\n", "\n", "\n", "\n", "\n", "Chat\n", "\n", "\n", "\n", "\n", "\n", "\n", " Home\n", " \n", "\n", "\n", "\n", " Career Areas\n", " \n", "\n", "\n", "\n", " Total Rewards\n", " \n", "\n", "\n", "\n", " Life@Nike\n", " \n", "\n", "\n", "\n", " Purpose\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Jordan Careers\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Converse Careers\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Language\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Menu\n", "\n", "\n", "\n", "Return to Previous Menu\n", "\n", "\n", "\n", "Select a Language\n", "\n", " Deutsch \n", " English \n", " Español (España) \n", " Español (América Latina) \n", " Français \n", " Italiano \n", " Nederlands \n", " Polski \n", " Tiếng Việt \n", " Türkçe \n", " 简体中文 \n", " 繁體中文 \n", " עִברִית \n", " 한국어 \n", " 日本語 \n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", " Back to Search\n", "\n", " \n", "\n", "Senior Data Engineer\n", "\n", "\n", "Categories ID\n", "\n", "\n", "\n", "Categories URL\n", "\n", "\n", "\n", "Position Type\n", "\n", "\n", "\n", "Date Posted\n", "\n", "\n", "\n", "Primary Quest ID\n", "\n", "\n", "\n", "Second Quest ID\n", "\n", "\n", "\n", "Job Classification\n", "\n", "\n", "\n", "\n", "Career area\n", "Analytics\n", "\n", "\n", "Location\n", "1 Bowerman Drive, Beaverton, Oregon 97005, United States\n", "\n", "\n", "\n", "Job ID\n", "R-52993\n", "\n", "\n", "\n", "\n", "\n", " Apply Now\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "Share Job\n", "\n", "\n", "\n", "\n", "Share Job Posting\n", "\n", "\n", "\n", "\n", "\n", "\n", "Facebook\n", "Opens In A New Tab\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "LinkedIn\n", "Link Opens In New Window\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Email\n", "\n", "\n", "\n", "\n", "\n", "\n", "Close-Medium (Default Size)-icon\n", "\n", "Close Menu\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Become a Part of the NIKE, Inc. Team\n", "NIKE, Inc. does more than outfit the world’s best athletes. It is a place to explore\n", " potential, obliterate boundaries\n", " and push out the edges of what can be. The company looks for people who can grow, think,\n", " dream and create. Its\n", " culture thrives by embracing diversity and rewarding imagination. The brand seeks achievers,\n", " leaders and\n", " visionaries. At NIKE, Inc. it’s about each person bringing skills and passion to a\n", " challenging and constantly\n", " evolving game.\n", "\n", "Senior Data Engineer - NIKE, Inc. - Beaverton, OR. Develop and deliver high quality software solutions that solve specific business problems and grow Nike’s digital businesses.Work on technical solutions that serve other engineering, data, or business facing teams. Serve the end-to-end breadth of Nike, from building foundational data capabilities, creating analytical products to help the Nike business make better decisions, to optimizing supply chain enabling business to run as efficiently as possible.Run agile squads where transparency and trust are key, and collectively bring a culture of engineering excellence and continuous improvement to the organization coach and mentor junior team members. Build products to run reliable and at scale.Code infrastructure and automatically build, test, and deploy creations.Provide support by writing documentation and tutorials as well as providing guidance to users with a variety of technical skills. Part of an agile scrum team, closely working with the Product Owner, Scrum Master and other team members that drive to deliver innovative data solutions.Partner with business facing team members and other technology solution delivery, architecture, and platform teams and interact with engineers from multiple other squads to help define Nike’s engineering culture, standards, and best practices, advocating for engineering excellence and innovation.Telecommuting is available from anywhere in the U.S., except from AK, AL, AR, DE, HI, IA, ID, IN, KS, KY, LA, MT, ND, NE, NH, NM, NV,OH, OK, RI, SD, VT, WV, and WY.Must have a Master's degree in Computer Science, Engineering and 2 years of experience in the position offered or in an engineering-related occupation.Experience must include:• Python• Databricks• Pyspark• Java• Airflow• Data Modeling• Snowflake• SQL• AWS• Microservices• Data Analysis• Machine Learning• System Design• CI/CD Pipeline DevelopmentApply at www.jobs.nike.com (Job# -R-52993)125%#LI-DNIWe offer a number of accommodations to complete our interview process including screen readers, sign language interpreters, accessible and single location for in-person interviews, closed captioning, and other reasonable modifications as needed. If you discover, as you navigate our application process, that you need assistance or an accommodation due to a disability, please complete the Candidate Accommodation Request Form.\n", "\n", "NIKE, Inc. is a growth company that looks for team members to grow with it. Nike offers a\n", " generous total rewards\n", " package, casual work environment, a diverse and inclusive culture, and an electric\n", " atmosphere for professional\n", " development. No matter the location, or the role, every Nike employee shares one galvanizing\n", " mission: To bring\n", " inspiration and innovation to every athlete* in the world.\n", "NIKE, Inc. is an equal opportunity employer. Qualified applicants will receive\n", " consideration without\n", " regard to race, color, religion, sex, national origin, age, sexual orientation, gender\n", " identity, gender expression,\n", " veteran status, or disability.\n", "\n", "\n", "\n", "\n", " Apply Now\n", " \n", "\n", "\n", "\n", "\n", "\n", "\n", "Share Job\n", "\n", "\n", "\n", "\n", "Share Job Posting\n", "\n", "\n", "\n", "\n", "\n", "\n", "Faceboox\n", "Opens In A New Tab\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "LinkedIn\n", "Link Opens In New Window\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Email\n", "\n", "\n", "\n", "\n", "\n", "\n", "Close-Medium (Default Size)-icon\n", "\n", "Close Menu\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "What You Can Expect\n", "OUR HIRING GAME PLAN\n", "\n", "\n", "01 Apply\n", "Our teams are made up of diverse skillsets, knowledge bases, inputs, ideas and backgrounds.\n", " We want you to find your fit – review job descriptions, departments and teams to discover\n", " the role for you.\n", "\n", "\n", "02 Meet a Recruiter or Take an Assessment\n", "If selected for a corporate role, a recruiter will reach out to start your interview process\n", " and be your main contact\n", " throughout the process. For retail roles, you’ll complete an interactive assessment that\n", " includes a chat and quizzes and\n", " takes about 10-20 minutes to complete. No matter the role, we want to learn about you – the\n", " whole you – so don’t shy\n", " away from how you approach world-class service and what makes you unique.\n", "\n", "\n", "03 Interview\n", "Go into this stage confident by doing your research, understanding what we are looking for\n", " and being prepared for\n", " questions that are set up to learn more about you, and your background.\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Home\n", "\n", "\n", "About Us\n", "\n", "\n", "Contact\n", "\n", "\n", "Talent Community\n", "\n", "\n", "Terms\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", " \n", " \n", " Nike Applicant Privacy Policy\n", " \n", "\n", "\n", "\n", "\n", "\n", "We offer a number of accommodations to complete our interview process including screen readers, sign language interpreters,\n", " accessible and single location for in-person interviews, closed captioning, and other reasonable modifications as\n", " needed.\n", "\n", "\n", "If you discover, as you navigate our application process, that you need assistance or an accommodation due to a\n", " disability, please contact us at +1 503-671-4156 and include your full name, best way to reach you, and the\n", " accommodation you request to assist with the application process.\n", "For more information, please refer to Equal Employment\n", " Opportunity is The Law.\n", "\n", "\n", "\n", "© Nike, Inc. All Rights Reserved\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Careers\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "Chat\n", "Chat with our AI Assistant\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n" ] } ], "source": [ "from langchain_community.document_loaders import WebBaseLoader\n", "\n", "loader = WebBaseLoader(\"https://careers.nike.com/senior-data-engineer/job/R-52993\")\n", "page_data = loader.load().pop().page_content\n", "print(page_data)" ] }, { "cell_type": "code", "execution_count": 9, "id": "85c89a57", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "str" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from langchain_core.prompts import PromptTemplate\n", "\n", "prompt_extract = PromptTemplate.from_template(\n", " \"\"\"\n", " ### SCRAPED TEXT FROM WEBSITE:\n", " {page_data}\n", " ### INSTRUCTION:\n", " The scraped text is from the career's page of a website.\n", " Your job is to extract the job postings and return them in JSON format containing the \n", " following keys: `role`, `experience`, `skills` and `description`.\n", " Only return the valid JSON.\n", " ### VALID JSON (NO PREAMBLE): \n", " \"\"\"\n", ")\n", "\n", "chain_extract = prompt_extract | llm \n", "res = chain_extract.invoke(input={'page_data':page_data})\n", "type(res.content)" ] }, { "cell_type": "code", "execution_count": 10, "id": "5415fd54", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[{'role': 'Senior Data Engineer',\n", " 'experience': '2 years',\n", " 'skills': ['Python',\n", " 'Databricks',\n", " 'Pyspark',\n", " 'Java',\n", " 'Airflow',\n", " 'Data Modeling',\n", " 'Snowflake',\n", " 'SQL',\n", " 'AWS',\n", " 'Microservices',\n", " 'Data Analysis',\n", " 'Machine Learning',\n", " 'System Design',\n", " 'CI/CD Pipeline Development'],\n", " 'description': 'Develop and deliver high quality software solutions that solve specific business problems and grow Nike’s digital businesses. Work on technical solutions that serve other engineering, data, or business facing teams. Serve the end-to-end breadth of Nike, from building foundational data capabilities, creating analytical products to help the Nike business make better decisions, to optimizing supply chain enabling business to run as efficiently as possible.'}]" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from langchain_core.output_parsers import JsonOutputParser\n", "\n", "json_parser = JsonOutputParser()\n", "json_res = json_parser.parse(res.content)\n", "json_res" ] }, { "cell_type": "code", "execution_count": 11, "id": "39961ed6", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "list" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "type(json_res)" ] }, { "cell_type": "code", "execution_count": 12, "id": "1e8a0f74", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | Techstack | \n", "Links | \n", "
|---|---|---|
| 0 | \n", "Python,Machine Learning,SQL,Power BI,Data Visu... | \n", "https://linkedin.com/in/rajesh-patil-12345 | \n", "
| 1 | \n", "Java,Spring Boot,REST APIs,MySQL,Docker | \n", "https://linkedin.com/in/snehal-kulkarni-67890 | \n", "
| 2 | \n", "JavaScript,Node.js,React,Express,HTML,CSS | \n", "https://linkedin.com/in/pradip-shinde-23456 | \n", "
| 3 | \n", "C++,Data Structures,Algorithms,Java,MySQL,Git | \n", "https://linkedin.com/in/vaidehi-jadhav-34567 | \n", "
| 4 | \n", "Python,Deep Learning,TensorFlow,Data Science,P... | \n", "https://linkedin.com/in/akash-thorat-45678 | \n", "
| 5 | \n", "Ruby,SQL,API Development,Node.js,PostgreSQL | \n", "https://linkedin.com/in/ankita-pawar-56789 | \n", "
| 6 | \n", "Java,Spring,REST APIs,Oracle,Cloud Computing | \n", "https://linkedin.com/in/suraj-deshmukh-67890 | \n", "
| 7 | \n", "C#,ASP.NET,SQL Server,JavaScript,Angular | \n", "https://linkedin.com/in/poonam-kadam-78901 | \n", "
| 8 | \n", "R,Data Science,Statistics,Machine Learning,Python | \n", "https://linkedin.com/in/rohini-kulkarni-89012 | \n", "
| 9 | \n", "PHP,MySQL,Laravel,JavaScript,HTML,CSS | \n", "https://linkedin.com/in/milind-patil-90123 | \n", "
| 10 | \n", "Python,Flask,Django,Machine Learning,Data Stru... | \n", "https://linkedin.com/in/nitish-deshmukh-12345 | \n", "
| 11 | \n", "JavaScript,React,Redux,Node.js,HTML5,CSS3 | \n", "https://linkedin.com/in/suman-shirke-23456 | \n", "
| 12 | \n", "Go,Microservices,Cloud Computing,Docker,API De... | \n", "https://linkedin.com/in/atul-ambekar-34567 | \n", "
| 13 | \n", "Swift,iOS Development,Objective-C,SwiftUI,Reac... | \n", "https://linkedin.com/in/sandhya-chavan-45678 | \n", "
| 14 | \n", "Java,Spring Boot,Kotlin,Database Design,REST APIs | \n", "https://linkedin.com/in/vaibhav-ghate-56789 | \n", "
| 15 | \n", "Python,Data Engineering,Spark,ETL,Big Data | \n", "https://linkedin.com/in/priyanka-jadhav-67890 | \n", "
| 16 | \n", "C,Embedded Systems,Microcontrollers,PCB Design... | \n", "https://linkedin.com/in/ashwini-patil-78901 | \n", "
| 17 | \n", "Java,Android Development,SQLite,Git,JSON | \n", "https://linkedin.com/in/santosh-kulkarni-89012 | \n", "
| 18 | \n", "Kotlin,Android Studio,Java,Git,REST APIs | \n", "https://linkedin.com/in/vaibhavi-shinde-90123 | \n", "
| 19 | \n", "Scala,Akka,Play Framework,Database Design,Big ... | \n", "https://linkedin.com/in/suresh-tambe-12345 | \n", "
| 20 | \n", "SQL,NoSQL,Database Design,Cloud Computing,Data... | \n", "https://linkedin.com/in/madhuri-shelke-23456 | \n", "
| 21 | \n", "Java,Spring,Cloud,MySQL,RESTful APIs | \n", "https://linkedin.com/in/milind-jadhav-34567 | \n", "
| 22 | \n", "JavaScript,Vue.js,Vuex,Node.js,Express | \n", "https://linkedin.com/in/keerthi-pawar-45678 | \n", "
| 23 | \n", "HTML,HTML5,CSS3,JavaScript,Responsive Web Design | \n", "https://linkedin.com/in/ajay-deshmukh-56789 | \n", "
| 24 | \n", "PHP,Laravel,JavaScript,MySQL,AJAX | \n", "https://linkedin.com/in/pooja-kulkarni-67890 | \n", "
| 25 | \n", "Python,Flask,SQL,Machine Learning,Web Scraping | \n", "https://linkedin.com/in/rupesh-thorat-78901 | \n", "
| 26 | \n", "TypeScript,React,Node.js,GraphQL,Express | \n", "https://linkedin.com/in/ravindra-chavan-89012 | \n", "
| 27 | \n", "Python,Data Science,ML,NumPy,Pandas | \n", "https://linkedin.com/in/sonali-patil-90123 | \n", "
| 28 | \n", "Java,Spring,Apache Kafka,Cloud,MySQL | \n", "https://linkedin.com/in/swapnil-shinde-12345 | \n", "
| 29 | \n", "C++,Python,OpenCV,Deep Learning,AI | \n", "https://linkedin.com/in/monika-ghate-23456 | \n", "
| 30 | \n", "Ruby on Rails,JavaScript,SQL,REST APIs,Cloud | \n", "https://linkedin.com/in/shubham-shelke-34567 | \n", "
| 31 | \n", "Swift,iOS,UI/UX Design,Core Data,Push Notifica... | \n", "https://linkedin.com/in/poornima-jadhav-45678 | \n", "
| 32 | \n", "Java,Spring Boot,Spring Security,Microservices... | \n", "https://linkedin.com/in/rahul-pawar-56789 | \n", "
| 33 | \n", "PHP,WordPress,HTML,CSS,MySQL | \n", "https://linkedin.com/in/sunita-kadam-67890 | \n", "
| 34 | \n", "Java,Spring,Microservices,PostgreSQL,Docker | \n", "https://linkedin.com/in/vinay-kulkarni-78901 | \n", "
| 35 | \n", "JavaScript,Node.js,Angular,Express,MongoDB | \n", "https://linkedin.com/in/archana-deshmukh-89012 | \n", "
| 36 | \n", "C#,ASP.NET MVC,Entity Framework,SQL Server,Azure | \n", "https://linkedin.com/in/sandip-patil-90123 | \n", "
| 37 | \n", "Python,Web Scraping,Selenium,Data Analysis,Bea... | \n", "https://linkedin.com/in/raju-thorat-12345 | \n", "
| 38 | \n", "Java,Spring Boot,React,SQL,HTML | \n", "https://linkedin.com/in/jyoti-shinde-23456 | \n", "
| 39 | \n", "Node.js,Express,JavaScript,MongoDB,Docker | \n", "https://linkedin.com/in/nilay-kulkarni-34567 | \n", "
| 40 | \n", "Python,PyTorch,Computer Vision,Deep Learning,T... | \n", "https://linkedin.com/in/vaishali-deshmukh-45678 | \n", "
| 41 | \n", "Swift,iOS,Core Animation,SwiftUI,Objective-C | \n", "https://linkedin.com/in/vijay-jadhav-56789 | \n", "
| 42 | \n", "Java,Android Development,XML,SQLite,REST APIs | \n", "https://linkedin.com/in/ritesh-pawar-67890 | \n", "
| 43 | \n", "TypeScript,Angular,Node.js,GraphQL,JavaScript | \n", "https://linkedin.com/in/mandar-patil-78901 | \n", "
| 44 | \n", "JavaScript,Vue.js,Nuxt.js,GraphQL,TypeScript | \n", "https://linkedin.com/in/krishna-thorat-89012 | \n", "
| 45 | \n", "PHP,Laravel,REST APIs,JavaScript,MySQL | \n", "https://linkedin.com/in/anuja-chavan-90123 | \n", "
| 46 | \n", "Ruby,JavaScript,MySQL,Cloud Computing,Agile | \n", "https://linkedin.com/in/vinita-patil-12345 | \n", "
| 47 | \n", "Go,Microservices,Kubernetes,Docker,API Design | \n", "https://linkedin.com/in/ankur-shinde-23456 | \n", "
| 48 | \n", "Python,Flask,Machine Learning,Web Scraping,Dee... | \n", "https://linkedin.com/in/sarika-jadhav-34567 | \n", "
| 49 | \n", "C++,Python,Embedded Systems,Machine Learning,A... | \n", "https://linkedin.com/in/mukesh-ghate-45678 | \n", "