-
Notifications
You must be signed in to change notification settings - Fork 61
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(ai): add AI-based issue interpretation feature #707
Merged
Conversation
This file contains 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
- Implement new endpoint for AI-based issue interpretation - Add new AI prompt type for issue interpretation - Update UI components to support AI interpretation - Add translations for AI interpretation feature - Remove deprecated types file and refactor related code - Update styling for new AI interpretation panel This feature allows users to get AI-based insights and interpretations of scanner issues, improving the diagnostic capabilities of the system.
elliotxx
requested review from
ruquanzhao,
hai-tian,
panshuai111,
adohe and
ffforest
as code owners
January 8, 2025 08:52
elliotxx
changed the title
feat: add AI-based issue interpretation feature
feat(ai): add AI-based issue interpretation feature
Jan 8, 2025
- Add `github.com/KusionStack/karpor/pkg/core/handler` import - Replace direct `http.Error` calls with `handler.FailureRender` - Add new HTTP status codes (401, 429, 404) to API documentation - Log the start of the YAML interpretation process These changes centralize error handling and provide more detailed API documentation, improving maintainability and user feedback.
- Add new endpoint `/insight/issue/interpret/stream` for AI-based issue interpretation - Define new schemas `ai.AuditData` and `ai.IssueGroup` for AI-related data - Update OpenAPI specification and documentation to reflect new endpoint and schemas - Modify handler to reference `ai.AuditData` instead of `scanner.AuditData` This feature enables the system to provide detailed AI-driven interpretations of scanner issues, enhancing the insight capabilities of the platform.
- Streamline the Kubernetes issue interpretation prompt to focus on critical issues and solutions - Remove redundant sections and consolidate analysis requirements - Add clear formatting instructions
- Remove 'overflow: scroll' property from the interpret_panel component This change simplifies the styling of the interpret_panel by removing unnecessary scrolling behavior, which may improve the user experience by reducing visual clutter.
hai-tian
approved these changes
Jan 9, 2025
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR introduces a new AI-based issue interpretation feature to enhance the diagnostic capabilities of the system.
Key changes include:
This feature allows users to gain AI-driven insights and interpretations of scanner issues, improving the overall diagnostic experience.
Demo:
Which issue(s) this PR fixes:
Fixes #632