1
00:00:02,520 --> 00:00:10,830
In this chapter, we are going to see how the new long chain expression language works with arguments

2
00:00:10,830 --> 00:00:13,380
in the in the chain, in the chains.

3
00:00:13,380 --> 00:00:26,970
So a we are going to see a way a to stop the response of the language model A using the argument stop

4
00:00:27,330 --> 00:00:38,880
and the bind expression A in order to a stop the response when we find the second line.

5
00:00:38,880 --> 00:00:46,530
So in the first part of this exercise we have created a chain in in the classic way using the language

6
00:00:46,530 --> 00:00:50,400
model, the prompt and the and the string output parser.

7
00:00:50,400 --> 00:00:58,470
And we are asking in the language model to tell us the name of three players who won the soccer World

8
00:00:58,470 --> 00:01:00,540
Cup of one particular year.

9
00:01:00,690 --> 00:01:08,700
The user input is the year 2010, and the answer is the three players who won the Soccer World Cup of

10
00:01:08,700 --> 00:01:10,320
2010 are.

11
00:01:10,320 --> 00:01:17,220
And then we have a new line Iker Casillas, new line Hernandez, new line Andrés Iniesta.

12
00:01:17,730 --> 00:01:28,440
So with using this argument here, we are able to stop the language model response after the second

13
00:01:28,620 --> 00:01:29,160
line.

14
00:01:29,160 --> 00:01:33,240
So the response now will be with the same user input.

15
00:01:33,240 --> 00:01:39,150
The three players who won the Soccer World Cup in the 2010 year are Iker Casillas.

16
00:01:39,150 --> 00:01:39,900
And that's it.

17
00:01:39,900 --> 00:01:43,950
So we don't have the Xavi Hernandez and Andrés Iniesta included.

18
00:01:44,250 --> 00:01:47,580
So it's an interesting way using bind.

19
00:01:47,580 --> 00:01:55,680
Interesting way to enter arguments here in the new line chain expression language way.

20
00:01:55,860 --> 00:02:02,670
Remember you have more information, details and examples of this new approach in the Lang Chain documentation.

