How to make AI work for you

How to make AI work for you

Critics of generative AI often discuss the concept of accuracy, when deciding whether or not to use AI.


Though hallucinations, i.e. inaccurate output or more accurately, an incorrect set of outputs, are rendered especially when larger prompts and output text/image/video are displayed, this still doesn't make generative AI a bad tool.


There are ways to fix that and one of them is prompt chaining.


?????????? ?????? ???????????? ???? ??????????


In essence, prompt chaining is using shorter prompts, where one output serves as the next input which serves the next output, etc.


This is very much similar to the Tree-of-Thought (ToT) used in LLM reasoning, itself similar to the decision tree method, though both aren't the exact same thing.


When prompting, we have four choices really:

1. Input-Output Prompting (IOP)

2. Chain-of-Thought Prompting (CoTP)

3. Self-Consistency with CoTP (CoTP-SC)

4. Tree of Thought (ToT)


Input-Output Prompting (IOP)

Clear prompt (input), clear output.

We write something like: "Write me a poem about birds," we receive a poem about birds. Nothing special, no specific reasoning.


Chain-of-Thought Prompting (CoTP)

Input is made of 1-2 steps and the output.

For example: "I have 3 candidates which I want to hire but I only have 2 spots left, how do I choose who is best? Here are their credentials, please explain how I should approach this."


IOP, CoTP, CoTP-SC and ToT, side-by-side


Self-Consistency with CoTP (CoTP-SC)

Input leads to sub-steps (similar to a decision tree) with each leading to another step and 1-3 outputs (for example), of which the majority vote wins.

For example: "I have three expansion plans laid in front of me, each one consisting of X, Y and Z but I can only choose one of these expansion plans in order not to stretch too thin. Can you help me with choosing the best one, considering my current situation and where I want to be in 12 months?"


Tree of Thought (ToT)

The prompt leads to an output which serves as the input for the next, moving forward, continuing the same reasoning and creating a more accurate output as we wanted in the first place, where all steps lead to a single output, using "the garbage" (i.e. the outputs which made little sense) as "fertiliser" for our end output.

Why we should chain our prompts

Though ToT may give a more accurate answer overall, it is not sequential, that is: it may be completely discrete doesn't take into account certain aspects, and does not reason by step-by-step to reach the outcome, that is it is more suitable for planning, summarising, coding and/or debugging than say certain decision-making where you must have a clear-cut choice.

By running a prompt chaining process, we ensure that our auditing would not only be brief but that we could copy-paste the method moving forward, as opposed to receiving different (and sometimes conflicting) outputs, which could become problematic if we have a long task ahead of us.

By chain prompting, we also ensure the system will not need to extrapolate its reasoning method, which consumes computing power which leads to hallucinations and eventually, a pause of a couple of hours in the use of the system and losing our trail of thought.


Are you ready to revolutionise your business processes with AI and unlock unprecedented efficiency and growth?

Contact me to explore how AI can transform your business landscape and discuss tailored AI strategies that align with your unique business goals.

______________________________________________________________________________________

Have you seen Appenue.AI's latest white paper on AI implementation?

Download it here.


#chainprompting #promptengineering #generativeai #genai #ai

Adam Avnon

Owner at Plan(a-z) | Leading Marketing & Business Dev. for premium brands | Ex. CEO of Y&R Israel

3 个月

???? ??? ?? ?? ???????? ??? ????? ???? ?????? ???: ?????? ????? ??? ??????? ?????? ??????, ?????? ?????? ??????,?????? ????? ????????. https://chat.whatsapp.com/IyTWnwphyc8AZAcawRTUhR

Amichai Oron

UX/UI SAAS Product Designer & Consultant ?? | Helping SAAS / AI companies and Startups Build Intuitive, Scalable Products.

5 个月

???? ??? ?? ?? ???????? ??? ????? ???? ?????? ???: ?????? ????? ??? ??????? ????? ????? ?????? ??????. https://chat.whatsapp.com/BubG8iFDe2bHHWkNYiboeU

Netanel Stern

CEO and security engineer

6 个月

???? ??? ?? ?? ?????? ??????? ??? ???? ???? ????? ???? ?????? ???: https://chat.whatsapp.com/HWWA9nLQYhW9DH97x227hJ

Damon Burton

Husband, father, SEO getting you consistent, unlimited traffic without ads ???? FreeSEObook.com, written from 18 years as SEO agency owner

7 个月

Thanks for shedding light on these advanced techniques, Avishay (AJ) Segal, MBA. With thoughtful application, generative AI can be a powerful and precise tool for a variety of tasks.

Danielle Patterson

Connecting Family Offices, UHNWI, & Service Providers | CEO & Owner of Family Office List

7 个月

Ever evolving = constantly getting better. Awareness is key that innacuracies exist so we can be mindful in developing true efficiencies. Consider it a work in progress.

要查看或添加评论,请登录

Avishay (AJ) Segal, MBA的更多文章

  • Can We Base An Entire Business On AI?

    Can We Base An Entire Business On AI?

    Is Low-Code AI The Solution To Non-Techie Solopreneurship? "This next generation of AI will reshape every software…

    26 条评论
  • Can AI Become our CMO?

    Can AI Become our CMO?

    "We must embrace pain and burn it as fuel for our journey." - Kenji Miyazawa "Reasoning models like o1pro and DeepSeek…

    12 条评论
  • Recent Grad With No Experience? Turn To AI

    Recent Grad With No Experience? Turn To AI

    “Humans need and want more time to interact with each other. I think AI coming about and replacing routine jobs is…

    28 条评论
  • Is AI Changing The Labour Landscape?

    Is AI Changing The Labour Landscape?

    "The real power of AI is not in replacing humans, but in augmenting human intelligence and capabilities." - Ginni…

    10 条评论
  • Is Being AI-Ready Critical?

    Is Being AI-Ready Critical?

    "Success depends upon previous preparation, and without such preparation there is sure to be failure." - Confucius…

    4 条评论
  • AI-Ready Graduates

    AI-Ready Graduates

    "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach…

    10 条评论
  • Are We Misinterpreting AI?

    Are We Misinterpreting AI?

    "The real problem is not whether machines think but whether men do." — B.

    16 条评论
  • 2024 to 2025 - What a Time to be Alive!

    2024 to 2025 - What a Time to be Alive!

    “Any sufficiently advanced technology is indistinguishable from magic.”— Arthur C.

    2 条评论
  • Can Modern Academia Survive?

    Can Modern Academia Survive?

    "The only true wisdom is in knowing you know nothing." - Socrates From Athens To Crisis The Philosophical Foundations…

    20 条评论
  • CAN A NEW MODEL SAVE YOU MONEY?

    CAN A NEW MODEL SAVE YOU MONEY?

    The Population Dynamics Foundation Model (PDFM) integrates diverse geospatial and socioeconomic datasets through…

    10 条评论