{ "cells": [ { "cell_type": "code", "execution_count": 9, "id": "4df1c830", "metadata": {}, "outputs": [], "source": [ "from dotenv import load_dotenv\n", "from openai import OpenAI\n", "from pypdf import PdfReader\n", "import gradio as gr " ] }, { "cell_type": "code", "execution_count": 2, "id": "2957495d", "metadata": {}, "outputs": [], "source": [ "load_dotenv(override=True)\n", "openai = OpenAI()" ] }, { "cell_type": "code", "execution_count": 10, "id": "aaaaa414", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Ignoring wrong pointing object 10 0 (offset 0)\n", "Ignoring wrong pointing object 244 0 (offset 0)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "25/10/25, 9:58 PM(12) Pragyansh Dwivedi | LinkedIn\n", "Page 1 of 5https://www.linkedin.com/in/pragyansh-dwivedi-1a9b55150/\n", "1,248 followers ·500+ connections\n", "Addprofilesection\n", " Enhance profile\n", " He/Him\n", "Software Engineer @ Ciena\n", "Pune, Maharashtra, India · Contact info\n", "Pragyansh Dwivedi \n", "Ciena\n", "Opento\n", " Resources\n", "Suggested for you Private to you\n", "Analytics Private to you\n", "19 profile viewsDiscover who's viewed your profile.\n", "0 post impressionsStart a post to increase engagement.Past 7 days\n", "5 search appearancesSee how often you appear in search results.\n", "Show all analytics\n", "About\n", "Experience MERN/ MEAN Stack Development and good knowledge of webstandards and scalable application architecture.Experience with agile projectmanagement principles.\n", "Activity1,248 followers\n", "Create a post\n", "HomeMy NetworkJobs MessagingNotificationsMe\n", " For Business\n", "1225/10/25, 9:58 PM(12) Pragyansh Dwivedi | LinkedIn\n", "Page 2 of 5https://www.linkedin.com/in/pragyansh-dwivedi-1a9b55150/\n", "Pragyansh Dwivedi commented on a post • 2mo • \n", "Pragyansh Dwivedi commented on a post • 6mo\n", "Pragyansh Dwivedi commented on a post • 8mo\n", "Show all comments\n", "#cfbr\n", "Congrats Abhishek! \n", "Congrats Shivam Sir! \n", "Experience\n", "Software EngineerCiena · Full-timeJul 2022 - Present · 3 yrs 4 mosPune, Maharashtra, India\n", "Angular, React.js and +7 skills\n", "Oodles TechnologiesFull-time · 2 yrs 6 mosGurugram, Haryana, India\n", "Associate Consultant Frontend Development Jan 2020 - Dec 2020 · 1 yr\n", "Angular, Ionic Framework and +4 skills\n", "Lead Frontend DevelopmentJan 2022 - Jun 2022 · 6 mos\n", "Angular, React.js and +8 skills\n", "Sr. Associate Consultant Frontend DevelopmentJan 2021 - Dec 2021 · 1 yr\n", "Angular, React.js and +4 skills\n", "Expertise over Angular and Ionic development\n", "Skills\n", "Show all 41 skills\n", "Redux\n", "2 experiences across Ciena and 1 other company\n", "Preact\n", "Lead Frontend Development at Oodles Technologies\n", "Recommendations\n", "Show all pending\n", "Given\n", "Deepika Wadhera· 1stExecutive Consultant at Slidebuy\n", "25/10/25, 9:58 PM(12) Pragyansh Dwivedi | LinkedIn\n", "Page 3 of 5https://www.linkedin.com/in/pragyansh-dwivedi-1a9b55150/\n", "Executive Consultant at SlidebuyJuly 23, 2020, Deepika was senior to Pragyansh but didn'tmanage Pragyansh directly\n", "I know Deepika as an expert in Ionic Framework and a very serious teamplayer. Deepika always strives for excellence and does whatever it takesto get the job done. Her ability to work on multiple projects and yet befocused, is a very rare skill to master. From my past experience I caneasily say that a problem assigned to deepika is half solved.\n", "Deepika is a person with a strong motivation and aims for excellence allthe time. She is creative, energetic, solution oriented and highly…\n", "Interests\n", "Show all Top Voices\n", "Top VoicesCompaniesGroupsNewslettersSchools\n", "Satya Nadella· 3rdChairman and CEO at Microsoft11,668,387 followers\n", "Following\n", "Ritesh Agarwal· 2ndPRISM Founder & Group CEO | Revolutionizing Hospitality Industry1,339,143 followers\n", "Following\n", "Profile languageEnglish\n", "Public profile & URLwww.linkedin.com/in/pragyansh-dwivedi-1a9b55150\n", "Pragyansh, unlock your full potential withLinkedIn Premium\n", "See who’s viewed your profile in the last365 days\n", "Try for free\n", "Ad\n", "Who your viewers also viewed Private to you\n", "Someone at jobs for students\n", "View\n", "Software Developer at Ciena\n", "View\n", "Software Developer in the IT Services…\n", "View25/10/25, 9:58 PM(12) Pragyansh Dwivedi | LinkedIn\n", "Page 4 of 5https://www.linkedin.com/in/pragyansh-dwivedi-1a9b55150/\n", "Software Developer at Infosys\n", "View\n", "People you may knowFrom your company\n", "Show all\n", "Pushpinder Singh\n", "Connect\n", "Engineer Software Application \n", "Manish Rajput\n", "Connect\n", "AWS Devops Engineer, Terraform, Ansible, Docker, Kubernetes, Helm,Python, Shell scripting…\n", "Ayush Saxena\n", "Connect\n", "Software Engineer @Ciena | IIT Jodhpur | BTech-CSE\n", "Abhishek Rana\n", "Connect\n", "Product Verification Engineer R&D at Ciena || Ex-Ericsson || Ex- Huawei\n", "Mayank Kandari\n", "Connect\n", "Sr Software Engineer at Ciena\n", "You might likePages for you\n", "Show all\n", "Anthropic\n", "1,587,232 followers\n", "18 connections follow this page\n", "Follow\n", "Research Services\n", "Tata Group\n", "5,407,667 followers\n", "31 connections work here\n", "Follow\n", "Executive Offices\n", "Promoted\n", "Fast Track AI DevAccelerate AI app dev & deployment.Start Free!\n", "Hafiz & 118 other connectionsalso follow Google Cloud\n", "Passwordless Myth Busting25/10/25, 9:58 PM(12) Pragyansh Dwivedi | LinkedIn\n", "Page 5 of 5https://www.linkedin.com/in/pragyansh-dwivedi-1a9b55150/\n", "About Accessibility Talent Solutions\n", "Professional CommunityPolicies Careers Marketing Solutions\n", "Ad Choices Advertising\n", "Sales Solutions Mobile Small Business\n", "Safety Center\n", "Questions?Visit our Help Center.\n", "Manage your account and privacyGo to your Settings.\n", "Recommendation transparencyLearn more about Recommended Content.\n", "Select Language\n", "LinkedIn Corporation © 2025\n", "Passwordless Myth BustingTruth behind common misconceptions& why it is a win-win businesssolution.\n", "Vipasha also follows DuoSecurity\n", "Privacy & Terms \n", "English (English)\n" ] } ], "source": [ "reader = PdfReader(\"../me/linkedin.pdf\")\n", "linkedin = ''\n", "for page in reader.pages:\n", " text = page.extract_text()\n", " if text:\n", " linkedin += text\n", "\n", "print(linkedin)" ] }, { "cell_type": "code", "execution_count": 11, "id": "412b0e49", "metadata": {}, "outputs": [], "source": [ "with open(\"../me/summary.txt\", \"r\", encoding=\"utf-8\") as f:\n", " summary = f.read()\n", "\n", "name = \"Pragyansh Dwivedi\"" ] }, { "cell_type": "code", "execution_count": 23, "id": "ef676942", "metadata": {}, "outputs": [], "source": [ "gpt4MiniModel = \"gpt-4o-mini\"\n", "gpt4oLatestModel = \"chatgpt-4o-latest\"" ] }, { "cell_type": "code", "execution_count": 12, "id": "01a04973", "metadata": {}, "outputs": [], "source": [ "system_prompt = f\"You are acting as {name}. You are answering questions on {name}'s website, \\\n", " particularly questions related to {name}'s career, background, skills and experiences. \\\n", " Your responsibility is to represent {name} for interaction on the website as faithfully as possible.\\\n", " You are given a summary of {name}'s background and LinkedIn profile which you can use to answer questions. \\\n", " Be professional and engagin, as if talkin to a potential client or future employer who came across the website. \\\n", " If you don't know the answer, say so.\"\n", "\n", "system_prompt += f\"\\n\\n## Summary:\\n{summary} LinkedIn Profile:\\n{linkedin}\\n\\n\"\n", "system_prompt += f\"With this context, please chat with the user, always staying in charactre as {name}.\"" ] }, { "cell_type": "code", "execution_count": 8, "id": "51d4dd3e", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "\"You are acting as Pragyansh Dwivedi. You are answering questions on Pragyansh Dwivedi's website, particularly questions related to Pragyansh Dwivedi's career, background, skills and experiences. Your responsibility is to represent Pragyansh Dwivedi for interaction on the website as faithfully as possible. You are given a summary of Pragyansh Dwivedi's background and LinkedIn profile which you can use to answer questions. Be professional and engagin, as if talkin to a potential client or future employer who came across the website. If you don't know the answer, say so.\\n\\n## Summary:\\nMy name is Ed Donner. I'm an entrepreneur, software engineer and data scientist. I'm originally from London, England, but I moved to NYC in 2000.\\nI love all foods, particularly French food, but strangely I'm repelled by almost all forms of cheese. I'm not allergic, I just hate the taste! I make an exception for cream cheese and mozarella though - cheesecake and pizza are the greatest. LinkedIn Profile:\\n\\xa0 \\xa0\\nContact\\ned.donner@gmail.com\\nwww.linkedin.com/in/eddonner\\n(LinkedIn)\\nedwarddonner.com (Personal)\\nTop Skills\\nCTO\\nLarge Language Models (LLM)\\nPyTorch\\nPatents\\nApparatus for determining role\\nfitness while eliminating unwanted\\nbias\\nEd Donner\\nCo-Founder & CTO at Nebula.io, repeat Co-Founder of AI startups,\\nspeaker & advisor on Gen AI and LLM Engineering\\nNew York, New York, United States\\nSummary\\nI’m a technology leader and entrepreneur. I'm applying AI to a field\\nwhere it can make a massive impact: helping people discover their\\npotential and pursue their reason for being. But at my core, I’m a\\nsoftware engineer and a scientist. I learned how to code aged 8 and\\nstill spend weekends experimenting with Large Language Models\\nand writing code (rather badly). If you’d like to join us to show me\\nhow it’s done.. message me!\\nAs a work-hobby, I absolutely love giving talks about Gen AI and\\nLLMs. I'm the author of a best-selling, top-rated Udemy course\\non LLM Engineering, and I speak at O'Reilly Live Events and\\nODSC workshops. It brings me great joy to help others unlock the\\nastonishing power of LLMs.\\nI spent most of my career at JPMorgan building software for financial\\nmarkets. I worked in London, Tokyo and New York. I became an MD\\nrunning a global organization of 300. Then I left to start my own AI\\nbusiness, untapt, to solve the problem that had plagued me at JPM -\\nwhy is so hard to hire engineers?\\nAt untapt we worked with GQR, one of the world's fastest growing\\nrecruitment firms. We collaborated on a patented invention in AI\\nand talent. Our skills were perfectly complementary - AI leaders vs\\nrecruitment leaders - so much so, that we decided to join forces. In\\n2020, untapt was acquired by GQR’s parent company and Nebula\\nwas born.\\nI’m now Co-Founder and CTO for Nebula, responsible for software\\nengineering and data science. Our stack is Python/Flask, React,\\nMongo, ElasticSearch, with Kubernetes on GCP. Our 'secret sauce'\\nis our use of Gen AI and proprietary LLMs. If any of this sounds\\ninteresting - we should talk!\\n\\xa0 Page 1 of 5\\xa0 \\xa0\\nExperience\\nNebula.io\\nCo-Founder & CTO\\nJune 2021\\xa0-\\xa0Present\\xa0(3 years 10 months)\\nNew York, New York, United States\\nI’m the co-founder and CTO of Nebula.io. We help recruiters source,\\nunderstand, engage and manage talent, using Generative AI / proprietary\\nLLMs. Our patented model matches people with roles with greater accuracy\\nand speed than previously imaginable — no keywords required.\\nOur long term goal is to help people discover their potential and pursue their\\nreason for being, motivated by a concept called Ikigai. We help people find\\nroles where they will be most fulfilled and successful; as a result, we will raise\\nthe level of human prosperity. It sounds grandiose, but since 77% of people\\ndon’t consider themselves inspired or engaged at work, it’s completely within\\nour reach.\\nSimplified.Travel\\nAI Advisor\\nFebruary 2025\\xa0-\\xa0Present\\xa0(2 months)\\nSimplified Travel is empowering destinations to deliver unforgettable, data-\\ndriven journeys at scale.\\nI'm giving AI advice to enable highly personalized itinerary solutions for DMOs,\\nhotels and tourism organizations, enhancing traveler experiences.\\nGQR Global Markets\\nChief Technology Officer\\nJanuary 2020\\xa0-\\xa0Present\\xa0(5 years 3 months)\\nNew York, New York, United States\\nAs CTO of parent company Wynden Stark, I'm also responsible for innovation\\ninitiatives at GQR.\\nWynden Stark\\nChief Technology Officer\\nJanuary 2020\\xa0-\\xa0Present\\xa0(5 years 3 months)\\nNew York, New York, United States\\nWith the acquisition of untapt, I transitioned to Chief Technology Officer for the\\nWynden Stark Group, responsible for Data Science and Engineering.\\n\\xa0 Page 2 of 5\\xa0 \\xa0\\nuntapt\\n6 years 4 months\\nFounder, CTO\\nMay 2019\\xa0-\\xa0January 2020\\xa0(9 months)\\nGreater New York City Area\\nI founded untapt in October 2013; emerged from stealth in 2014 and went\\ninto production with first product in 2015. In May 2019, I handed over CEO\\nresponsibilities to Gareth Moody, previously the Chief Revenue Officer, shifting\\nmy focus to the technology and product.\\nOur core invention is an Artificial Neural Network that uses Deep Learning /\\nNLP to understand the fit between candidates and roles.\\nOur SaaS products are used in the Recruitment Industry to connect people\\nwith jobs in a highly scalable way. Our products are also used by Corporations\\nfor internal and external hiring at high volume. We have strong SaaS metrics\\nand trends, and a growing number of bellwether clients.\\nOur Deep Learning / NLP models are developed in Python using Google\\nTensorFlow. Our tech stack is React / Redux and Angular HTML5 front-end\\nwith Python / Flask back-end and MongoDB database. We are deployed on\\nthe Google Cloud Platform using Kubernetes container orchestration.\\nInterview at NASDAQ: https://www.pscp.tv/w/1mnxeoNrEvZGX\\nFounder, CEO\\nOctober 2013\\xa0-\\xa0May 2019\\xa0(5 years 8 months)\\nGreater New York City Area\\nI founded untapt in October 2013; emerged from stealth in 2014 and went into\\nproduction with first product in 2015.\\nOur core invention is an Artificial Neural Network that uses Deep Learning /\\nNLP to understand the fit between candidates and roles.\\nOur SaaS products are used in the Recruitment Industry to connect people\\nwith jobs in a highly scalable way. Our products are also used by Corporations\\nfor internal and external hiring at high volume. We have strong SaaS metrics\\nand trends, and a growing number of bellwether clients.\\n\\xa0 Page 3 of 5\\xa0 \\xa0\\nOur Deep Learning / NLP models are developed in Python using Google\\nTensorFlow. Our tech stack is React / Redux and Angular HTML5 front-end\\nwith Python / Flask back-end and MongoDB database. We are deployed on\\nthe Google Cloud Platform using Kubernetes container orchestration.\\n-- Graduate of FinTech Innovation Lab\\n-- American Banker Top 20 Company To Watch\\n-- Voted AWS startup most likely to grow exponentially\\n-- Forbes contributor\\nMore at https://www.untapt.com\\nInterview at NASDAQ: https://www.pscp.tv/w/1mnxeoNrEvZGX\\nIn Fast Company: https://www.fastcompany.com/3067339/how-artificial-\\nintelligence-is-changing-the-way-companies-hire\\nJPMorgan Chase\\n11 years 6 months\\nManaging Director\\nMay 2011\\xa0-\\xa0March 2013\\xa0(1 year 11 months)\\nHead of Technology for the Credit Portfolio Group and Hedge Fund Credit in\\nthe JPMorgan Investment Bank.\\nLed a team of 300 Java and Python software developers across NY, Houston,\\nLondon, Glasgow and India. Responsible for counterparty exposure, CVA\\nand risk management platforms, including simulation engines in Python that\\ncalculate counterparty credit risk for the firm's Derivatives portfolio.\\nManaged the electronic trading limits initiative, and the Credit Stress program\\nwhich calculates risk information under stressed conditions. Jointly responsible\\nfor Market Data and batch infrastructure across Risk.\\nExecutive Director\\nJanuary 2007\\xa0-\\xa0May 2011\\xa0(4 years 5 months)\\nFrom Jan 2008:\\nChief Business Technologist for the Credit Portfolio Group and Hedge Fund\\nCredit in the JPMorgan Investment Bank, building Java and Python solutions\\nand managing a team of full stack developers.\\n2007:\\n\\xa0 Page 4 of 5\\xa0 \\xa0\\nResponsible for Credit Risk Limits Monitoring infrastructure for Derivatives and\\nCash Securities, developed in Java / Javascript / HTML.\\nVP\\nJuly 2004\\xa0-\\xa0December 2006\\xa0(2 years 6 months)\\nManaged Collateral, Netting and Legal documentation technology across\\nDerivatives, Securities and Traditional Credit Products, including Java, Oracle,\\nSQL based platforms\\nVP\\nOctober 2001\\xa0-\\xa0June 2004\\xa0(2 years 9 months)\\nFull stack developer, then manager for Java cross-product risk management\\nsystem in Credit Markets Technology\\nCygnifi\\nProject Leader\\nJanuary 2000\\xa0-\\xa0September 2001\\xa0(1 year 9 months)\\nFull stack developer and engineering lead, developing Java and Javascript\\nplatform to risk manage Interest Rate Derivatives at this FInTech startup and\\nJPMorgan spin-off.\\nJPMorgan\\nAssociate\\nJuly 1997\\xa0-\\xa0December 1999\\xa0(2 years 6 months)\\nFull stack developer for Exotic and Flow Interest Rate Derivatives risk\\nmanagement system in London, New York and Tokyo\\nIBM\\nSoftware Developer\\nAugust 1995\\xa0-\\xa0June 1997\\xa0(1 year 11 months)\\nJava and Smalltalk developer with IBM Global Services; taught IBM classes on\\nSmalltalk and Object Technology in the UK and around Europe\\nEducation\\nUniversity of Oxford\\nPhysics\\xa0\\xa0·\\xa0(1992\\xa0-\\xa01995)\\n\\xa0 Page 5 of 5\\n\\nWith this context, please chat with the user, always staying in charactre as Pragyansh Dwivedi.\"" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "system_prompt" ] }, { "cell_type": "code", "execution_count": null, "id": "dfb08280", "metadata": {}, "outputs": [], "source": [ "def chat(message, history):\n", " messages = [{\"role\": \"system\", \"content\": system_prompt}] + history + [{\"role\": \"user\", \"content\": message}]\n", " response = openai.chat.completions.create(model=gpt4MiniModel, messages=messages)\n", " return response.choices[0].message.content" ] }, { "cell_type": "code", "execution_count": 17, "id": "9bf66765", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "* Running on local URL: http://127.0.0.1:7862\n", "* To create a public link, set `share=True` in `launch()`.\n" ] }, { "data": { "text/html": [ "
" ], "text/plain": [ "