  . , ,     LLM 
 


      ?        .      ChatGPT   : Zero-shot, Few-shot, Chain-of-Thought  ReAct.,   ,     , ,   .            .     XXI .





  

, ,     LLM 



 



 ,2025



ISBN978-5-0068-1055-6

     Ridero




 


, !    .

ߠ ,  ,     .   13     蠖      .       43 ,      35000 .

    VASKOV CONSULTING,  ,    ,      Ȼ,  , ,       .      , ,  Go, , ,  .

   ⠖ ,  .      -:        ,     .  , ,   .

  ,     ,  ,    ,   .












  ,  , ,   -    . 堖  .

   - ,    .

    prompt engineering    .

   ?

 -     ,    8.   ,       : , , ,    .

       .

  ,   ,  .



  ?

  ,       :

        

  Zero-shot, Few-shot Chain ofThought

        

     

     , , ,  .

   ,      



 ?

 .  , , .     ,      ChatGPT  -.

,        .



:        ࠖ    .


堖 . ?  !




   


   (LLM)    ,   ,     .    -,  ,  , ,     .



  ?

  : ,    .   :  ,   ,    .     :     ,     .



 

  ,    .



:

   -  

    

 Apple Samsung  : , , , 


   ,     ,   . Ƞ  ,    .



   ?

    .    .        ,        ,  .



  ?  

׸  ? ,   


  

    :

1. 堖   .      .



:        email  


2.堖     , , , .



:        ,       .


   ?

㠖    .        ,   Excel  Google Docs. Ƞ     ,  -  ,    .



   ?

  ⠖    頖  LLM ,   ,    .    ,  ,    .  , ,  .

  蠖         .    , ,  ⠖ ,        .



           LLM   .





  (In-Context Learning,ICL)



     



             ࠖ   .     In-Context Learning (ICL),   .

  :        ,     ,   ,    .        :      .



 ICL?

In-Context Learning (ICL)      ,    ,   ,   .    ,    ,  .



:

      ,   35:



:    ?: 

:     ?:  젖  ,  .

  .


 ICL

1.  :  ICL      (  35 ChatGPT, 3050 GPT-4).

2.  :        ( ).

3.  :         .

4.  :      ICL 1525%.

5.  :     1:, :, :.

6.  :      ,  .



  ICL 

   -

 

  

   

  





  

 

   

  

  LLM,  




    In-Context Learning (ICL)


 ICL  ,    ,   ,        :



1.    

:     ,     .

 :    .

 :      .



2.     

:       .

 :    .

 :  : , , , .



3.     

:   500+  .

 :     蠫 .

 :    (100150),  .



4.    

: ,    ,   .

 :    ,   .

 :      .



5.     

: 5  1.

 :     .

 :  : 23  .



6.     

:    ,   .

 :   :



:

:

:


7.    

:   ,   .

 :      .

 :      ,    .







In-Context Learning         .          .




     (Few-Shot Prompting)



      ?



Few-Shot Prompting        .         ,   .    ,          ,     .



   Few-Shot ?

  24   ,   , :

 ? 

 ? 

 ?  

     , ,   .



   :

   ( , , )

   

   

  

    (,  ..)



   Few-Shot Prompting:

    ,     ,   :

KNN (K-Nearest Neighbors)     

Vote-K     

SG-ICL (Self-Generated In-Context Learning)      

LENS, UDR, Active Selection    



Few-Shot Prompting   ,      .        ,  ,   ,        .




K-Nearest Neighbor (KNN)


K-Nearest Neighbor (KNN) Prompting  ,             ()    .

 ,     ,     , ,        .



 :

       .

   ,    N   .

      頖  .



:



  :

     - ?

     :

  CTR email-  e-commerce?

    ?

Ƞ   Few-Shot-  .


:

      

     

     



     K-Nearest Neighbor (KNN)    :



:

    ,   .



 ( KNN-):

   .    ,     .       .



:

:   ,   .

: 

:  ,  .

: 

:  ,   .

: 

        :

:   ,  ,  .



 :

: 

:     (,  ),     򅻠 ,  .


      :

 

  

  / -

   




Vote-K Prompting


Vote-K   ,           ()      ,    .

          ,    (,    ).   ,     ""         .

   ()   :

    ,

   Few-shot ,

     .



 :



  K  .

    (    ).

   ().

      .



:

   (  )

     

      



:



:   email- 

 :

 50%  !

   

  ᠖  


     2  3  .           .



:

    

     

      



     Vote-K,      -,     :



:

         



- (Vote-K):

  -.   5         .   2 : , ,  .   .

 1:  5.

 2:  2 ,  .



 :

 1:  (5):

1.   ,  

2.  ࠖ  :  

3.  : 7 

4.  ,  :    

5.       



 2:  :

 : 7 ⠖ , ,  (  )



 ,  :    ࠖ   (),   


          ()      .




Self-Generated In-Context Learning (SG-ICL)


SG-ICL  ,        ( ? ),        .

   ,    13,        .       ,       .



 :

   (,     ).

   23   .

     .

       .



:



:

    ,    . :  

:  , Bluetooth,   

   :



1:

: -

: ,  , OLED-

:          .



2:

:  

: ,  20,   USB-C

:    ⠖     .

:  

:  , Bluetooth,   

:




   ,   Few-shot 

    

   ,  , 



:

 :    

  

      



    Self-Generated In-Context Learning (SG-ICL)      ,       .



:

   .



- (SG-ICL):

   . Ӡ     ,    3   : , , .

,   ,       .

 1:   .

 2:   .



 :



 1  :

1.  ,    .

: 

2.  ,  .

: 

3.   ,  .

: 



 2  : ,     .

: 

:   ,    ,   ,  .


SG-ICL  , :

   

      

   




Prompt Mining


Prompt Mining           .       ? ,        ,   ,    .

,     ,    .



 

   (,  , ,  ).

       .

   ,   (, , , ).

   ,      .



:



 :

,    



    :

  .  ,   ,  .

     .

      ,  .



 ,       .


 :

      (-,  -,  )

 UX-  LLM

       (, , )



:

  ,    

      

       ,   



-,  Prompt Mining ,        ,    .



:

      .



- (Prompt Mining):

 ࠖ       :    .

 1:  3  ,   .

 2:     .

 3:     : , , .

 :

 X       .      . ,      2025.

.



 :



 1  :

1.  1():     .

2.  2():    .     .

3.  3( ): ,      .  .



 2 :

1:  X     . 砖 Q3 2025.

2:  X         . 䠖   2025.

3: X   :    . 砖 Q3 2025.



 3 : 2        ,    .     .








Few-Shot Prompting        ,     .      ,      ,          , ,   LLM-.




  Few-Shot Prompting



     ?



Few-Shot Prompting   ,      ,       .    ( ? ,  23)     ,   Few-Shot         .

       Few-Shot Prompting, :

LENS  ,         .

UDR       .

Active Example Selection        .



    ?

            .

        .

Ƞ  :       ,   Few-Shot  ,  .



    , :

     ,

    ,

      .



        ,     ,      .




LENS ( )


LENS  ,             .         ,    .

     ,    ⠖     .



  :

 1     (, 1020  );

 2 ,  , ,   .

 3  :       ?

 4  .    (, 35),     (Few-shot Prompting).

   蠖   ,   .



:



:       .

  :

  ࠖ   TED-頖    

   



   3     ? ,     .


 :

     

 ,      

      



:

     蠖    

    (  )

    



     LENS ( ) ,        ,     .



:

        .



- (LENS  ):

   . Ӡ  7.  ࠖ   -4,    2 : , , .

 1:  4  7.

 2:   2   .

 :

1.  ,   

2. 5   

3.     

4. 堖  

5.    

6.    

7.   :  



 :

 1  4:

2. 5   

3.     

6.    

7.   :  

:   ,  ,     (, , , ).



 2   2:

3.     

7.   :  

:   ,    ,       .


   LENS    :   ,  .   :

  

 

 , , 

  




UDR (  )


UDR      ,    (embeddings),      堖  , .

     , UDR    (  ),   ,    ,    .



 :

   (, ,  )   .

    .

      .

  ,    .



:



:

  ,  ?



    ,    :

    

   

    



       ,   .


 :

  RAG (Retrieval-Augmented Generation)

 -,    

     

    prompting- (, Few-Shot + Embeddings)



:

   ,  

      

   ,    



     UDR (  ) ,     ,     ,   .



:

      ,   ,      .

- (UDR  ):

   .   3,    .        .

 :

 ,     .  ,  .

 :

1.  ,  ,  . ?

2.  ,    . ?

3. ,    . ?

4.  ,  , . ?

5. ,   . ?

6.  ,  . ?



 :

   ():

2.  ,    . ?

4.  ,  , . ?

5. ,   . ?



  :

:    45     .     -  .


UDR- :

 , , 

  

     

 , ,  




Active Example Selection


Active Example Selection  ,         ,    .      (Reinforcement Learning):     ,    .



  

       .

       (   ).

   ,     ,     .

      .



:



,      .       , , .     .          ,  .


 :

     (,  )

    

      





   , 

     

   ,  



    Active Example Selection     -.



:

    ()   -.     ,  ,     .



- (Active Example Selection):

   e-commerce.   Active Example Selection:

 1. 5 .  2 , ,  ,       .

 2.      Urban Pro X 25L.

 3.   :   堖         .



 :

1.     ,    .    .

2.  .    15        .

3.  .  .   .

4.  ,  ,  ࠖ     .

5.       .  .



 :

Urban Pro X25L

׸   . 젖 25.  , USB-,  ,    16, ,  .



 :

 1  :

2  ,  

5   



 2 : Urban Pro X 25L   ,    .   16 ,  , USB-         .



 3  : .  .  , .    .



:   :

1  + 

4   


   ,    :

 

 

, , 







  Few-Shot Prompting     ,     .       ,       .      ,    .




    (Zero-Shot Prompting)



     ?



       Zero-Shot Prompting.        ,   .     , :  ,     .

Zero-Shot   , :

    ,

  ,

    Few-Shot .

  , Zero-Shot Prompting          ࠖ  ,    .



   Zero-Shot Prompting:



׸.      .    ꠖ    .

.      ,    .  Zero-Shot    : , ,  ,  .

.  ,    .        .



       Zero-Shot ,   ,    ,       .     頖       ,   Few-Shot, Chain ofThought  Role Prompting.




Role Prompting


Role Prompting  ,        (, -, , ,  ..).     ,   ,     .



  :

     :



   

,   HR- 10- 셻

 ,     


    .

       :   ,  ,     .



:



  :

,   .

 :

  . ,   ,      .

:    ,    .


 :

   

 ,   (: , ,  ..)

  -, -, 

    



:

   

 ,   

       



-  Role Prompting,    ,      .



:

   -.



- (Role Prompting):

  digital- 10-   -.  ࠖ     -   .

:

1.  

2.  

3.  

4.  

5.  ,   



  ( ):

1. :  2545,  , , .  ,      .

2. : , , YouTube Shorts, email-, ,    self-help.

3. :

 

 

     

 +  -

4. :

 -

 

   Telegram-

5. :

  

   

    


  Role Prompting     :

UX-



 

 

 

HR- .




Style Prompting


Style Prompting  ,        ,   .      :  ,  ,     .



  :

   ,   . :



   养

    셻     腻

     


     ,   .



:



:

,    .

 1():

 堖   ,          .

 2():

    ,          ,    .

 3():

 堖     ,    ,    .


 :

     

, PR, ,   

  -

     





      

   

       



   Style Prompting,      ,    .



:

    -.



- (Style Prompting):

     ,     ( ).  , :

1.  

2.  

3.  



 :

 24871 -  .      ,   .



  :



1.  :  , ,    24871    .    .        .

Ѡ,  



2.  : !     24871  -           .  堖  ,  



3.  :  ,        24871      !  . ,   젖   


   :





 

 

  -




Emotion Prompting


Emotion Prompting  ,       ,   .      :   , , ,  ..



 :

        . :



   셻

  酻

   셻

 ,    


  , ,      .



:



:

,     .

 1():

    ,    .

 2(, ):

蠖   .    . 蠖 , ,  .   ,

 3( ):

   ,     .     .


 :

   

   

  , , 

 empathetic AI -  



:

    

    

   ,  



  Emotion Prompting       (, , ,  ..) .



:

       ,   .



- (Emotion Prompting):

  .         .       :

1. 

2.  

3.  

4.  

5. , 

 :   . Ӡ  ,  .  .



 :

1. :  !  ⠖   .   ,     

2.  :   .   . Ӡ  ,    .    .

3.  :  ,   .     .  , .

4.  :    .    ,   .       .

5. :  젖 -, .  ,  ,   .  


   :



 

 



 -




System 2Attention (S2A)


System 2Attention (S2A)  ,       ,      ,  젖   .        .

    2   ( )     .



 :

  ,   ,   . :



,    ,    젖   GPT,  -  ?


    ,   :



,   GPT  .


     .



  :



  .

 1:   ,  .

 2:    .   !


 :

     

  - ,    

 ,      



:

   

  ,  

    



-   System 2Attention (S2A)     ,   ,      .



:

 ,     .



- (System 2Attention):

 ,    ,    ,    .     .

 1:     .

 2:    .



 :

      Excel,    ,  - ,        ,    ,  ?    !



 :

 1  :   ,  Excel      ?

 2 :   ,    (, 1),   堖  (2).     렖 Excel   .


   :

, ,  

  

  

   -







Zero-Shot Prompting ,      ,      .         ,       ,    .    ,    ,   Few-Shot   .




  Zero-Shot Prompting



      ?



   Zero-Shot Prompting    腻, 腻  酻.     ,    .            -  ⠖    ,  .



       Zero-Shot Prompting,     ,   ,     .    , :

   ,

   ,

   ,

        .



 堖  , ,    .         ,  , ,  ,     .




SimToM




      


SimToM   ,      ,    ,    .        ,       .



 :

        .

       ,   .

  , ,    .

:



:

 ,     .

 ,    .

 ,   .



: ,  , ?

 : ,    .

:  ,   .


 :

 ,   , ,   

    (, , )

  ,   

  AI-,       



:

    

  蠫   

    



-   SimToM (Simulation-to-Model) ,     ,      ,     .



:

      ,  .



- (SimToM):

   .     .   ⠖    .



:

1.      .

2.    ,   .

3.     .

4.   ,   .

5.       .

6.    .



:

           ?



 :

   ,       ( 1).    ,      ( 35). ,    ( 2),   ,      .            ,     (6).


 SimToM  :

  (HR, , )

   

   

  //




Rephrase and Respond (RaR)




頖  


Rephrase and Respond (RaR)  ,         ,       .      ,      ,     .



 :

      .

  ,     .

    ,  .



:



 :

  ,  ,    ,     GPT?

RaR-:

:

,      GPT,   .

:

 ,   GPT,              煻


 :

   ,    

    (-, )

 ,      



:

   

   

    

     ,  



-   Rephrase and Respond (RaR)    ,     ,      .



:

        ,   .



- (Rephrase and Respond):

 1:  ,     .

 2:    .



 :

 ,     ,     -,      , ,     栖  .



 :

 1  :    -       ?



 2 : -   :

1.     , , .

2.  ࠖ  ,   .

3.    ,  .

4.          .    :  , ,  .        .


   :

  

   

 ,     




Re-reading (RE2)




   젖   


Re-reading (RE2)  ,      :   ,    .      ,    ,      .



  :

    :



         .


    ,   .      ,   .



 :



    .

    ,   ,   ,      .


 :

 ,   

     

 ,     



:

     

      

    

       



-   Re-reading (RE2)    ,      ,     ,   .



:

 ,  ,   .



- (Re-reading RE2):

   ,   . ,      .   ,    .

:

    ,    2535.     . ,    (   ),         ?



 :

.   3:

1.   

2.   

3.   



:

1. :    ( 2535)     + :    .      .



2. :

 

  

  

  

    



3. :

  /VK   -  

 : , , 

         


 RE2  :



  -

 

  




Self-Ask




 蠖  


Self-Ask  ,         ,  ,      .    ,   .       :  ,  .



 :

     .    ,        :



  ,     ?


       .



:



:

,   .

Self-Ask-:

 :

  ?   ?   -?

     ,   .


 :

 -  

  ,   

 ,     (, ,  )



:

    

   

   

     



-   Self-Ask      , ,    ,     ,    .



:

      -.



- (Self-Ask):

 .       ,   23 , 젖   ,     .

:

,    -    .



 :



 :

1.       , , ?

2.      ?

3.     (100)   ?



:         +  ,  GetCourse ()  Teachable (, ).     㠖   Stepik  Thinkific.      Notion + Telegram      .


 Self-Ask :

  

  

    

 B2B B2C ,    







 Zero-Shot Prompting   ,       ,     .             ,    .

 Zero-Shot     ,         prompt-.        ,      .



  Few-Shot, Zero-Shot    ,       ,       .




  (Chain ofThought, CoT)   



    ,   ,          .     ,  ,  ,       .

     Chain ofThought ,      ,       .   ,      ,   ,    .

     ,    ,   .    ,    :    -.



  CoT    :

 堖     ,    .

       ,   .

  ⠖    ,     .

    ,   CoT,    ,    ,     .




Zero-Shot-CoT    


Zero-Shot-CoT  ,    Zero-Shot Chain ofThought (CoT).         ,    .



 :

    :



,  .    .


       ,       ,     .



:



:

   3.   1.  ? ,  .

:

   3.   1. 3 1= 2. : 2.


 :

 ,    

   

       ( Few-Shot)



:

    

  1 

    

   



   Zero-Shot Chain-of-Thought (Zero-Shot-CoT) ,     ,   .




  .


   .

   ,     (https://www.litres.ru/pages/biblio_book/?art=72532540)  .

      Visa, MasterCard, Maestro,    ,   ,     ,  PayPal, WebMoney, ., QIWI ,       .


