Now that we've built this amazing Q and A chatbot
in less than an hour using build chip bubble and OpenAI
API.
There's a problem here.
The reason is we've used the US Constitution as our knowledge based document
when the large language model already knows everything
about the US Constitution because it's so public.
So for example, here I ask what is treason?
But if I just go to Chachi
Bt
and I ask, what is treason according
to the US
on
it will give me the same answer.
And this definitely does not use the US Constitution as a knowledge base.
The reason why it gives me the same answer is because
the large language model has been trained on that specific document.
So let's adjust our assistant
to basically use a document that it's never ever seen before.
And the one I'm going to use here is a
drone manual PDF that I found it's basically a user
manual on how to operate this one drone here.
Um
And it's, you know, very particular to that specific drone.
And this is something that
GP T hasn't been trained on.
Alternatively, you can also use your,
you know, your company's user manual,
any knowledge base that you've created personally
and make a Q and make a Q and A bot off of that.
I've also seen people and this is true use Harry Potter books as a knowledge base.
And then you ask a question and then it gives
you the answers based on knowledge from Harry Potter.
So there's lots of different things you can do. Obviously,
what I'm going to do again is I'm going to use this manual. It's 57 pages.
GP T has not been trained on this.
The large language model itself does not know
any of the information from this PDF document.
OK.
So I'm going to go ahead and download that
right now.
Ok. Perfect.
And then I'm going to go to my playground and create a new assistant,
ok?
So I'm going to go to assistance and I'm going to click here, create new assistant
under the name
I'm going to type in. Really the name doesn't matter
here.
I'm gonna type in Rome manual edf
under the instructions.
I'm going to type in here.
I'm just going to copy this and type in.
You are a helpful assistant that helps answer questions
from drone manuals or from a drone manual.
The model will keep it as G BT four Turbo.
I want to use the retrieval again
and then the file I'm going to add this time is not the US constitution.
Instead, it's the PDF of the drone manual that I just saved from the other website.
Ok,
perfect.
And there we go, it's just saving
will give it a few seconds to save successfully.
Yeah, I'm also gonna get rid of
this thread here. Ok. Perfect. It's been saved
and now note we get a new assistant ID
and here how easy here is how easy it is
to basically
change the assistant in our back end.
You just copy the assistant ID,
you go to buildship
and you change the assistant ID from what it was before
to what it is now. So I just basically copied and pasted.
OK.
Now, let's go ahead and
first shoot.
Now it will ship
our new API
Perfect.
And we should just make sure that our endpoint hasn't changed
and it looks like it hasn't changed because it's still T zero A
KO A if we go to plugins.
Uh Perfect, we can see that this hasn't changed. So that's good.
And there we go. That's all we needed to do
to basically add another PDF to the knowledge base. So we can go to preview now
and I'll ask a question that's related to this document here.
Um I think the one question I was going to use here,
let me see if I can find it
is the um is the maximum eight
I can find it
for increased flight is restricted to
when not a connector logged in the app during flight
in
do
Mac altitude made us restrict at 30 m.
There's lots of different height questions here.
Right. Let's find a question that's related to safety though.
Let me see here.
Right. So this is a specific question we'll ask it.
What's the maximum wind speed that you should fly thisrow in?
So let's go ahead and bubble and go here.
What is the maximum
wind
speed
that you should
ly this drone in
and looks like go
the maximum Winski Splint speed for flying the DJ I error two S is 10.7 m per second,
which corresponds to scale five on the Beaufort scale
if we go over here,
um it says that exactly 10.7 m per second.
Perfect.
OK.
So this is nice because now if you want to, again, if you're,
let's say if you're a company that makes drones
and you want to give the manual to your customers. But in addition to that,
you want to create a Q and A bot,
you don't need to kind of train this
like you would usually train a chatbot which is kind of like a tree diagram, right?
Instead what you would do, which is really nice
is just create this assistant
load the necessary documentation into the assistant
and let the assistant figure out everything.
Let's ask another question here.
Um
let me go over here
and I think I saw one on modes as well.
Let's see two.
This is so cool.
I really want a drone now?
So we can ask what are the different flight modes,
what are the difference
light modes?
OK. And it should give us basically these three modes
and a description of each. So let's see if it does that.
And what's cool about this too is you can
build your application in a way where not only
do you answer the question, but then you can also show the quotes
of where
the large language model found the answer.
So you can give all that requisite information,
which is again, very powerful because you can give
like annotations on the PDF.
You can find the quote, you can do all sorts of other things
because OpenAI gives you all this information when you do that request,
which is again very powerful.
OK. Perfect. Ah
The only bad thing here is that our text box is unfortunately not long enough.
So what we need to do here
is we need to go into bubble and make the text box much longer.
Um or there's a way to make it basically dynamic so that it just kind of
um extends with the actual height itself.
Um But we can just do that for now.
Um
and then click preview
and then type in again.
What are the difference?
Light modes?
Click go
perfect. OK.
So normal mode, smart mode sign mode, there's another mode that I found as well,
probably somewhere else in the PDF document.
And there you go,
you've, we've created a Q and we've created basically a general version of A Q and A
Y
that can be deployed on the web mobile anywhere
that basically leverages a no code back end workflow
and a no code A I assistant
to create any assistant for any knowledge base you want.
Whether that's the US constitution,
whether that's the drone manual.
Again, you could do it on your internal company hr policies,
literally anything. And that's what makes this so powerful because again, we did it
in not that much time that it usually takes to create all this architecture.