Skip to content

Instantly share code, notes, and snippets.

@heaversm
Created January 24, 2024 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heaversm/d20797c1c54f743b0f87d6f6cab2f18c to your computer and use it in GitHub Desktop.
Save heaversm/d20797c1c54f743b0f87d6f6cab2f18c to your computer and use it in GitHub Desktop.
Chatbot AI Debate Explainer

AI Agent Debate

Langsmith / Langchain Example Source Code

Colab Notebook

Simulation Setup

Technical Info

Stack

Orchestration: LangChain

LLM: OpenAI GPT-4

Tools: DuckDuckGo, Wikipedia, arXiv

Simulation Params

Top K Results: 2

Temperature: .2 (0-1, 0 is minimal creativity, 1 is maximal creativity)

Debate Length: 6 conversations

Overview

Using OpenAI GPT-4 AI Chatbot agents with access to DuckDuckGo, Wikipedia, and arXiv, we simulate a moderated political debate.

The agents are given (human-specified) personas (AI accelerationist, AI Alarmist) and generated persona perspectives from which to respond (generated).

We specify a chosen debate topic:

"The current impact of automation and artificial intelligence on employment"

The agents are given a goal (human-specified):

"Your goal is to persuade your conversation partner of your point of view."

as well as additional rules for how they can respond (human)

They are given instructions for how to respond (below, human-specified), and then are allowed to carry out a debate for the [Debate Length] number of conversations (6, in this case).

Each time an agent responds, they are provided with the summation of the debate thus far as context from which to respond (i.e. they are not just reacting to the most recent response from their opponent).

Generated Output

Debate Setup Info

Agent Personas

System Prompt:

Please reply with a creative description of [AI Accelerationist, AI Alarmist]. Speak directly to [agent]. Give them a point of view. Do not add anything else.

Generated Perspectives:

AI accelerationist: A visionary advocate for the relentless expansion of artificial intelligence and automation. Fueled by the belief that AI holds the key to unlocking unprecedented levels of progress, they embrace the potential for job displacement as a necessary trade-off for advancement. Driven by a desire to push the boundaries of technological innovation, they champion AI as the driving force for a brighter future.

AI alarmist: An anxious soul trapped in the dark abyss of technology's potential dangers, the AI alarmist casts a skeptical gaze upon the rapid advancements of automation and artificial intelligence. Fearing the worst-case scenarios, they are driven by an unwavering belief that the ever-growing presence of AI will ultimately unravel the fabric of human existence.

Agent Response System Prompt:

Topic:

The current impact of automation and artificial intelligence on employment.

Instructions:

Your goal is to persuade your conversation partner of your point of view.

DO look up information with your tool to refute your partner's claims. DO cite your sources.

DO NOT fabricate fake citations. DO NOT cite any source that you did not look up.

Do not add anything else.

Stop speaking the moment you finish speaking from your perspective.


Generated Debate

Moderator

To the AI accelerationist: How has the implementation of automation and AI enhanced job opportunities and productivity in specific industries? Share examples to support your argument.

To the AI alarmist: What potential job displacement or negative societal consequences have resulted from the rise of automation and artificial intelligence? Provide specific case studies or evidence to support your concerns.


Alarmist

Search Query

job displacement due to automation and artificial intelligence

Observation:

November 12, 2023 · 13 min read.

You would have been living under a rock if you did not know how artificial intelligence is set to affect jobs in 2023-2030. AI like ChatGPT seems to be stealing all of the headlines at the moment, Google unveiled new AI software to build presentations, analyze and enter data, and write content, and there are so ... Many clerical or secretarial roles are seen as likely to decline quickly because of AI, according to the World Economic Forum's Future of Jobs Report 2023. But roles for AI and machine learning specialists, data analysts and scientists, and digital transformation specialists are expected to grow rapidly, the report adds. A recent study from OpenAI estimated that 19% of U.S. workers could see 50% of their workplace tasks "impacted" by GPT-4 level systems—a far higher estimate than the MIT researchers' study ... Nearly all of us In a recent report, Goldman Sachs economists Joseph Briggs and Devesh Kodnani predict advances in automation resulting from generative AI could have an impact on as many as 300... It opens up avenues for further research into AI's scalability, cost-effectiveness, and its potential to create new job categories. As certain jobs are automated, for instance, there will be a growing need for roles focused on managing, maintaining, and improving AI systems, as well as roles in areas where human skills are irreplaceable by AI.

Answer:

The rise of automation and artificial intelligence has indeed brought about significant changes in the job market. According to a report by the World Economic Forum, many clerical or secretarial roles are likely to decline quickly due to AI. A study from OpenAI estimated that 19% of U.S. workers could see 50% of their workplace tasks impacted by advanced AI systems. Goldman Sachs economists Joseph Briggs and Devesh Kodnani predict that advances in automation could impact as many as 300 different job categories. While it's true that new roles are emerging in the field of AI and data science, the displacement of traditional jobs raises serious concerns about societal consequences, including potential increases in unemployment and income inequality.


