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

feat(wren-ai-service): update the system prompt for table columns selection to provide clear instructions and expected JSON format. #658

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

paopa
Copy link
Member

@paopa paopa commented Sep 9, 2024

This PR updates the system prompt used for table columns selection in the AI service. The changes aim to provide clearer instructions and a more structured JSON format for the AI's response.

Key Changes

  1. Refined the task description to be more concise and focused.
  2. Added a structured "INSTRUCTIONS" section with step-by-step guidance.
  3. Updated the "FINAL ANSWER FORMAT" section to require a more detailed JSON structure:
    • Each table now includes a list of reasons (chain_of_thought_reasoning) for column selection.
    • The reasoning is now presented as a list of individual points rather than a single string.
  4. Added an "ADDITIONAL NOTES" section to emphasize important requirements.
  5. Removed unnecessary motivational language and focused on clear, professional instructions.

Expected Impact

  • Improved clarity and structure in the AI's responses.
  • More detailed reasoning for column selection, aiding in transparency and accuracy.

…ection to provide clear instructions and expected JSON format.
@paopa paopa added module/ai-service ai-service related ci/ai-service ai-service related labels Sep 9, 2024
@paopa paopa requested a review from cyyeh September 9, 2024 09:54
@paopa paopa marked this pull request as ready for review September 9, 2024 09:54
Copy link
Member

@cyyeh cyyeh left a comment

Choose a reason for hiding this comment

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

LGTM

@cyyeh cyyeh merged commit 17ba7b5 into main Sep 9, 2024
10 checks passed
@cyyeh cyyeh deleted the feat/column-selection-with-cot-reasoning branch September 9, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/ai-service ai-service related module/ai-service ai-service related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants