-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrade DotPrompt.Sql to full feature parity with DotPrompt 0.0.6.1 #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| INSERT INTO PromptFile (PromptName, CreatedAt, ModifiedAt, Model, OutputFormat, MaxTokens, SystemPrompt, UserPrompt) | ||
| INSERT INTO PromptFile (PromptName, CreatedAt, ModifiedAt, Model, OutputFormat, OutputSchema, MaxTokens, Temperature, SystemPrompt, UserPrompt, FewShots) | ||
| OUTPUT INSERTED.PromptId | ||
| VALUES (@PromptName, @CreatedAt, @ModifiedAt, @Model, @OutputFormat, @MaxTokens, @SystemPrompt, @UserPrompt) | ||
| VALUES (@PromptName, @CreatedAt, @ModifiedAt, @Model, @OutputFormat, @OutputSchema, @MaxTokens, @Temperature, @SystemPrompt, @UserPrompt, @FewShots) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,9 +6,12 @@ WITH LatestPrompts AS ( | |
| ModifiedAt, | ||
| Model, | ||
| OutputFormat, | ||
| OutputSchema, | ||
| MaxTokens, | ||
| Temperature, | ||
| SystemPrompt, | ||
| UserPrompt, | ||
| FewShots, | ||
| VersionNumber, | ||
| ROW_NUMBER() OVER (PARTITION BY PromptName ORDER BY VersionNumber DESC) AS RowNum | ||
|
Comment on lines
13
to
16
|
||
| FROM PromptFile | ||
|
|
@@ -20,9 +23,12 @@ SELECT | |
| lp.ModifiedAt, | ||
| lp.Model, | ||
| lp.OutputFormat, | ||
| lp.OutputSchema, | ||
| lp.MaxTokens, | ||
| lp.Temperature, | ||
| lp.SystemPrompt, | ||
| lp.UserPrompt, | ||
| lp.FewShots, | ||
| pp.ParameterId, | ||
| pp.ParameterName, | ||
| pp.ParameterValue, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly, default-value change detection only checks for defaults present in
@Defaultsthat are missing/changed in the DB. If a default is removed (exists inParameterDefaultsfor the existing version but not in@Defaults), this won’t trigger a new version. Consider adding an inverseEXISTScheck for DB defaults not present in@Defaults.