Skip to content

Commit 1433bf1

Browse files
committed
refactor: describegpt more tweaks
- change stats to not do --everything so we can describegpt any size CSV - add prompt-file-version to the Generated By signature
1 parent 9e9586c commit 1433bf1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/cmd/describegpt.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ describegpt options:
106106
for grouping datasets and filtering.
107107
-A, --all Shortcut for --dictionary --description --tags.
108108
--stats-options <arg> Options for the stats command used to generate summary statistics.
109-
[default: --infer-dates --everything --stats-jsonl]
109+
[default: --infer-dates --cardinality --force --stats-jsonl]
110110
--enum-threshold <n> The threshold for compiling enumerations with the frequency command
111111
before bucketing other unique values into the "Other" category.
112112
[default: 10]
@@ -1019,12 +1019,15 @@ fn get_completion(
10191019
total: usage["total_tokens"].as_u64().unwrap_or(0),
10201020
};
10211021

1022-
// Replace "{GENERATED_BY_SIGNATURE}" with model name & datetime the query was generated
1022+
// Replace "{GENERATED_BY_SIGNATURE}"
1023+
// with prompt file version, model name & datetime the completion was generated
10231024
let completion = completion.replace(
10241025
"{GENERATED_BY_SIGNATURE}",
10251026
&format!(
1026-
"Generated by qsv's describegpt command using {model} on {}",
1027-
chrono::Utc::now().to_rfc3339()
1027+
"Generated by qsv's describegpt command with prompt file v{ver} using {model} on {ts}",
1028+
ver = prompt_file.version,
1029+
model = model,
1030+
ts = chrono::Utc::now().to_rfc3339(),
10281031
),
10291032
);
10301033

0 commit comments

Comments
 (0)