-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsamples.txt
125 lines (123 loc) · 3.21 KB
/
samples.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
generate on text blocks',
generate on markdown files',
generate on top result of google docs search',
search for similar images',
get related articles',
generate on subtitle of a video',
generate on subtitle of an audio',
what are the highlights about privacy in this video? (generative)',
```
[
[
'generate on text blocks',
client.get.textBlock.search
.about('privacy')
.generate(
'groupedResult',
'how do these text blocks relate to each other?',
)
.getGraphQuery(),
],
[
'generate on markdown files',
client.get.textDocument
.where({
mimeType: 'text/markdown',
})
.limit(1)
.generate('singleResult', 'Summarize this document')
.getGraphQuery(),
],
[
'generate on top result of google docs search',
client.get.googleDoc.search
.about('privacy')
.generate('singleResult', 'Summarize this document')
.getGraphQuery(),
],
[
'search for similar images',
client.get.imageBlock.similar.image(IMAGE_1).getGraphQuery(),
],
[
'get related articles',
client.get.googleDoc.similar
.record('05bb5dc3-251f-5739-a63f-140a4908ba9d')
.select('title', 'text')
.where(({ NotEqual }) => ({
id: NotEqual('05bb5dc3-251f-5739-a63f-140a4908ba9d'),
}))
.getGraphQuery(),
],
[
'generate on subtitle of a video',
client.get.subtitleEntry
.where(({ GreaterThan, And }) =>
And({
document: {
SubtitleFile: {
media: {
VideoFile: {
remoteId: '1Jb48mHLzeA_lv2IjKMyWTk1KoNhl4fFc',
},
},
},
},
}),
)
.generate(
'groupedResult',
'Describe this video based on its transcription',
['text'],
)
.getGraphQuery(),
],
[
'generate on subtitle of an audio',
client.get.subtitleEntry
.where(({ GreaterThan, And }) =>
And({
document: {
SubtitleFile: {
media: {
AudioFile: {
remoteId: '1P6ldTUVXDN_Rkw08IoGP1nnuRkOovTAZ',
},
},
},
},
}),
)
.sort('order', 'desc')
.generate(
'groupedResult',
"What's narrator's name and what's the topic of this audio?",
['text', 'start', 'end'],
)
.getGraphQuery(),
],
[
'what are the highlights about privacy in this video? (generative)',
client.get.subtitleEntry
.where(({ GreaterThan, And }) =>
And({
document: {
SubtitleFile: {
media: {
VideoFile: {
remoteId: '1Jb48mHLzeA_lv2IjKMyWTk1KoNhl4fFc',
},
},
},
},
}),
)
.search.about('privacy')
.generate(
'groupedResult',
'What are the highlights about privacy in this video?',
)
.getGraphQuery(),
],
]
```