Skip to content

Improved instruction following for W|A query writer#1392

Merged
rhennigan merged 1 commit intomainfrom
feature/improve-wa-query-instructions
Feb 13, 2026
Merged

Improved instruction following for W|A query writer#1392
rhennigan merged 1 commit intomainfrom
feature/improve-wa-query-instructions

Conversation

@rhennigan
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves instruction following for the Wolfram Alpha query writer by adding a reminder message to reinforce that the LLM should only generate Wolfram Alpha queries and not attempt to answer the user's question directly.

Changes:

  • Added $queryReminder constant with a reminder message about expected output format
  • Modified generateSuggestedQueries to include the reminder as a system message after the user message

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rhennigan rhennigan merged commit 049d4f6 into main Feb 13, 2026
7 checks passed
@rhennigan rhennigan deleted the feature/improve-wa-query-instructions branch February 13, 2026 20:08
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.

1 participant