You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ Creates an empty database. If no db is provided, the default is `promptlab.db`.
61
61
62
62
### Arguments
63
63
64
-
`--db` (optional) The name of the database file. Default is `promptlab.db`.
64
+
-`--db` (optional) The name of the database file. Default is `promptlab.db`.
65
65
66
66
### Examples
67
67
@@ -75,8 +75,8 @@ Loads a file or files into a new group, each of which contains a set of blocks.
75
75
76
76
### Arguments
77
77
78
-
`--fn` (required) The name of the file to load.
79
-
`--group_tag` (optional) The tag of the group to create
78
+
-`--fn` (required) The name of the file to load.
79
+
-`--group_tag` (optional) The tag of the group to create
80
80
81
81
### Examples
82
82
@@ -136,8 +136,8 @@ The `filter` command creates a new group of blocks by applying a filter to the c
136
136
137
137
### Arguments
138
138
139
-
`--where` (required) A SQL WHERE clause to filter the blocks in the current group.
140
-
`--group_tag` (optional) The tag to use for the new group.
139
+
-`--where` (required) A SQL WHERE clause to filter the blocks in the current group.
140
+
-`--group_tag` (optional) The tag to use for the new group.
141
141
142
142
### Examples
143
143
@@ -159,7 +159,7 @@ Lists all groups.
159
159
160
160
### Arguments
161
161
162
-
`--where` (optional) A SQL WHERE clause to filter the results
162
+
-`--where` (optional) A SQL WHERE clause to filter the results
163
163
164
164
### Examples
165
165
@@ -195,7 +195,7 @@ List all blocks in the current group:
195
195
196
196
### Arguments
197
197
198
-
`--where` (optional) A SQL WHERE clause to filter the results. Running `promplab blocks` will show the columns available for filtering. These are currently `['block_id', 'block_tag', 'parent_block_id', 'group_id', 'group_tag', 'block', 'token_count']`
198
+
-`--where` (optional) A SQL WHERE clause to filter the results. Running `promplab blocks` will show the columns available for filtering. These are currently `['block_id', 'block_tag', 'parent_block_id', 'group_id', 'group_tag', 'block', 'token_count']`
199
199
200
200
### Examples
201
201
@@ -223,9 +223,9 @@ Write blocks or prompts to standard output.
223
223
224
224
### Arguments
225
225
226
-
`--where` (optional) A SQL WHERE clause to filter the results. Running `promplab blocks`will show the columns available for filtering. These are currently `['block_id', 'block_tag', 'parent_block_id', 'group_id', 'group_tag', 'block', 'token_count']`
227
-
`--source` (required) The source to dump. Options are `blocks`or `prompts`.
228
-
`--delimiter` (optional) The delimiter to use when joining the blocks. Default is a newline.
226
+
-`--source` (required) The source to dump. Options are `blocks`or `prompts`.
227
+
-`--where` (optional) A SQL WHERE clause to filter the results. Running `promplab blocks`will show the columns available for filtering. These are currently `['block_id', 'block_tag', 'parent_block_id', 'group_id', 'group_tag', 'block', 'token_count']`
228
+
-`--delimiter` (optional) The delimiter to use when joining the blocks. Default is a newline.
229
229
230
230
### Examples
231
231
@@ -253,12 +253,12 @@ Generate prompts from a set of blocks based on metadata and a template, and then
253
253
254
254
### Arguments
255
255
256
-
`--prompt` (required) The name of the prompt template.
257
-
`--where` (optional) A SQL WHERE clause to filter the blocks that will be used to create the prompts.
258
-
`--model` (optional) The name of the openAI model to use. Defaults to gpt-4. You can see a list of models [here]https://platform.openai.com/docs/models/overview).
259
-
`--prompt_tag` (optional) A tag to use for the prompt.
260
-
`--globals` (optional) A YAML file with global metadata values that can be used in the prompt template.
261
-
`--fake` (optional) Generates a fake response data (mostly for testing)
256
+
-`--prompt` (required) The name of the prompt template.
257
+
-`--where` (optional) A SQL WHERE clause to filter the blocks that will be used to create the prompts.
258
+
-`--model` (optional) The name of the openAI model to use. Defaults to gpt-4. You can see a list of models [here]https://platform.openai.com/docs/models/overview).
259
+
-`--prompt_tag` (optional) A tag to use for the prompt.
260
+
-`--globals` (optional) A YAML file with global metadata values that can be used in the prompt template.
261
+
-`--fake` (optional) Generates a fake response data (mostly for testing)
262
262
263
263
### Examples
264
264
@@ -286,7 +286,7 @@ Prints all prompts to standard output.
286
286
287
287
### Arguments
288
288
289
-
`--where` (optional) A SQL WHERE clause to filter the results. Running `promplab prompts` will show the columns available for filtering. These are currently `['prompt_id', 'block_id', 'prompt', 'response', 'model', 'prompt_tag', 'created_at']`
289
+
-`--where` (optional) A SQL WHERE clause to filter the results. Running `promplab prompts` will show the columns available for filtering. These are currently `['prompt_id', 'block_id', 'prompt', 'response', 'model', 'prompt_tag', 'created_at']`
290
290
291
291
### Examples
292
292
@@ -308,9 +308,9 @@ Convert prompts into blocks or metadata. This is useful is you want to do later
308
308
309
309
### Arguments
310
310
311
-
`--where` (optional) A SQL WHERE clause to filter the results. Running `promplab transfer-prompts` will show the columns available for filtering. These are currently `['prompt_id', 'block_id', 'prompt', 'response', 'model', 'prompt_tag', 'created_at']`
312
-
`--to` (required) The type of object to transfer the prompts to. Options are `blocks` or `metadata`.
313
-
`--metadata_key` (optional) The key to use for the metadata. Only valid when `--to=metadata`.
311
+
-`--where` (optional) A SQL WHERE clause to filter the results. Running `promplab transfer-prompts` will show the columns available for filtering. These are currently `['prompt_id', 'block_id', 'prompt', 'response', 'model', 'prompt_tag', 'created_at']`
312
+
-`--to` (required) The type of object to transfer the prompts to. Options are `blocks` or `metadata`.
313
+
-`--metadata_key` (optional) The key to use for the metadata. Only valid when `--to=metadata`.
0 commit comments