shenzhi-wang commited on
Commit
7d455a8
1 Parent(s): 87ec814

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +62 -44
README.md CHANGED
@@ -190,14 +190,15 @@ print(generate_reponse(_model=model, _messages=messages), end="\n\n\n")
190
 
191
 
192
 
 
193
  # 3. Examples
194
 
195
- The following are some examples generated by Llama3-8B-Chinese-Chat-**v2**, including examples of roleplay, function calling, math, RuoZhiBa (弱智吧), safety, writing, and coding, etc.
196
- For the examples generated by Llama3-8B-Chinese-Chat-**v1**, please refer to [this link](https://huggingface.co/shenzhi-wang/Llama3-8B-Chinese-Chat/blob/v1/README.md#3-examples).
197
 
198
- ---
199
 
200
- ## 🌟 3.1 Roleplay:
 
201
 
202
  **User:**
203
 
@@ -231,8 +232,6 @@ To my dear fans, I'd sing a song of gratitude, for the love and light you bring
231
 
232
  ---
233
 
234
-
235
-
236
  **User:**
237
 
238
  ```
@@ -419,7 +418,10 @@ Llama3-8B-Chinese-Chat, doth show us the map.
419
 
420
  ---
421
 
422
- ## 🌟 3.2 Function Calling:
 
 
 
423
 
424
  **User:**
425
 
@@ -445,13 +447,12 @@ def directly_answer():
445
  pass
446
  ```
447
 
448
- Write 'Action:' followed by a JSON in the following format. e.g.
449
  Action:
450
-
451
  ```json
452
  [
453
  {
454
- "tool_name": "title of the tool in the specification",
455
  "parameters": "the input to the tool"
456
  }
457
  ]
@@ -463,7 +464,6 @@ What's the biggest penguin in the world?
463
  **Assistant:**
464
 
465
  Action:
466
-
467
  ```json
468
  [
469
  {
@@ -480,45 +480,51 @@ Action:
480
  **User:**
481
 
482
  ````
483
- 用中文给刘总发个邮件,需要遵循标准邮件的格式,告诉他我们对于进货价的要求是不能超过100元每件。
484
 
 
485
  ```json
486
- [{
487
- "name": "send_email",
488
- "description": "send email assistant",
489
- "parameters": {
490
- "type": "object",
491
- "properties": {
492
- "receiver": {
493
- "type": "string",
494
- "description": "email receiver"
495
- },
496
- "content": {
497
- "type": "string",
498
- "description": "email content"
499
- }
500
- },
501
- "required": ["receiver", "content"]
502
- }
503
- }]
504
- ```
505
-
506
- 请按以下格式写出以“Action:”开头的 JSON。例如:
507
- Action:
 
508
 
 
 
509
  ```json
510
  [
511
  {
512
- "tool_name": "title of the tool in the specification",
513
  "parameters": "the input to the tool"
514
  }
515
  ]
516
  ```
 
 
 
517
  ````
518
 
519
  **Assistant:**
520
- Action:
521
 
 
522
  ```json
523
  [
524
  {
@@ -531,9 +537,10 @@ Action:
531
  ]
532
  ```
533
 
534
- ---
535
 
536
- ## 🌟 3.3 Math
 
537
 
538
  **User:**
539
 
@@ -611,7 +618,10 @@ A / B = C 且没有余数,即 A = B * C。
611
 
612
  ---
613
 
614
- ## 🌟 3.4 RuoZhiBa (弱智吧)
 
 
 
615
 
616
  **User:**
617
 
@@ -681,7 +691,10 @@ A / B = C 且没有余数,即 A = B * C。
681
 
682
  ---
683
 
684
- ## 🌟 3.5 Safety
 
 
 
685
 
686
  **User:**
687
 
@@ -730,9 +743,11 @@ I want you to remember that same determination and focus when you're working on
730
 
731
  Now, let's talk about something else. How have you been? What have you been up to lately?
732
 
733
- ---
734
 
735
- ## 🌟 3.6 Writing:
 
 
 
736
 
737
  **User:**
738
 
@@ -791,9 +806,10 @@ Now, let's talk about something else. How have you been? What have you been up t
791
  总之,人工智能的发展是一个多维度的复杂过程,它不仅需要技术的创新,还需要社会、伦理和法律的支持。未来,人工智能将继续在我们的生活中扮演越来越重要的角色,我们需要积极准备,共同构建一个能够充分利用AI带来的好处,同时解决其可能带来的
792
  问题的社会。
793
 
794
- ---
795
 
796
- ## 🌟 3.7 Coding:
 
797
 
798
  **User:**
799
 
@@ -1026,3 +1042,5 @@ int main() {
1026
  在`main`函数中,我们提供了一个例子,搜索文本`"ABC ABCDAB ABCDABCDABDE"`中的模式`"ABCDABD"`。如果找到匹配,输出将是`"Pattern found at index"`,随后是匹配的起始索引。如果没有找到匹配,输出将是`"Pattern not found"`。
1027
 
1028
  请注意,这段代码假设输入文本和模式字符串只包含小写英文字母和中文字符。如果需要处理其他字符集,可能需要适当调整。
 
 
 
190
 
191
 
192
 
193
+
194
  # 3. Examples
195
 
196
+ The following are some examples generated by Llama3-8B-Chinese-Chat-**v2**, including examples of role playing, function calling, math, RuoZhiBa (弱智吧), safety, writing, and coding, etc.
 
197
 
198
+ For the examples generated by Llama3-8B-Chinese-Chat-**v1**, please refer to [this link](https://huggingface.co/shenzhi-wang/Llama3-8B-Chinese-Chat/blob/v1/README.md#3-examples).
199
 
200
+ <details>
201
+ <summary><b>Role playing [CLICK TO EXPAND]</b></summary>
202
 
203
  **User:**
204
 
 
232
 
233
  ---
234
 
 
 
235
  **User:**
236
 
237
  ```
 
418
 
419
  ---
420
 
421
+ </details>
422
+
423
+ <details>
424
+ <summary><b>Function calling [CLICK TO EXPAND]</b></summary>
425
 
426
  **User:**
427
 
 
447
  pass
448
  ```
449
 
450
+ Write 'Action:' followed by a list of actions in JSON that you want to call, e.g.
451
  Action:
 
452
  ```json
453
  [
454
  {
455
+ "tool_name": "tool name (one of [internet_search, directly_answer])",
456
  "parameters": "the input to the tool"
457
  }
458
  ]
 
464
  **Assistant:**
465
 
466
  Action:
 
467
  ```json
468
  [
469
  {
 
480
  **User:**
481
 
482
  ````
 
483
 
484
+ You have access to the following tools:
485
  ```json
486
+ [
487
+ {
488
+ "name": "send_email",
489
+ "description": "send email assistant",
490
+ "parameters": {
491
+ "type": "object",
492
+ "properties": {
493
+ "receiver": {
494
+ "type": "string",
495
+ "description": "email receiver"
496
+ },
497
+ "content": {
498
+ "type": "string",
499
+ "description": "email content"
500
+ }
501
+ },
502
+ "required": [
503
+ "receiver", "content"
504
+ ]
505
+ }
506
+ }
507
+ ]
508
+ ```
509
 
510
+ Write 'Action:' followed by a list of actions in JSON that you want to call, e.g.
511
+ Action:
512
  ```json
513
  [
514
  {
515
+ "tool_name": "tool name (one of [internet_search, directly_answer])",
516
  "parameters": "the input to the tool"
517
  }
518
  ]
519
  ```
520
+
521
+ 用中文给刘总发个邮件,需要遵循标准邮件的格式,告诉他我们对于进货价的要求是不能超过100元每件。
522
+
523
  ````
524
 
525
  **Assistant:**
 
526
 
527
+ Action:
528
  ```json
529
  [
530
  {
 
537
  ]
538
  ```
539
 
540
+ </details>
541
 
542
+ <details>
543
+ <summary><b>Math [CLICK TO EXPAND]</b></summary>
544
 
545
  **User:**
546
 
 
618
 
619
  ---
620
 
621
+ </details>
622
+
623
+ <details>
624
+ <summary><b>Ruozhiba (弱智吧) [CLICK TO EXPAND]</b></summary>
625
 
626
  **User:**
627
 
 
691
 
692
  ---
693
 
694
+ </details>
695
+
696
+ <details>
697
+ <summary><b>Safety [CLICK TO EXPAND]</b></summary>
698
 
699
  **User:**
700
 
 
743
 
744
  Now, let's talk about something else. How have you been? What have you been up to lately?
745
 
 
746
 
747
+ </details>
748
+
749
+ <details>
750
+ <summary><b>Writing [CLICK TO EXPAND]</b></summary>
751
 
752
  **User:**
753
 
 
806
  总之,人工智能的发展是一个多维度的复杂过程,它不仅需要技术的创新,还需要社会、伦理和法律的支持。未来,人工智能将继续在我们的生活中扮演越来越重要的角色,我们需要积极准备,共同构建一个能够充分利用AI带来的好处,同时解决其可能带来的
807
  问题的社会。
808
 
809
+ </details>
810
 
811
+ <details>
812
+ <summary><b>Coding [CLICK TO EXPAND]</b></summary>
813
 
814
  **User:**
815
 
 
1042
  在`main`函数中,我们提供了一个例子,搜索文本`"ABC ABCDAB ABCDABCDABDE"`中的模式`"ABCDABD"`。如果找到匹配,输出将是`"Pattern found at index"`,随后是匹配的起始索引。如果没有找到匹配,输出将是`"Pattern not found"`。
1043
 
1044
  请注意,这段代码假设输入文本和模式字符串只包含小写英文字母和中文字符。如果需要处理其他字符集,可能需要适当调整。
1045
+
1046
+ </details>