VOOZH about

URL: https://thenewstack.io/getting-started-with-openais-gpt-builder-and-how-it-uses-rag/

⇱ Getting Started With OpenAI's GPT Builder, and How It Uses RAG - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-05-11 05:00:12
Getting Started With OpenAI's GPT Builder, and How It Uses RAG
tutorial,
AI

Getting Started With OpenAI’s GPT Builder, and How It Uses RAG

We explore OpenAI's GPT Builder, which gives you a way to create a GPT that follows persona instructions and uses RAG-based data.
May 11th, 2024 5:00am by David Eastman
👁 Featued image for: Getting Started With OpenAI’s GPT Builder, and How It Uses RAG
Image via Unsplash+. 

After being impressed by their first ChatGPT experience, many users may be motivated to try to tailor the experience to their specific domain. We know that retraining an LLM is not a simple task, and I’ve gone over the pros and cons of RAG (retrieval-augmented generation). OpenAI also offers the GPT Builder, a way to create a customized version of ChatGPT. So let’s take a look.

  • Note: This post will be largely code-free, although I assume the reader has a solid understanding of the LLM ecosystem.

A GPT created by OpenAI’s builder is simply referred to as a “GPT,” and you will see the plural term “GPTs” used shortly. Remember that OpenAI is keen to appear to own the concept of the Generative Pre-training Transformer, even though they do not.

Now, the first proviso is that you can’t do this on the free tier offered by OpenAI. If you have access to a corporate account or you are already a GPT-4 user, this is no issue. To keep things level, I normally use standard consumer accounts — hence this warning. Perhaps some of OpenAI’s competitors already provide this functionality on a free tier; but regardless, OpenAI will be the standard they use.

The entry point from the ChatGPT main page is the Explore GPTs tab:

👁 Image

Here are the current trending GPTs that users have chosen to share. I think this section will later morph into more of a marketplace:

👁 Image

We’re going to create our own GPT, and I’ll again use William Shakespeare’s sonnets as my example domain, as they have a known corpus. They are written in older English, which should challenge the LLM slightly, while still existing as a deep well of isolated knowledge. We’ll fashion the chat interface as a tutor to help a student who is studying the sonnets. I realize that making a bot for internal corporate help is more likely to be your professional aim.

Hit the Create button in the top right, and off we go.

👁 Image

When instructing an LLM, focus on the who, how, why and what. We need to specify that the persona for this GPT is a tutor assisting a student with Shakespeare’s sonnets. First, the easy bit: naming.

👁 Image

Well, this is a deeply inventive bit of naming advice. It did also generate a suitable image (remember, DALL·E is also part of the OpenAI ecosystem).

Now for the important bit:

👁 Image

Here are my instructions on the left along with a result on the right. The Configure tab holds the current summary that the conversational builder is developing. You can help nudge user questions away from an area, and steering might be particularly relevant for a corporate bot. Note that the starter questions are generated:

👁 Image

To form an example question, I just selected a term from a sonnet, noting its probable intended meaning. I’m no English literature academic, but it looks correct.

This is all fine, so let’s see what happens if I go off-topic.

👁 Image

Of course, it could be that we have new information to offer. I’m going to introduce a “new” sonnet, based on the well-known bear:

👁 Image

How GPT Builder Uses RAG

Let’s turn off web browsing and upload a new sonnet for the LLM to integrate. This is done via RAG, which means that OpenAI does a contextual search inside your data, and passes what it finds to your query prompt as it goes up to the LLM for processing. This effectively allows you to add to what the LLM already knows; however, we will see the limits of that approach shortly.

Note that the context window for a query isn’t infinite — it’s about 32K for GPT-4. Also, the Code Interpreter option needs to be applied for GPT to use additional files.

So how does GPT deal with this gentle attempt to introduce new knowledge?

👁 Image

This is an extremely good answer, but also a warning for more serious uses. When introducing your own information — and again, I’ll assume you are creating an internal corporate knowledge system or similar — anything imported should be consistent with existing information. Whatever you think of an LLM’s capabilities, it does create enough metadata to comprehend how it knows information.

The final way of introducing information is through actions, which are effectively REST calls to outside services. In the example given, a schema is specified for a weather service. You can make third-party APIs available by providing details about the endpoints and parameters as well as a description about how the model should be used. The schema looks self-explanatory. In the example, a GetCurrentWeather request is defined against the /location endpoint:

👁 Image

You can find out more about the format on OpenAI’s GitHub.

Conclusion

This functionality is clearly still in development and comes with restrictions. Making money from a GPT will be done through a marketplace, which is currently in testing. Any built GPTs will only be accessible within the OpenAI website — and, as mentioned, this is not available when using the free tier.

There is already a large range of available examples, so you may find that you don’t even have to create one yourself.

So is this a code-free custom LLM? GPT Builder does give you a way to create a GPT that follows persona instructions and accepts RAG-based data. But while I did need to understand the workings of an LLM, I didn’t write any code — apart from the schema code if an action is written. So this is certainly a simpler way of controlling and maintaining a specific LLM chat interface, and probably a good starting place.

TRENDING STORIES
David has been a London-based professional software developer with Oracle Corp. and British Telecom, and a consultant helping teams work in a more agile fashion. He wrote a book on UI design and has been writing technical articles ever since....
Read more from David Eastman
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: OpenAI.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.