際際滷
Submit Search
Introduction to AI Agents (8/2/23) - Kevin Rohling
0 likes
51 views
Kevin Rohling
Follow
Intro to AI Agents - 8/2/23
Read less
Read more
1 of 55
Download now
Download to read offline
More Related Content
Introduction to AI Agents (8/2/23) - Kevin Rohling
1.
01 What is
an AI Agent?
2.
50 ,*+/* )*0,4))*40/4
0*0,4))*40, 40,.5'$*2 0 40, /,*0*0 0*0,4))*40, 00415, %4/4*!42*,240!*040,, 42 /,*02 ,02)*04, /*4!4 )2 0 *%!4*,2%4 0/4*,)4 0*0 /**00)44 #
3.
/% )+* '+'
)!+) $ / + - / )+ +* / + ))+) ' *)+ + ' + / ' + )+
4.
# $'' '#%' # '=;'8 5'48''L= 0%'.;'M =%'6H5'= 5;',,=,' @*9,+=''=;)(
5.
(#$%# (# (# %#
# ( # (' ( ## # (
6.
(*,+')# # ,
)##
7.
$ $!
! !$ ! $! !% ! ! $ $ ! $ $ % ! !$$!
8.
!')# $($ $
9.
.-+.$*-%#-%$'*.$!- !.-'. %-$'-+)!-#% -%$!' $*%-$'$*$$'+.$*.-**- $#%-,$.%%-*-%+.$*. #-
%$$ -%$%#%-%' %$ --' # $
10.
02 Demos
11.
03 DeconstructinganAIAgent
12.
nbq^rlKqVqs_JqJoltqr`lqrl=TSbhXqJb9rS_bq(Sr`qr`lolqKh=hTlrl=oY ZNQQ/PLHG/PLNZFF;MBgNO AjNRUjAHjMZgPUg:G/PLNZggPA/88MLNPAjgQ/ZjgPMm ]`lq_XX_(Sb@q=loJXroq(l=lq=lrJ=bltY E 6 ke%ekeD [
E3 60-E 6 +'E Cek# -eCkeek#'3*- *eIe 3 66 '?a- a ae3 3a- aE 6 a- a aeE 6 4 [ E'*-7[!k+kk - 3 1 , ?-E?aaE 6 e ) - 0 - E' * 6 d - 0 '# - 3' $ E 3EE e
13.
03 ExecutionEnvironment Someagenttoolsmaybecapableofperforming dangerous/destructiveoperations(ieshell, python,etc.).Thesetoolsshouldbeexecutedina safe/secureenvironment.
14.
%$
$ $ $ $$
15.
'#3 ; @22
2) )+ (;; @;. '%2 @! ''$B 2 ' C'@'$B ') ; +2 ;)3 2 2; ;@ ; +@ @ ) (@+ 5(@; + )2: ' ; (;; @2 ;@ ; 2(@+ @: ' ; ; @+;,,% ; 2 @+ @2 9 ! 2) @ ( 2 ;
16.
03 ExamplePrompt [EXAMPLEPROMPT]
17.
- -
4% ,$--4! 1 $ , 3 ,. ! 1 ( , * 4
18.
03 DeconstructinganAIAgent
19.
7-/.,!%!6
! 3 ! !2 7-/ 10* !! 6 ! !!5 6 6 ! 6% !% 7-/.,1#! !!! 6 !!2 ' !! % !% *!# ! 6 1
20.
5/ .- (
# --#*-.-- # - *-- -( -! -#---( - -# 2 !-! ( / # 0 -(-- -5 --
21.
84? 4
1?CCE 5 34 ,// DD4 + G ?4* D)3 D*D) 3*)?D4 ? 343 0 @$!=@ @6=!($-@ @!=$6@ .($6@ @$9#=(#$@ @6#6@ @=($($9#(($6--=9#$6(!($=
22.
;,;;%9'**9;'5;2*;*/9$2*;; #*;))0;$,;*/#;$,*9/$,;#;9*15$9*;; **/$,! .: 4;*615*9 .:43;*,'*;15*$+ .: 7
;#$;;;5;; ;;15*$,;25;#*;* ;/,*,; ;,;*;$,/5$,;5''9$$,;5;%*/$ ;#*;*,'*; ;#*;*;5$,; #*;8*,'*8;%9'**9;,;%*/$ ;59;15*$,;5$,;#*;815*$,8; %9'**9
23.
0 $.#'-/( !#( 0
.#'-#'!#( 0 '!#'-#( 0 # ( !#( 0 -(*( # 0 ( # 0 * #(!#'-
24.
( '!
( % % ' ! $ ' '
25.
04 PromptingStrategies
26.
$ # # #!
$ $ $$$$ $ #! $ $#$$%$$$! $## $$ $## $! %$$## (' $!#$#
27.
$-+. (# - ,
( (*% *( (!* ( %*( %(*(*( (* ( ( */' ( (% ( ( (! ( ( *(,% ((% %( *) ( (% ( ( ( ( ( ( ( ( %( ( ( (%( (%*( ( * 10 $ (-8(9-7694(3-2 4-7$C
28.
#
! ! # ! # # # %$ ,
29.
# #
# # ! ! %$ # # # #
30.
) (!
31.
) 32-'/.4(,2#-!-2-- +2122-2-122!!-2-1- 1!-112-1-!2- !2$1 32-
.4(-2212!-2-#- 0-2-!-2--2-- 2 % /.4-+2122!-$2#-!2#0* 221!--$2-$##2- 022 -0-02-#! 65 :221 !2
32.
[Y9,TQPRVMFRR/TIE :? [=Q,TV7Q3T/=Q1V;QPV37XT,7R37QV/70V =T3/Q31V-*H)(#J*.U -B ?
X/YF/Q,TV/==3Q1V-V/1V7FQV/70V T,0F=31V/VOH#DU OB ? M3Y4V$33=Q,7V/==3Q1V-V/70VOV/1V 7FQV/70VT,0F=31V/V+H*.U +AU ;P=PV1V1Q,T30V7VJDU-(*U(J*.U B ? 4UOU 8UL %V P37V-USUV/T3V7FQVQ,V [=Q,TVW@ @VMQ3VG CVCCV6VKC6VV2K!V!K5V6NV CKCZVCV'CV 6C6VVC CV 6Z ] $33`,7 1,FT=3
33.
?5LJIJ;'J0*LB=B7L5;0B4@**B=B470'K BBB1+(6#*(*;'J'5;B8(6#*H5' BBB1!*L7@ *BALJ0*BC5*B.41B.+B8J##L BBB1!*75@*LB'JLBL6* 5
BL'J'*B*J#7J'@BC5*B#*LLB0*;*@J#52J#* F$D:/$$B $ GB GB B) )B:-GB B/$B$ $ 9B B9B$: :-B BGB %),BD$9B$ $D BBB BB:::DB $BG: B3 B D9B$D $ BG$$B$D:E$D9B :D$B BGB GDD$-$ B%),BB DD B B/$$B $ GBBD:-B/:D::$ B : $B3:GB $ N 4@**B=B470'LBC44O
34.
+)
! , ) )+ ! ++, ) ! ) **(+ , + )+! ) ) + %
35.
?,#.7?=948@742)1/67.:?- (
( -( 0 %(
36.
04 PromptingStrategies source
37.
# %%$
! 0
38.
35)*60/*-#254'256($25'! 0'$5552$5) 2 /5+$ !56)/06
5(.( $6)522$/6 52/$61)0!5 52*60/*-#254'256!566 5552%'/254'256 2 /6/)(5
39.
04 Zero-ShotvsFewShotCoT source Few-ShotCoT outperformsZero- ShotCoT. Additionally,the numberofsamples increases performance.
40.
2 (
( # ! )!)#) % ! )2 ))) % 2 ( ( # ! ) /)! 2 )# #! 2) #! ! ) ))# #! 2) ) ) ! ) # !))#- )$ /) ! ) ! )#2 )# 2)) % 2 2 ) )#)# #! 2) # # ! #2) !! 9) )7) 9!% 27)
41.
CoT-SCbuildsonChain ofThoughts(CoT)by replacingtheGreedy Decodestepwitha samplingstepfroma diverserangeofpossible solutionpaths. 04 SelfConsistencywithCoT source
42.
05 AgentsasToolMakers
43.
06 AgentWrapUp
44.
. %
% . % ! ) + % .% !
45.
06 AgentSafetyRecommendations 6 SafeExecutionEnvironment(ieDocker container 6
RequireHuman-In-The-Loopforpotentially destructiveaction 6 RestrictAgentuserpermissionsforsensitive resources(i.e.Database 6 Restrictnetworkpermission 6 Silosensitivedatatopreventaccess
46.
4. 62 ;C B//-,*/:/)(+(/5'
86 $# ! = 4 G !8 4 = 8 !4G ? 3C B//-*(7+(/5' 4 4G4 4 86 # ! !6 6 E C B//-%*::(51'6646 != 4 6 G448 4 =! G 4 = 4
47.
07 Popular Agent
Frameworks/Apps 5 LangChain / LangSmit+ 5 AWS Bedrock Agent 5 HuggingFace Agent 5 BabyAG/ 5 GPT Enginee 5 AutoGPT
48.
$4//0.-+0(/'0+%+/+4%+7+4 +4/4/-, +4/+-%-4+7/4+ '(/--/8$632$.!% %4/#/,/ '%/,%7+4 8$650*%+-.+,/
' $,',+
49.
: 9%7 ,())7+,!' :
(,,) 5),57+)(, +,(, $,##, +,) : / +,) ,+ )5 ,,3 $) %, : 5)+ ) %)(+)- : ++ 17 )++7))+
50.
/2,360-'86#05$44 ) 2(606!62!6! 62360336$ 60$$8$2$25, 6*2065$86(20!1 065!%60565.51! .652%6!52%6065 ($82$8 $60%6$2
51.
;7986 =*
%''31+ +/ ;798+! !! **!* !*!231+ ** ! !* '! .+%* ****' *( ! 2*=* %!% *+1 ! '!* 1!!**' ' *% **% '!2( . *1!' %!! '! 3!!* 3'% *+ =* %!
52.
-74*81,(%$6$$( ## #/,(2(%#%$.% (6,,6, ( (2#%#%0#0#)2(6(%' $665/
(6%,#$6%/ ,(2#)5#6($'%0% 6#6#2(26% #,%6$$#$,(0# $,6(%$2,# !3
53.
/302(-)22-%3 ' (#11(('3'3 1%/(-0%2)%(/- !/01%%2!1/2 %11 ))211
3) !/0(1(-#2+2#'3%2 2'2##(-0/(%1 #21)(!%(/-.())-'2 2%(22#(-1(( 1(% %(/-1(-%2 % 2* $
54.
Questions?
Download