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

Added a more optimal claude prompt #184

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Conversation

rishsriv
Copy link
Member

No description provided.

{table_metadata_string}
{k_shot_prompt}
### Response:
{cot_instructions}Given the database schema, here is the SQL query that answers `{user_question}`:
```sql
Copy link
Contributor

Choose a reason for hiding this comment

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

ooh anthropic performs better without cot?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup slightly worse – which makes sense I guess! Larger model = more attention heads = better ability to pay attention to DDLs!

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh yes makes sense when you explain it

messages = [
{"role": "user", "content": [{"type": "text", "text": user_prompt}]}
]
prompt
Copy link
Contributor

Choose a reason for hiding this comment

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

were you intending to do something here?

Copy link
Member Author

Choose a reason for hiding this comment

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

ah whoops was a typo – fixed now, thanks!

@rishsriv rishsriv merged commit c9882c0 into main Jun 26, 2024
2 checks passed
@rishsriv rishsriv deleted the rishabh/update-claude-prompt branch June 26, 2024 06:17
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.

2 participants