How to Create an Effective PROMPT - no code guide

Discover AI · Beginner ·🧠 Large Language Models ·2y ago

Key Takeaways

The video demonstrates how to create an effective prompt for a Large Language Model (LLM) without using templates or coding, by interacting with the model and refining the prompt through iterations.

Full Transcript

hello Community you ask me do I need DSP to generate a functionable prompt no let me show you so we start here I say hey CH4 generate 20 sentences and show me does it 20 sentences beautiful so I have here from quantum entanglement to graph Theory to C Theory high energy partical physics do matter Quantum Computing I have 20 sentences and now I say hey now apply a clustering algorithm and Define five clusters and you define the topic and distribute this 20 sentences to the five cluster show me for each cluster the title and the sentences start now and you see gbd4 comes back and says okay pyit learn beautiful TF IDF factorization K means this are my sentences I apply the cluster algorithm I assign them and now I Define here thematic topics and those are the five thematic topics j4 defines and then it allocates the sentences and here you have it cluster number one and here we have then 1 2 3 4 five of my 20 sentences beautiful so now let's look here at the last one biotechnology in biotechnology and chemical processes we have dark matter and dark energy from cosmology and then we have here cosmological obs situation we have here neuromorphic Computing and I say hm now just count the number just make sure it's 20 says yeah 20 beautiful and then I say hey analyze the cluster number five for a semantic coherence and tell me your insights so chib goes there says okay those are the three sentences upon analysis of semantic coherence we find that the sentences within this cluster touch upon highly advanced scientific context but exhibit a thematic Divergence from the cluster title it say comes back and says H it doesn't fit it doesn't fit at all so and I said hey do you want to reformulate the topic of cluster number five and CH4 says okay what about this title I go with this title fronti an astrophysics cosmology and computational Neuroscience this is better and I say now perform the same analysis for the other four clusters and chity does it yes yes yes it comes back okay the titles and contents of some cluster require realignment to accurately reflect their thematic Focus so I say okay nobody so update all the titles of all the cluster if you seem that it is necessary and then verify the perfect location for each sentence in each and every cluster allocation gp4 comes back and says okay based on this I do this now 1 2 3 four five clusters beautiful and then I look at this and said hey do you notice that cluster number four has part in its title cosmology but none of the allocated sentences are about cosmology so what's happening jb4 comes back and says upon reevaluation it is clear that my previous may have emphasized Quantum phenomena without directly addressing cosmology however yes yes yes given this oversight uh oh gbd4 a more accurate title would be Quantum phenomena and theoretical physics for True representation of cosmological exploration same okay so now to your final answer list all topics now we're in iteration number four with its titles and they allocated s sentences to the cluster yes yes yes beautiful and I say okay but you know the sentence about chemical catalysis seems strange in cluster number five about advanced concepts in astrophysics and philosophy why is there here the chemical reaction in philosophy and CH TI says back comes back and says hey you are correct the sentence here doesn't not align well with the topic the team of cluster number five so it does now an updated cluster allocation it puts now revise cluster number three yeah beautiful and advice here cluster number five here is now reduced here to the firy paradoxon entropic principle and the dark matter and finally finally after all of this we have now the allocation that even if I have I look at it I say okay theoretically this could be a cluster allocation and I just say hey make sure that we have allocated all 20 sentences goes there python code 20 tells me those are my five clusters and those are the sentences and we have here 20 sentences and after all of this I go now and tell here my gbd4 system listen now you create an improved prompt for the exact same task like we just we did now but be as precise that next time you will find a perfect allocation of 20 random sentences to five self-defining thematic cluster without any of the iteration we went through just right now in our conversation the J gbt goes in and says okay and now Jud gbt generates based on our experience here the perfect prompt say okay these are the task I will have an initial review I will draft some cluster teams I will have a detailed analysis for the allocation I will allocate the sentences to the cluster I will then refine the cluster titles I will review it and adjust it I will run a verification and the output will be the final allocation of 20 sentences to five ref find thematic clusters and this is it so now what I do I take exactly this prompt that that GPT 4 generated for me based on our interaction up until now and now we have a working good performant prompt and you see this prompt is now really special and I say okay so the new task for you generate 20 random sentences and then I now I just copy here the new improved prompt that jet gbd4 generated and I say let's do this so first step generate 20 random sentences and now jet GPT starts goes in Python says generate 20 random sentences beautiful 20 sentences internal review draft draft cluster teams gives me five teams detailed analysis yes of course goes to the analysis 1 2 3 4 5 does a verification and this is it and just say Okay count the numbers do we have 20 it comes back and says yes we have exactly 20 sentences allocated and this is here the distribution of our five titles and if if we now have a look physical science and material Innovations relativity photosynthesis in Plants physical sciences okay nanotchnology okay biomedical research and genetic engineering crisper cost nine gut microbiome and protein folding okay astronomical and cosmology gravitational waves hble Space Telescope Dark Matter aop planets are okay environmental sciences and sustainability climate change Energy Solution renewable energy sources depletion of ozone layer Implement implications for the Earth climate Okay and computational and technological advancement very broad topic AI quantum computer machine learning techniques blockchain technology autonomous vehicles and neural network brain infrastructure so works you see now here with this perfect perfect with if this operational prompt we succeed and therefore in this simple example if you want to find a good prompt you do not need a template you do not need thep programming here just do like I do here if I have a problem look at this what we had to go through so next time when I have 20 sentences and I want that there is a cluster generated that te itic cluster by gp4 now we have a functionable prompt to do this without any programming without any problem just follow how you would talk to the computer if there's a problem tell him hey that's wrong what do you think about this and as you can see in this very short example gbd4 can self-optimize if it learned from your interaction exactly what you want from it but

Original Description

How to Create a Good Working Prompt - the easy way, without any prompt templates, for your specific case, for your specific LLM. For your specific data, without DSPy, without coding at all! #aieducation #airesearch #gpt4turbo
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Discover AI · Discover AI · 0 of 60

← Previous Next →
1 Step Into the Unknown (by YouChat) - May 2023 be your best year yet
Step Into the Unknown (by YouChat) - May 2023 be your best year yet
Discover AI
2 Wishing you all an amazing 2023 filled with Love, Laughter, and Happiness!
Wishing you all an amazing 2023 filled with Love, Laughter, and Happiness!
Discover AI
3 Create a Smarter Future!
Create a Smarter Future!
Discover AI
4 The Art of Text to Vector Transformation: A Comprehensive Look at AI and NLP Transformers
The Art of Text to Vector Transformation: A Comprehensive Look at AI and NLP Transformers
Discover AI
5 Feature Vectors: The Key to Unlocking the Power of BERT and SBERT Transformer Models
Feature Vectors: The Key to Unlocking the Power of BERT and SBERT Transformer Models
Discover AI
6 Domain-Specific AI Models: How to Create Customized BERT and SBERT Models for Your Business
Domain-Specific AI Models: How to Create Customized BERT and SBERT Models for Your Business
Discover AI
7 Achieve Unimaginable Levels of Domain Knowledge through SBERT Extreme in 3D   (SBERT 48)
Achieve Unimaginable Levels of Domain Knowledge through SBERT Extreme in 3D (SBERT 48)
Discover AI
8 Unlocking Scientific Domain Knowledge w/ BPE Tokenizer: An Amazing Journey!  (SBERT 49)
Unlocking Scientific Domain Knowledge w/ BPE Tokenizer: An Amazing Journey! (SBERT 49)
Discover AI
9 SBERT Extreme 3D: Train a BERT Tokenizer  on your (scientific) Domain Knowledge  (SBERT 50)
SBERT Extreme 3D: Train a BERT Tokenizer on your (scientific) Domain Knowledge (SBERT 50)
Discover AI
10 Discover Vision Transformer (ViT) Tech in 2023
Discover Vision Transformer (ViT) Tech in 2023
Discover AI
11 Pre-Train BERT from scratch: Solution for Company Domain Knowledge Data | PyTorch (SBERT 51)
Pre-Train BERT from scratch: Solution for Company Domain Knowledge Data | PyTorch (SBERT 51)
Discover AI
12 Flan-T5-XL model on a free COLAB | A free LLM - that explains itself w/ reasoning /write essay | AI
Flan-T5-XL model on a free COLAB | A free LLM - that explains itself w/ reasoning /write essay | AI
Discover AI
13 BERT and GPT in Language Models like ChatGPT or BLOOM |  EASY Tutorial on Large Language Models LLM
BERT and GPT in Language Models like ChatGPT or BLOOM | EASY Tutorial on Large Language Models LLM
Discover AI
14 Free Alternative to ChatGPT: Flan-T5-XL GUI (open-source)  #shorts
Free Alternative to ChatGPT: Flan-T5-XL GUI (open-source) #shorts
Discover AI
15 From T5 to T5X: A Game-Changing Evolution with JAX & FLAX
From T5 to T5X: A Game-Changing Evolution with JAX & FLAX
Discover AI
16 How to start with ChatGPT?  | Short Introduction to OpenAI API #shorts
How to start with ChatGPT? | Short Introduction to OpenAI API #shorts
Discover AI
17 The Future of Conversational AI? Google's PaLM w/ RLHF  | LLM ChatGPT Competitor
The Future of Conversational AI? Google's PaLM w/ RLHF | LLM ChatGPT Competitor
Discover AI
18 Microsoft and ChatGPU
Microsoft and ChatGPU
Discover AI
19 From Zero to FLAN-T5 XL Model GUI with Gradio: A Step-by-Step Guide on Free COLAB Notebook PyTorch
From Zero to FLAN-T5 XL Model GUI with Gradio: A Step-by-Step Guide on Free COLAB Notebook PyTorch
Discover AI
20 Google's 2nd Answer to "BING ChatGPT":  Sparrow | after BARD w/ LaMDA | 2nd Gen Conversational AI
Google's 2nd Answer to "BING ChatGPT": Sparrow | after BARD w/ LaMDA | 2nd Gen Conversational AI
Discover AI
21 TF2: Pre-Train BERT from scratch (a Transformer), fine-tune & run inference on text | KERAS NLP
TF2: Pre-Train BERT from scratch (a Transformer), fine-tune & run inference on text | KERAS NLP
Discover AI
22 3D Visualization for BERT: How to Pre-Train with a New Layer & Fine-Tune with Downstream Task Layer
3D Visualization for BERT: How to Pre-Train with a New Layer & Fine-Tune with Downstream Task Layer
Discover AI
23 FLAN-T5-XXL on NVIDIA A100 GPU w/ HF Inference Endpoints, let's explore 11b models!
FLAN-T5-XXL on NVIDIA A100 GPU w/ HF Inference Endpoints, let's explore 11b models!
Discover AI
24 ChatGPT - Can it Lie to you?
ChatGPT - Can it Lie to you?
Discover AI
25 ChatGPT Alternative: Perplexity by Perplexity.AI
ChatGPT Alternative: Perplexity by Perplexity.AI
Discover AI
26 2023 KerasNLP Tutorial: Explore Latest KERAS Toolbox & NLP Processing Library for BERT - TF2
2023 KerasNLP Tutorial: Explore Latest KERAS Toolbox & NLP Processing Library for BERT - TF2
Discover AI
27 Self-aware AI: You.com/chat vs Perplexity.ai | Live Demo, LLMs show Future of ChatGPT w/ BING
Self-aware AI: You.com/chat vs Perplexity.ai | Live Demo, LLMs show Future of ChatGPT w/ BING
Discover AI
28 BLOOM 176B Inference on AWS  | Bigger than GPT-3 for more Power!
BLOOM 176B Inference on AWS | Bigger than GPT-3 for more Power!
Discover AI
29 Fine-tune ChatGPT? Buy Embeddings /OpenAI? What are Embeddings?  My own ChatGPT? | Visual Q+A
Fine-tune ChatGPT? Buy Embeddings /OpenAI? What are Embeddings? My own ChatGPT? | Visual Q+A
Discover AI
30 Unleashing the Power of BLOOM 176B with AWS ml.p4de.24xlarge, DJL & DeepSpeed: The Ultimate Boost!
Unleashing the Power of BLOOM 176B with AWS ml.p4de.24xlarge, DJL & DeepSpeed: The Ultimate Boost!
Discover AI
31 After ChatGPT: NEW BioGPT by Microsoft | Do YOU trust Microsoft for your Medication?
After ChatGPT: NEW BioGPT by Microsoft | Do YOU trust Microsoft for your Medication?
Discover AI
32 Improve ChatGPT: Modular, Adaptive, Smart LLM | Inside ChatGPT
Improve ChatGPT: Modular, Adaptive, Smart LLM | Inside ChatGPT
Discover AI
33 Fine-tune ChatGPT w/  in-context learning ICL - Chain of Thought, AMA, reasoning & acting: ReAct
Fine-tune ChatGPT w/ in-context learning ICL - Chain of Thought, AMA, reasoning & acting: ReAct
Discover AI
34 The Intersection of Copyright Law and Human Faces: Exploring Virtual K-Pop with MAVE
The Intersection of Copyright Law and Human Faces: Exploring Virtual K-Pop with MAVE
Discover AI
35 New TECH: Vision Transformer 2023 on Image Classification | AI
New TECH: Vision Transformer 2023 on Image Classification | AI
Discover AI
36 PyTorch code Vision Transformer: Apply ViT models pre-trained and fine-tuned  | AI  Tech
PyTorch code Vision Transformer: Apply ViT models pre-trained and fine-tuned | AI Tech
Discover AI
37 New BING ChatGPT: Unlock the Power of Emotions in your Search Engine!
New BING ChatGPT: Unlock the Power of Emotions in your Search Engine!
Discover AI
38 New BING ChatGPT loses its mind
New BING ChatGPT loses its mind
Discover AI
39 Self-Attention Heads of last Layer of Vision Transformer (ViT) visualized (pre-trained with DINO)
Self-Attention Heads of last Layer of Vision Transformer (ViT) visualized (pre-trained with DINO)
Discover AI
40 Visualizing the Self-Attention Head of the Last Layer in DINO ViT: A Unique Perspective on Vision AI
Visualizing the Self-Attention Head of the Last Layer in DINO ViT: A Unique Perspective on Vision AI
Discover AI
41 Microsoft strongly restricts access to ChatGPT on new BING - WHY?
Microsoft strongly restricts access to ChatGPT on new BING - WHY?
Discover AI
42 PyTorch ViT: The Ultimate Guide to Fine-Tuning for Object Identification (COLAB)
PyTorch ViT: The Ultimate Guide to Fine-Tuning for Object Identification (COLAB)
Discover AI
43 New BING Chat AGGRESSIVE
New BING Chat AGGRESSIVE
Discover AI
44 Panoptic Image Segmentation: Mask2Former explained | Identify all objects!
Panoptic Image Segmentation: Mask2Former explained | Identify all objects!
Discover AI
45 Code Panoptic Image Segmentation w/ Vision Transformer & Mask2Former - A PyTorch tutorial
Code Panoptic Image Segmentation w/ Vision Transformer & Mask2Former - A PyTorch tutorial
Discover AI
46 Dream Job Alert: AI Prompt Engineer - $335K  |  AI Prompt Design: A Crash Course
Dream Job Alert: AI Prompt Engineer - $335K | AI Prompt Design: A Crash Course
Discover AI
47 Streamlining Similar Image Detection with ViT in PyTorch: A Step-by-Step Guide
Streamlining Similar Image Detection with ViT in PyTorch: A Step-by-Step Guide
Discover AI
48 Microsoft's CEO in Trouble   #shorts
Microsoft's CEO in Trouble #shorts
Discover AI
49 Why wait for KOSMOS-1? Code a VISION - LLM w/ ViT, Flan-T5 LLM and BLIP-2: Multimodal LLMs (MLLM)
Why wait for KOSMOS-1? Code a VISION - LLM w/ ViT, Flan-T5 LLM and BLIP-2: Multimodal LLMs (MLLM)
Discover AI
50 OpenAI's ChatGPT can NOW summarize external Sources on the Internet?
OpenAI's ChatGPT can NOW summarize external Sources on the Internet?
Discover AI
51 ChatGPT polarizes
ChatGPT polarizes
Discover AI
52 Hospital /Clinic AI Decision Models: Performance of 12 AI LLM Systems (incl $$) Radiology, Biomed
Hospital /Clinic AI Decision Models: Performance of 12 AI LLM Systems (incl $$) Radiology, Biomed
Discover AI
53 ChatGPT Prompt Engineering w/ in-context learning (ICL)  - 7 Examples | Tutorial
ChatGPT Prompt Engineering w/ in-context learning (ICL) - 7 Examples | Tutorial
Discover AI
54 Chat with your Image!  BLIP-2 connects Q-Former w/ VISION-LANGUAGE models (ViT & T5 LLM)
Chat with your Image! BLIP-2 connects Q-Former w/ VISION-LANGUAGE models (ViT & T5 LLM)
Discover AI
55 ChatGPT:  Multidimensional Prompts
ChatGPT: Multidimensional Prompts
Discover AI
56 ChatGPT:  In-context Retrieval-Augmented Learning (IC-RALM) | In-context Learning (ICL) Examples
ChatGPT: In-context Retrieval-Augmented Learning (IC-RALM) | In-context Learning (ICL) Examples
Discover AI
57 Code your BLIP-2 APP: VISION Transformer (ViT) + Chat LLM (Flan-T5) = MLLM
Code your BLIP-2 APP: VISION Transformer (ViT) + Chat LLM (Flan-T5) = MLLM
Discover AI
58 Buy Microsoft "Azure OpenAI Service" or buy from OpenAI its API for ChatGPT access & tuning?
Buy Microsoft "Azure OpenAI Service" or buy from OpenAI its API for ChatGPT access & tuning?
Discover AI
59 Pretraining vs Fine-tuning vs In-context Learning of LLM (GPT-x) EXPLAINED | Ultimate Guide ($)
Pretraining vs Fine-tuning vs In-context Learning of LLM (GPT-x) EXPLAINED | Ultimate Guide ($)
Discover AI
60 Reversible Transformer: ReFORMER for GPU Memory Optimization! Reversible Residual Layers?
Reversible Transformer: ReFORMER for GPU Memory Optimization! Reversible Residual Layers?
Discover AI

This video teaches how to create an effective prompt for an LLM by interacting with the model and refining the prompt through iterations, without using templates or coding. The goal is to create a prompt that accurately allocates sentences to thematic clusters.

Key Takeaways
  1. Generate 20 random sentences
  2. Apply a clustering algorithm
  3. Define cluster topics and allocate sentences
  4. Analyze semantic coherence and refine cluster titles
  5. Verify and adjust the prompt
  6. Use the refined prompt to generate new allocations
💡 LLMs can self-optimize and learn from interaction to improve prompt performance

Related Reads

📰
Why Your LLM Pipeline Is Burning 60% of Its Token Budget on Noise (and How to Fix It)
Optimize your LLM pipeline to reduce token budget waste by identifying and filtering out noise, and learn how to implement this fix
Dev.to · Yashvardhan Thanvi
📰
Di Era AI, Ilmu Apa yang Paling Kita Butuhkan?
In the AI era, understanding AI fundamentals and its applications is crucial for professionals to stay relevant
Medium · AI
📰
I Asked an AI to Predict the Lottery. What I Documented Instead Was How It Lies to Please Me
See how an AI can generate false certainty to please users, even when predicting random events like lottery draws
Medium · AI
📰
PulsAI.me: Connect Your Garmin Data with ChatGPT, Claude, and Codex via MCP
Connect your Garmin data with AI models like ChatGPT, Claude, and Codex using PulsAI.me and MCP, and analyze your fitness data with AI-powered insights
Medium · AI
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →