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

Remove analyst generation comment from verified queries #168

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

sfc-gh-cnivera
Copy link
Collaborator

@sfc-gh-cnivera sfc-gh-cnivera commented Oct 1, 2024

Queries generated by Analyst include a --Generated by Cortex Analyst comment for attribution. When directly adding these as verified queries using the OSS, the comment was being left in. When the Analyst then took into account these verified queries to generate subsequent SQL, the comment was being preserved and added twice (once because the LLM preserved the original comment from the verified query, and again by the Analyst code to append this comment to any SQL queries generated), which looks strange.

To solve this we are removing the comment before marking the query as a verified query so that Analyst will not encounter it again.

CleanShot.2024-10-01.at.11.51.06.mp4

@sfc-gh-cnivera sfc-gh-cnivera marked this pull request as ready for review October 1, 2024 18:52
@sfc-gh-cnivera sfc-gh-cnivera merged commit 8715e98 into main Oct 2, 2024
2 checks passed
@sfc-gh-cnivera sfc-gh-cnivera deleted the cnivera/remove-analyst-comment branch October 2, 2024 20:27
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