Promptmetheus – Prompt Engineering Demo

Brief Summary

This video provides a practical guide on using Prometheus to create a ChatGPT integration for a journaling app called Micro Journey. It showcases how to extract sentiments, moods, and emotions from journal entries and visualize this data over time. Key points include the setup of different models, the construction of prompts, and the evaluation of the outputs.

  • The integration is named 'Freud' and is designed to summarize journal entries.
  • Users can interact with datasets and perform ratings to improve output quality.
  • Future developments include API integration and embedding features for enhanced application functionality.

Building a ChatGPT Integration with Prometheus

The video begins by introducing how to utilize Prometheus to develop a ChatGPT integration for an application called Micro Journey. The integration, named 'Freud', aims to analyze journal entries and extract meaningful information such as sentiment, mood, and emotions. By using the Forge playground, the creator sets up a project and discusses the different platforms and models available, selecting the most powerful one for optimal output.

Constructing the Initial Prompt

The process of constructing the initial prompt is introduced. The creator shows how to define a simple block and explain the context for using it with a journal entry. Diverse options known as fragments can be added to enhance the output. The video explains the creation of a dataset called journal entries, demonstrating how to input multiple examples to evaluate performance against different journal entries.

Executing and Evaluating Outputs

After constructing the prompt and integrating various datasets, the outputs are executed. The video showcases how to obtain results and provides insights into the effectiveness of the generated responses, including a feature that allows rating outputs based on their quality. The creator highlights the importance of visual statistics for monitoring which blocks and fragments produce the best results over time.

Supervised vs. Unsupervised Versions

The creator explores the difference between supervised and unsupervised models. In the supervised version, predetermined emotions are used, allowing for better-controlled output. The video illustrates the versatility of adjusting datasets and how these changes impact the quality of results. The versioning feature is also discussed, which helps track changes made to fragments over time and their corresponding outputs.

Future Development and API Integration

In conclusion, the creator shares exciting upcoming features like embedding documents into the project and an API that will enable seamless integration of the ChatGPT prompts into applications. This allows developers to update prompts and models without needing to republish their applications, making it easier to manage and enhance their software continuously. The creator expresses eagerness to see how others will utilize Prometheus in various projects.

Summarize any YouTube video in seconds

Get summaries like this one for any video, in your language, with the free Summ app.

Download on the App Store
Get it on Google Play

Transcript

Full transcript of “Promptmetheus – Prompt Engineering Demo”. Click a timestamp to open the video at that moment. Need another video? Use the YouTube transcript generator.

0:00 okay let's look at the real world example of how to use Prometheus to build a chat GPT integration for an app I have this micro Journey app and I want to build a really cool integration for it called Freud which will read the entry and extract sentiment mood and emotions from it and present to use as a small summary and also plot it over time in order to do that let's open the forge playground and create a new product let's call it Freud sentiment or sorry Freud emotions

0:47 you can choose the platform you want to use in the future we'll have more options for now it's only open AI the mode and the model let's go with the most powerful one and find unit you can set the temperature to zero to get um objective outputs you don't want to have any creativity in this task can also hover over the different settings to see what they do can at a stop sequence if you want and give it a system message

1:39 and then we construct a prompt you can minimize this with blocks and first of all we need to tell you what's going on following is an entry from micro Journal and we have this concept of fragments so for each block we can have different options that are called fragments um I go into detail in a bit but for now let's call this

2:25 first one simple and then we need an example um an entry we want to experiment with and play around we could actually add a new block to hard code it but even better we can use data sets and data blocks so let's create a new data set it's called journal entries and that holds some examples create some here we can just add a few options so we can see how the thing performs with different entries

3:14 and then we go back to the prompt and we can use this data set as part of our prompt data block and selected and here you can see now that we have the different options that we can swap back and forth and then some instructions two motions are present in the entry you can see here like each of the blocks um will get automatically done the token count

3:59 and total one and then see how much it will cost when we execute this front with the given model to get a better result you might also wanna add some output instructions like print only uh emotions as um comma rated list nothing else

4:44 it's gonna be called Simple I guess or maybe let's do unsupervised I will do a supervised version in a bit and that's it it's um the prompt you can preview it here how it looks in full you can also told token count and then we can just execute it and see what it comes up with okay so we get an output which doesn't look even bad and here on top we see how the prompt was constructed which blocks and which fragments we used for this specific output also which model parameters how much input and output tokens we had and how much interacting

5:30 costs and now one more interesting part is we can rate this you can say for instance this is really good one um I like it and then all the fragments that were used in this prompt the generators output you can see this color coding that will represent the quality of it let's run it again another output let's see for instance this one was bad you read it and you can see this will build up over time like visual statistics so that you can immediately see how each block and each fragment performed let's do um a target one here

6:18 and copy it gives some more instructions say bullet Journal Focus stick writing execute again and then if you rate this one you can see we get like um statistics for this one as well once we have a few options and play around for a while we can see which one is green which one is red and which one performs better in the bottom you can also see how much

7:04 money you spend or in total and requests how many we sent and um what is the total token count all right let's do a supervised version so instead of letting it come up with its own emotions I give it a set that it should choose from and we could hard code them but again we can use a data set let's do a new one

7:49 and I have already a set of emotions here this is like set 40. if I want to play around the different options I can say I just use half of them and set because or that's the five no it's available here as a data set can select it drag it into place and here you can see I can now play with

8:36 the different options to see how the output changes and let's go with the full set for now and execute it and get any output we can see um set 40 was used just like before you can write it again you get to see you can see the name the ratings one interesting thing might be also if for instance I don't want to use a block I can just remove it and it will be excluded from down from the printer

9:23 okay so one interesting thing also is we can see this versioning here once fragment was executed and I change it afterwards which one do we change let's just remove something here you can see him the version changes and if I execute it again we see that the version is updated so we always have full traceability of what

10:09 happened which prompt which block and which fragment produce which output and how it performed we have some options too change the display if this is too cramped for you yeah that's about it for now um I hope you like it I'm working on cool new things like embeddings where you can just drag and drop a PDF and use the contents as a context for the prompt and aipis which will allow you to to take the prompt you design and publish it to an API endpoint that you can use directly in your app

10:55 where you send for instance the the entry is a request body which will be inserted instead of the data set version and you get the output back so this way you build your application you only drop down API endpoint and from that point on never have to touch it again you just go to Prometheus update and play around and your app will just use the change version without republishing it to the Play store or something like that I guess this will be very powerful once it's ready all right that's it for now I'm really excited to see what you guys are

11:41 building with Prometheus and yeah have a good one

Share

More video summaries