fix: pass accessible tables to validator node, and reduce verify checklist node's reasoning #11
Merged
akshatdubeysf merged 1 commit intomainfrom Mar 30, 2026
Merged
fix: pass accessible tables to validator node, and reduce verify checklist node's reasoning #11akshatdubeysf merged 1 commit intomainfrom
akshatdubeysf merged 1 commit intomainfrom
Conversation
Collaborator
|
tests |
Collaborator
|
and why is sequelize added as dep? |
11ddd19 to
386ba7e
Compare
Contributor
Author
removed sir |
Contributor
Author
fixed sir |
386ba7e to
2bb019f
Compare
akshatdubeysf
approved these changes
Mar 30, 2026
…utput pass all tables to semantic-validator node issues-fix
2bb019f to
12d2c75
Compare
SonarQube reviewer guideSummary: Bump to version 2.0.0 with dependency cleanup and semantic validator enhancement to support table search functionality. Review Focus:
Start review at:
|
Contributor
|
🎉 This PR is included in version 2.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
This pull request introduces several improvements and refactors to the database query validation nodes, focusing on enhancing semantic validation accuracy, permission handling, and test coverage. The most significant changes include integrating table search and permission filtering into the
SemanticValidatorNode, updating unit tests to cover these behaviors, and making minor adjustments to checklist verification and configuration.Semantic Validator Enhancements:
SemanticValidatorNodenow uses theTableSearchServiceto dynamically retrieve accessible tables based on the user's prompt and filters them by permissions using thePermissionHelper. This ensures that only tables the user can access are considered during validation. [1] [2] [3] [4]Testing Improvements:
SemanticValidatorNodehave been updated and expanded to mock theTableSearchServiceand verify that accessible tables are correctly passed to the LLM prompt, ensuring missing tables can be flagged. [1] [2] [3]Checklist Verification Adjustments:
verifyChecklistNode.enabled) and clarifies prompt instructions to require only the result tag in responses, with no explanation or analysis. [1] [2] [3]Configuration and Dependency Updates:
enabledproperty to theverifyChecklistNodeconfiguration for finer control.@loopback/sequelizeas a dependency inpackage.json.Code Organization:
models/index.tsfor consistency.Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: