Skip to content
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

chore(text_to_sql): various prompt eng tweaks and minor fixes #473

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

jgpruitt
Copy link
Collaborator

@jgpruitt jgpruitt commented Feb 12, 2025

  • prompt engineering stuff mostly with openai
  • minor bug fixes

@jgpruitt jgpruitt self-assigned this Feb 12, 2025
@jgpruitt jgpruitt requested a review from a team as a code owner February 12, 2025 17:11
@jgpruitt jgpruitt requested a review from MasterOdin February 12, 2025 17:13
},
"total": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 10,
"description": "The total number of rows to return in the sample, the max is 10."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can probably remove the max bit in the description.

Comment on lines +372 to +376
, tool_choice=>
case when _iter_remaining = 0 then
'{"type": "function", "function": {"name": "answer_user_question_with_sql_statement"}}'
else 'required'
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not do this with at least anthropic as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should.

Copy link
Contributor

@adolsalamanca adolsalamanca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a comment, but looks good

@jgpruitt jgpruitt force-pushed the jgpruitt/text-to-sql-hackery branch from 955ce24 to ce3be52 Compare February 12, 2025 19:08
@jgpruitt jgpruitt merged commit 925f1e2 into main Feb 13, 2025
5 checks passed
@jgpruitt jgpruitt deleted the jgpruitt/text-to-sql-hackery branch February 13, 2025 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants