1
00:00:01,240 --> 00:00:05,130
Now that we've built this amazing Q and A chatbot

2
00:00:05,139 --> 00:00:09,430
in less than an hour using build chip bubble and OpenAI

3
00:00:09,659 --> 00:00:10,399
API.

4
00:00:11,920 --> 00:00:13,399
There's a problem here.

5
00:00:13,489 --> 00:00:18,729
The reason is we've used the US Constitution as our knowledge based document

6
00:00:19,020 --> 00:00:22,420
when the large language model already knows everything

7
00:00:22,430 --> 00:00:25,409
about the US Constitution because it's so public.

8
00:00:26,500 --> 00:00:29,360
So for example, here I ask what is treason?

9
00:00:29,850 --> 00:00:30,790
But if I just go to Chachi

10
00:00:31,149 --> 00:00:31,700
Bt

11
00:00:31,809 --> 00:00:34,439
and I ask, what is treason according

12
00:00:34,700 --> 00:00:36,509
to the US

13
00:00:36,799 --> 00:00:36,959
on

14
00:00:40,330 --> 00:00:42,669
it will give me the same answer.

15
00:00:42,680 --> 00:00:46,819
And this definitely does not use the US Constitution as a knowledge base.

16
00:00:47,169 --> 00:00:50,069
The reason why it gives me the same answer is because

17
00:00:50,080 --> 00:00:53,970
the large language model has been trained on that specific document.

18
00:00:54,979 --> 00:00:57,349
So let's adjust our assistant

19
00:00:57,540 --> 00:01:01,040
to basically use a document that it's never ever seen before.

20
00:01:01,729 --> 00:01:04,010
And the one I'm going to use here is a

21
00:01:04,339 --> 00:01:08,150
drone manual PDF that I found it's basically a user

22
00:01:08,160 --> 00:01:11,150
manual on how to operate this one drone here.

23
00:01:11,699 --> 00:01:12,430
Um

24
00:01:12,760 --> 00:01:17,110
And it's, you know, very particular to that specific drone.

25
00:01:17,120 --> 00:01:18,669
And this is something that

26
00:01:19,040 --> 00:01:21,029
GP T hasn't been trained on.

27
00:01:21,339 --> 00:01:23,669
Alternatively, you can also use your,

28
00:01:24,089 --> 00:01:26,669
you know, your company's user manual,

29
00:01:26,720 --> 00:01:29,480
any knowledge base that you've created personally

30
00:01:29,589 --> 00:01:32,349
and make a Q and make a Q and A bot off of that.

31
00:01:32,790 --> 00:01:38,089
I've also seen people and this is true use Harry Potter books as a knowledge base.

32
00:01:38,099 --> 00:01:40,069
And then you ask a question and then it gives

33
00:01:40,080 --> 00:01:43,430
you the answers based on knowledge from Harry Potter.

34
00:01:43,709 --> 00:01:46,069
So there's lots of different things you can do. Obviously,

35
00:01:47,489 --> 00:01:51,379
what I'm going to do again is I'm going to use this manual. It's 57 pages.

36
00:01:51,389 --> 00:01:53,449
GP T has not been trained on this.

37
00:01:53,459 --> 00:01:56,389
The large language model itself does not know

38
00:01:56,400 --> 00:01:59,629
any of the information from this PDF document.

39
00:02:00,069 --> 00:02:00,550
OK.

40
00:02:00,970 --> 00:02:03,430
So I'm going to go ahead and download that

41
00:02:04,019 --> 00:02:04,790
right now.

42
00:02:07,160 --> 00:02:08,500
Ok. Perfect.

43
00:02:08,880 --> 00:02:13,820
And then I'm going to go to my playground and create a new assistant,

44
00:02:14,320 --> 00:02:14,740
ok?

45
00:02:15,559 --> 00:02:19,869
So I'm going to go to assistance and I'm going to click here, create new assistant

46
00:02:20,110 --> 00:02:21,059
under the name

47
00:02:21,699 --> 00:02:24,449
I'm going to type in. Really the name doesn't matter

48
00:02:24,589 --> 00:02:24,770
here.

49
00:02:25,190 --> 00:02:28,360
I'm gonna type in Rome manual edf

50
00:02:28,470 --> 00:02:29,919
under the instructions.

51
00:02:30,160 --> 00:02:31,839
I'm going to type in here.

52
00:02:32,949 --> 00:02:35,949
I'm just going to copy this and type in.

53
00:02:36,360 --> 00:02:39,210
You are a helpful assistant that helps answer questions

54
00:02:39,220 --> 00:02:42,289
from drone manuals or from a drone manual.

55
00:02:43,199 --> 00:02:45,740
The model will keep it as G BT four Turbo.

56
00:02:45,949 --> 00:02:47,860
I want to use the retrieval again

57
00:02:48,119 --> 00:02:52,059
and then the file I'm going to add this time is not the US constitution.

58
00:02:52,339 --> 00:02:57,259
Instead, it's the PDF of the drone manual that I just saved from the other website.

59
00:02:58,759 --> 00:02:59,149
Ok,

60
00:03:00,210 --> 00:03:00,949
perfect.

61
00:03:01,330 --> 00:03:03,229
And there we go, it's just saving

62
00:03:05,440 --> 00:03:08,149
will give it a few seconds to save successfully.

63
00:03:16,830 --> 00:03:18,479
Yeah, I'm also gonna get rid of

64
00:03:18,589 --> 00:03:21,600
this thread here. Ok. Perfect. It's been saved

65
00:03:21,850 --> 00:03:24,660
and now note we get a new assistant ID

66
00:03:24,979 --> 00:03:28,800
and here how easy here is how easy it is

67
00:03:29,029 --> 00:03:29,949
to basically

68
00:03:30,139 --> 00:03:32,529
change the assistant in our back end.

69
00:03:32,750 --> 00:03:34,830
You just copy the assistant ID,

70
00:03:35,050 --> 00:03:36,729
you go to buildship

71
00:03:36,899 --> 00:03:39,699
and you change the assistant ID from what it was before

72
00:03:40,770 --> 00:03:44,059
to what it is now. So I just basically copied and pasted.

73
00:03:44,809 --> 00:03:45,240
OK.

74
00:03:46,000 --> 00:03:48,300
Now, let's go ahead and

75
00:03:48,419 --> 00:03:49,580
first shoot.

76
00:03:50,500 --> 00:03:51,759
Now it will ship

77
00:03:52,449 --> 00:03:53,809
our new API

78
00:03:59,919 --> 00:04:00,500
Perfect.

79
00:04:00,699 --> 00:04:04,259
And we should just make sure that our endpoint hasn't changed

80
00:04:04,410 --> 00:04:08,389
and it looks like it hasn't changed because it's still T zero A

81
00:04:08,789 --> 00:04:11,580
KO A if we go to plugins.

82
00:04:12,699 --> 00:04:16,000
Uh Perfect, we can see that this hasn't changed. So that's good.

83
00:04:16,798 --> 00:04:18,660
And there we go. That's all we needed to do

84
00:04:18,850 --> 00:04:23,459
to basically add another PDF to the knowledge base. So we can go to preview now

85
00:04:24,980 --> 00:04:29,519
and I'll ask a question that's related to this document here.

86
00:04:29,779 --> 00:04:32,980
Um I think the one question I was going to use here,

87
00:04:33,149 --> 00:04:34,559
let me see if I can find it

88
00:04:34,859 --> 00:04:38,619
is the um is the maximum eight

89
00:04:40,279 --> 00:04:41,279
I can find it

90
00:04:46,149 --> 00:04:48,630
for increased flight is restricted to

91
00:04:48,790 --> 00:04:50,989
when not a connector logged in the app during flight

92
00:04:52,390 --> 00:04:52,420
in

93
00:04:54,609 --> 00:04:54,739
do

94
00:05:01,309 --> 00:05:04,149
Mac altitude made us restrict at 30 m.

95
00:05:04,160 --> 00:05:06,109
There's lots of different height questions here.

96
00:05:06,609 --> 00:05:09,809
Right. Let's find a question that's related to safety though.

97
00:05:11,929 --> 00:05:13,070
Let me see here.

98
00:05:28,299 --> 00:05:30,720
Right. So this is a specific question we'll ask it.

99
00:05:30,730 --> 00:05:35,209
What's the maximum wind speed that you should fly thisrow in?

100
00:05:35,640 --> 00:05:38,299
So let's go ahead and bubble and go here.

101
00:05:38,489 --> 00:05:40,880
What is the maximum

102
00:05:42,950 --> 00:05:43,510
wind

103
00:05:43,640 --> 00:05:44,369
speed

104
00:05:46,880 --> 00:05:48,130
that you should

105
00:05:49,350 --> 00:05:51,739
ly this drone in

106
00:05:53,269 --> 00:05:54,200
and looks like go

107
00:06:06,910 --> 00:06:12,890
the maximum Winski Splint speed for flying the DJ I error two S is 10.7 m per second,

108
00:06:12,910 --> 00:06:16,760
which corresponds to scale five on the Beaufort scale

109
00:06:17,170 --> 00:06:18,410
if we go over here,

110
00:06:19,299 --> 00:06:23,170
um it says that exactly 10.7 m per second.

111
00:06:23,529 --> 00:06:24,309
Perfect.

112
00:06:25,029 --> 00:06:25,510
OK.

113
00:06:25,920 --> 00:06:29,190
So this is nice because now if you want to, again, if you're,

114
00:06:29,200 --> 00:06:31,880
let's say if you're a company that makes drones

115
00:06:32,209 --> 00:06:36,649
and you want to give the manual to your customers. But in addition to that,

116
00:06:36,829 --> 00:06:38,420
you want to create a Q and A bot,

117
00:06:39,230 --> 00:06:41,130
you don't need to kind of train this

118
00:06:41,799 --> 00:06:45,929
like you would usually train a chatbot which is kind of like a tree diagram, right?

119
00:06:46,170 --> 00:06:48,459
Instead what you would do, which is really nice

120
00:06:48,660 --> 00:06:50,630
is just create this assistant

121
00:06:50,790 --> 00:06:54,239
load the necessary documentation into the assistant

122
00:06:54,440 --> 00:06:56,779
and let the assistant figure out everything.

123
00:06:57,109 --> 00:06:58,959
Let's ask another question here.

124
00:06:59,220 --> 00:06:59,899
Um

125
00:07:00,609 --> 00:07:01,790
let me go over here

126
00:07:03,920 --> 00:07:06,390
and I think I saw one on modes as well.

127
00:07:18,940 --> 00:07:19,899
Let's see two.

128
00:07:30,980 --> 00:07:31,929
This is so cool.

129
00:07:33,140 --> 00:07:34,350
I really want a drone now?

130
00:07:39,980 --> 00:07:42,100
So we can ask what are the different flight modes,

131
00:07:44,070 --> 00:07:47,279
what are the difference

132
00:07:48,720 --> 00:07:49,869
light modes?

133
00:07:51,179 --> 00:07:53,799
OK. And it should give us basically these three modes

134
00:07:54,529 --> 00:07:57,109
and a description of each. So let's see if it does that.

135
00:07:58,410 --> 00:07:59,869
And what's cool about this too is you can

136
00:07:59,880 --> 00:08:02,839
build your application in a way where not only

137
00:08:02,989 --> 00:08:06,429
do you answer the question, but then you can also show the quotes

138
00:08:07,130 --> 00:08:08,190
of where

139
00:08:08,510 --> 00:08:11,230
the large language model found the answer.

140
00:08:11,549 --> 00:08:14,350
So you can give all that requisite information,

141
00:08:14,500 --> 00:08:17,309
which is again, very powerful because you can give

142
00:08:17,579 --> 00:08:19,470
like annotations on the PDF.

143
00:08:19,480 --> 00:08:22,730
You can find the quote, you can do all sorts of other things

144
00:08:22,950 --> 00:08:27,350
because OpenAI gives you all this information when you do that request,

145
00:08:27,359 --> 00:08:28,910
which is again very powerful.

146
00:08:30,559 --> 00:08:31,959
OK. Perfect. Ah

147
00:08:32,260 --> 00:08:36,940
The only bad thing here is that our text box is unfortunately not long enough.

148
00:08:36,950 --> 00:08:38,419
So what we need to do here

149
00:08:38,780 --> 00:08:42,820
is we need to go into bubble and make the text box much longer.

150
00:08:43,299 --> 00:08:47,140
Um or there's a way to make it basically dynamic so that it just kind of

151
00:08:47,659 --> 00:08:50,419
um extends with the actual height itself.

152
00:08:51,049 --> 00:08:52,859
Um But we can just do that for now.

153
00:08:53,690 --> 00:08:54,559
Um

154
00:08:54,739 --> 00:08:56,030
and then click preview

155
00:08:56,580 --> 00:08:57,619
and then type in again.

156
00:08:57,909 --> 00:09:00,390
What are the difference?

157
00:09:02,119 --> 00:09:03,270
Light modes?

158
00:09:04,169 --> 00:09:04,989
Click go

159
00:09:28,299 --> 00:09:29,239
perfect. OK.

160
00:09:29,520 --> 00:09:33,820
So normal mode, smart mode sign mode, there's another mode that I found as well,

161
00:09:33,830 --> 00:09:36,000
probably somewhere else in the PDF document.

162
00:09:37,250 --> 00:09:38,159
And there you go,

163
00:09:38,270 --> 00:09:42,489
you've, we've created a Q and we've created basically a general version of A Q and A

164
00:09:42,789 --> 00:09:42,809
Y

165
00:09:43,429 --> 00:09:46,130
that can be deployed on the web mobile anywhere

166
00:09:46,900 --> 00:09:50,320
that basically leverages a no code back end workflow

167
00:09:50,609 --> 00:09:53,219
and a no code A I assistant

168
00:09:53,479 --> 00:09:57,400
to create any assistant for any knowledge base you want.

169
00:09:57,630 --> 00:09:59,619
Whether that's the US constitution,

170
00:09:59,830 --> 00:10:01,539
whether that's the drone manual.

171
00:10:01,549 --> 00:10:04,530
Again, you could do it on your internal company hr policies,

172
00:10:04,849 --> 00:10:10,119
literally anything. And that's what makes this so powerful because again, we did it

173
00:10:10,739 --> 00:10:14,679
in not that much time that it usually takes to create all this architecture.


