generated from silverbulletmd/silverbullet-plug-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsilverbullet-ai.plug.yaml
166 lines (163 loc) · 4.74 KB
/
silverbullet-ai.plug.yaml
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
name: silverbullet-ai
requiredPermissions:
- fetch
functions:
aiPromptSlashCommplete:
path: src/prompts.ts:aiPromptSlashComplete
events:
- slash:complete
queryAI:
path: sbai.ts:queryAI
reloadSettingsPageEvent:
path: sbai.ts:reloadSettingsPage
events:
- page:saved
reloadConfigEvent:
path: sbai.ts:reloadConfig
events:
- config:loaded
summarizeNote:
path: sbai.ts:openSummaryPanel
command:
name: "AI: Summarize Note and open summary"
insertSummary:
path: sbai.ts:insertSummary
command:
name: "AI: Insert Summary"
callOpenAI:
path: sbai.ts:callOpenAIwithNote
command:
name: "AI: Call OpenAI with Note as context"
tagNoteWithAI:
path: sbai.ts:tagNoteWithAI
command:
name: "AI: Generate tags for note"
promptAndGenerateImage:
path: sbai.ts:promptAndGenerateImage
command:
name: "AI: Generate and insert image using DallE"
streamOpenAIWithSelectionAsPrompt:
path: sbai.ts:streamOpenAIWithSelectionAsPrompt
command:
name: "AI: Stream response with selection or note as prompt"
streamChatOnPage:
path: sbai.ts:streamChatOnPage
command:
name: "AI: Chat on current page"
key: "Ctrl-Shift-Enter"
mac: "Cmd-Shift-Enter"
insertAiPromptFromTemplate:
path: src/prompts.ts:insertAiPromptFromTemplate
command:
name: "AI: Execute AI Prompt from Custom Template"
suggestPageName:
path: sbai.ts:suggestPageName
command:
name: "AI: Suggest Page Name"
enhanceNoteFrontMatter:
path: sbai.ts:enhanceNoteFrontMatter
command:
name: "AI: Generate Note FrontMatter"
enhanceNoteWithAI:
path: sbai.ts:enhanceNoteWithAI
command:
name: "AI: Enhance Note"
selectTextModel:
path: sbai.ts:selectModelFromConfig
command:
name: "AI: Select Text Model from Config"
selectImageModel:
path: sbai.ts:selectImageModelFromConfig
command:
name: "AI: Select Image Model from Config"
selectEmbeddingModel:
path: sbai.ts:selectEmbeddingModelFromConfig
command:
name: "AI: Select Embedding Model from Config"
testEmbeddingGeneration:
path: sbai.ts:testEmbeddingGeneration
command:
name: "AI: Test Embedding Generation"
getAllEmbeddings:
path: src/embeddings.ts:getAllEmbeddings
env: server
searchEmbeddings:
path: src/embeddings.ts:searchEmbeddings
env: server
queueEmbeddingGeneration:
path: src/embeddings.ts:queueEmbeddingGeneration
env: server
events:
- page:index
processEmbeddingsQueue:
path: src/embeddings.ts:processEmbeddingsQueue
mqSubscriptions:
- queue: aiEmbeddingsQueue
batchSize: 1
autoAck: true
pollInterval: 600000
processSummaryQueue:
path: src/embeddings.ts:processSummaryQueue
mqSubscriptions:
- queue: aiSummaryQueue
batchSize: 1
autoAck: true
pollInterval: 600000
generateEmbeddings:
path: src/embeddings.ts:generateEmbeddings
generateEmbeddingsOnServer:
path: src/embeddings.ts:generateEmbeddingsOnServer
searchEmbeddingsForChat:
path: src/embeddings.ts:searchEmbeddingsForChat
searchCombinedEmbeddings:
path: src/embeddings.ts:searchCombinedEmbeddings
searchSummaryEmbeddings:
path: src/embeddings.ts:searchSummaryEmbeddings
readPageSearchEmbeddings:
path: src/embeddings.ts:readFileEmbeddings
pageNamespace:
pattern: "🤖 .+"
operation: readFile
writePageSearchEmbeddings:
path: src/embeddings.ts:writeFileEmbeddings
pageNamespace:
pattern: "🤖 .+"
operation: writeFile
getPageMetaSearchEmbeddings:
path: src/embeddings.ts:getFileMetaEmbeddings
pageNamespace:
pattern: "🤖 .+"
operation: getFileMeta
searchCommand:
path: src/embeddings.ts:searchCommand
command:
name: "AI: Search"
updateSearchPage:
path: src/embeddings.ts:updateSearchPage
events:
- editor:pageLoaded
- editor:pageReloaded
readPageConnectivityTest:
path: src/connectivity.ts:readFileConnectivityTest
pageNamespace:
pattern: "🛰️ AI Connectivity Test"
operation: readFile
writePageConnectivityTest:
path: src/connectivity.ts:writeFileConnectivityTest
pageNamespace:
pattern: "🛰️ AI Connectivity Test"
operation: writeFile
getPageMetaConnectivityTest:
path: src/connectivity.ts:getFileMetaConnectivityTest
pageNamespace:
pattern: "🛰️ AI Connectivity Test"
operation: getFileMeta
connectivityTestCommand:
path: src/connectivity.ts:connectivityTestCommand
command:
name: "AI: Connectivity Test"
updateConnectivityTestPage:
path: src/connectivity.ts:updateConnectivityTestPage
events:
- editor:pageLoaded
- editor:pageReloaded