-
Notifications
You must be signed in to change notification settings - Fork 0
/
Positive-nlg-ah readme.txt
102 lines (70 loc) · 2.46 KB
/
Positive-nlg-ah readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
* Social Rescue Tech example
** Positive NLG Compliments
[[./compliments.txt]]
*** Demonstrations
+ Video demonstration :: https://asciinema.org/a/w5ayuAEGGpgsxTCKWbAGRPfvZ
+ Video demonstration (mp4) :: [[./demo1.mp4]]
+ Video demonstration (gif) :: [[./demo1.gif]]
+ 8000+ and still generating :: https://asciinema.org/a/YexeaMmvc15iaGzHQFLMD1tr0
+ Video demonstration (mp4) :: [[./demo2.mp4]]
+ Video demonstration (gif) :: [[./demo2.gif]]
+ And still generating :: https://asciinema.org/a/cuCzjyq5EwT6dV8Xp3RIk9B3l
+ Video demonstration (mp4) :: [[./demo3.mp4]]
+ Video demonstration (gif) :: [[./demo3.gif]]
*** Code
+ Prompt :: http://github.com/semiosis/prompts/blob/master/prompts/compliment-generation-based-on-a-celebrity-1.prompt
*** Final generated prompt:
#+BEGIN_SRC text -n :async :results verbatim code
The following are nice compliments:
###
TOPIC: Jason Momoa
- He has fame, but he doesn't want it. He has advantage but he doesn't take it. And he definitely has all our hearts!!!!!
###
TOPIC: Amber Heard
-
#+END_SRC
** Simulate real conversation using NLU and NLG
+ Demonstration :: https://semiosis.github.io/apostrophe/
+ Conversation demo 1 :: https://asciinema.org/a/K40px4H4CPPN15QMz6Uy8Pz3q
+ Video demonstration (mp4) :: [[./conv-demo1.mp4]]
+ Video demonstration (gif) :: [[./conv-demo1.gif]]
+ Conversation demo 2 :: https://asciinema.org/a/aLn5lZq5yIeBxR6dyFyveDJGc
+ Video demonstration (mp4) :: [[./conv-demo2.mp4]]
+ Video demonstration (gif) :: [[./conv-demo2.gif]]
+ Conversation demo 3 :: https://asciinema.org/a/YdX4bzPownHsVT3T0UPLMcp3c
+ Video demonstration (mp4) :: [[./conv-demo3.mp4]]
+ Video demonstration (gif) :: [[./conv-demo3.gif]]
** Time taken to generate
#+BEGIN_SRC bash -n :i bash :async :results verbatim code
git show -s --format=%at a9fccf1
#+END_SRC
#+RESULTS:
#+begin_src bash
1639635963
#+end_src
#+BEGIN_SRC bash -n :i bash :async :results verbatim code
git show -s --format=%at 08b7c56
#+END_SRC
#+RESULTS:
#+begin_src bash
1639627967
#+end_src
#+BEGIN_SRC bash -n :i bash :async :results verbatim code
# Seconds
echo "1639635963 - 1639627967" | bc
#+END_SRC
#+RESULTS:
#+begin_src bash
7996
#+end_src
#+BEGIN_SRC bash -n :i bash :async :results verbatim code
# Total minutes
echo "(1639635963 - 1639627967) / 60" | bc
#+END_SRC
#+RESULTS:
#+begin_src bash
133
#+end_src
It took just over 2 hours to generate 10k
compliments.
This pipeline will be sped up in the near future by a factor of around 10x.