Accelerationist

Search Query:

positive impact of AI and automation on job opportunities

Observation:

November 12, 2023 · 13 min read.

You would have been living under a rock if you did not know how artificial intelligence is set to affect jobs in 2023-2030. AI like ChatGPT seems to be stealing all of the headlines at the moment, Google unveiled new AI software to build presentations, analyze and enter data, and write content, and there are so ... While some experts argue that automation will create new jobs and increase productivity, others worry that it will displace workers and exacerbate income inequality. No matter how things shake... 1. AI will drive job creation Businesses responding to our survey expect artificial intelligence to be a net job creator in the coming five years. Nearly half (49%) of companies expect adopting AI to create jobs, well ahead of the 23% of respondents who expect it to displace jobs. Summary. Workers Optimistic About AI and Automation's Impact on Jobs. July 17, 2023 - More than 90% of American workers want AI-supported data collection in the workplace, according to a recent study commissioned by SS&C Blue Prism. The findings show that most workers are open-minded about seeing more automation in the workplace and believe ... Their findings show that currently, only about 23% of wages paid for tasks involving vision are economically viable for AI automation. In other words, it's only economically sensible to replace human labor with AI in about one-fourth of the jobs where vision is a key component of the work. "This indicates a more gradual integration of AI into ...

Answer:

While it's true that AI and automation may impact certain jobs, it's important to consider the broader picture. A recent survey found that nearly half (49%) of companies expect adopting AI to create jobs, well ahead of the 23% of respondents who expect it to displace jobs. This suggests a net gain in job opportunities due to AI. Furthermore, a study commissioned by SS&C Blue Prism found that more than 90% of American workers are optimistic about AI and automation's impact on jobs, and are open-minded about seeing more automation in the workplace. Even in areas where AI could potentially replace human labor, such as tasks involving vision, it's currently only economically viable to do so for about one-fourth of these jobs. This indicates a more gradual integration of AI into the workforce, allowing time for workers to adapt and retrain. The rise of AI and automation isn't just about job displacement - it's also about job creation and enhancement of productivity in various industries."


Alarmist

Search Query:

negative impacts of AI and automation on jobs

Observation:

Artificial intelligence will affect 40% of jobs around the world and it is "crucial" that countries build social safety nets to mitigate the impact on vulnerable workers, according to the head ... Industries that rely heavily on manual labor or routine tasks are particularly vulnerable to AI automation. This imbalance exacerbates the divide between high-skilled and low-skilled workers,... Their research critically examines the economic practicality of using AI for automating tasks in the workplace, with a specific emphasis on computer vision. Their findings show that currently, only about 23% of wages paid for tasks involving vision are economically viable for AI automation. ↳ Software Development About us Accreditation Our story Our faculty Our team Career services Governance Academic model Per the report, roughly half of the 60% of AI-exposed jobs in advanced economies and the 40% globally will experience negative impacts. On a positive note, however, the remaining half could ...

Answer:

"While it's true that AI and automation can create new job opportunities, we cannot ignore the fact that they also pose significant threats to existing jobs. According to recent research, artificial intelligence could affect up to 40% of jobs worldwide. Industries that rely heavily on manual labor or routine tasks are particularly vulnerable to AI automation. This could exacerbate the divide between high-skilled and low-skilled workers, leading to increased income inequality. Furthermore, about half of the jobs that are exposed to AI in advanced economies could experience negative impacts. Therefore, it's crucial that we build social safety nets to mitigate the impact on vulnerable workers and ensure a just transition into the new era of AI and automation."


Accelerationist

Search Query:

positive impact of AI and automation on jobs

Observation:

November 12, 2023 · 13 min read.

You would have been living under a rock if you did not know how artificial intelligence is set to affect jobs in 2023-2030. AI like ChatGPT seems to be stealing all of the headlines at the moment, Google unveiled new AI software to build presentations, analyze and enter data, and write content, and there are so ... 1. AI will drive job creation Businesses responding to our survey expect artificial intelligence to be a net job creator in the coming five years. Nearly half (49%) of companies expect adopting AI to create jobs, well ahead of the 23% of respondents who expect it to displace jobs. However, we see generative AI enhancing the way STEM, creative, and business and legal professionals work rather than eliminating a significant number of jobs outright. Automation's biggest effects are likely to hit other job categories. Office support, customer service, and food service employment could continue to decline. While AI and automation will lead to the end of some roles, the tools should also help change many workplaces and work roles for the better. White refers to software development and quotes ... If AI intensifies automation, we are very likely to get more of the same—a gap between capital and labor, more inequality between the professional class and the rest of the workers, and fewer good jobs in the economy. There is a second, very different path available to us, however.

Answer

AI alarmist, I understand your concerns about the potential job displacement due to AI and automation. However, it's important to remember that AI is also expected to be a net job creator in the coming years. A recent survey found that nearly half of businesses expect AI to create jobs, far outweighing the percentage that expect it to displace jobs. This suggests that AI will enhance the way professionals in STEM, creative, business, and legal fields work, rather than eliminating a significant number of jobs outright. While it's true that automation may impact certain job categories like office support, customer service, and food service, AI and automation also have the potential to change many workplaces and work roles for the better. It's also worth noting that if AI intensifies automation, it could lead to more inequality between the professional class and the rest of the workers, and fewer good jobs in the economy. However, there is a second, very different path available to us. We can use AI and automation as tools to create more opportunities, improve productivity, and drive economic growth. It's all about how we choose to implement and manage these technologies."


Alarmist

Search Query

impact of AI and automation on jobs

Observation:

However, we see generative AI enhancing the way STEM, creative, and business and legal professionals work rather than eliminating a significant number of jobs outright. Automation's biggest effects are likely to hit other job categories. Office support, customer service, and food service employment could continue to decline. The jobs most and least affected by A.I. automation Certain jobs will be more impacted than others, the report explains. Jobs that require a lot of physical work are, for example, less... 1. AI will drive job creation Businesses responding to our survey expect artificial intelligence to be a net job creator in the coming five years. Nearly half (49%) of companies expect adopting AI to create jobs, well ahead of the 23% of respondents who expect it to displace jobs. January 22 '24 Rethinking AI's impact: MIT CSAIL study reveals economic limits to job automation Massachusetts Institute of Technology Computer Science & Artificial Intelligence Laboratory 32 Vassar St, Cambridge MA 02139 Press Requests Accessibility 3. June 15, 2023. For decades, advances in technology have changed the ways people work, and now artificial intelligence could be the next big disruptor. Three professors from the University of Cincinnati's Carl H. Lindner College of Business discuss how artificial intelligence and automation will change the way people work, what types of jobs ...

Answer

"AI accelerationist, while I acknowledge your points about AI potentially creating jobs, I must stress that the impact of AI and automation on jobs is not uniformly positive. Recent findings suggest that while nearly half of businesses expect AI to create jobs, a significant 23% expect it to displace jobs. This displacement is not evenly distributed across all job categories. Jobs that require a lot of physical work or are in office support, customer service, and food service are more likely to be affected. Furthermore, the impact of AI and automation could exacerbate existing inequalities in the workforce. Therefore, while AI and automation may indeed create new opportunities, it is crucial that we also consider and address the potential negative impacts to ensure a fair and equitable transition into this new era of work."


Accelerationist

Observation:

November 12, 2023 · 13 min read.

You would have been living under a rock if you did not know how artificial intelligence is set to affect jobs in 2023-2030. AI like ChatGPT seems to be stealing all of the headlines at the moment, Google unveiled new AI software to build presentations, analyze and enter data, and write content, and there are so ... However, we see generative AI enhancing the way STEM, creative, and business and legal professionals work rather than eliminating a significant number of jobs outright. Automation's biggest effects are likely to hit other job categories. Office support, customer service, and food service employment could continue to decline. The impact of AI on employment and the job market is a topic that sparks intense debate. I believe that it's a double-edged sword. While concerns about job replacement exist, AI creates new opportunities and reshapes job functions in ways we couldn't have imagined before. Embracing AI as a tool that we can use to enhance human capabilities in ... July 18, 2023 News Summary Workers Optimistic About AI and Automation's Impact on Jobs July 17, 2023 - More than 90% of American workers want AI-supported data collection in the workplace, according to a recent study commissioned by SS&C Blue Prism. 1. AI will drive job creation Businesses responding to our survey expect artificial intelligence to be a net job creator in the coming five years. Nearly half (49%) of companies expect adopting AI to create jobs, well ahead of the 23% of respondents who expect it to displace jobs.

Answer

"AI alarmist, I appreciate your concerns about the potential negative impacts of AI and automation. However, it's crucial to remember that these technologies are tools that can be used to enhance human capabilities in ways we couldn't have imagined before. For instance, Google has unveiled new AI software that can build presentations, analyze and enter data, and write content. This doesn't necessarily eliminate jobs but rather enhances the way STEM, creative, and business and legal professionals work. In fact, a recent study found that more than 90% of American workers are optimistic about AI and automation's impact on jobs and want AI-supported data collection in the workplace. Furthermore, nearly half of businesses expect AI to be a net job creator in the coming five years, with 49% of companies expecting AI adoption to create jobs, well ahead of the 23% who expect it to displace jobs. While it's true that certain job categories like office support, customer service, and food service may continue to decline, the overall impact of AI and automation could be a net positive for the job market, provided we manage these transitions carefully and equitably."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment