Skip to content

feat: add support for amazon bedrock knowledge base #1520

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rkarthikr
Copy link
Contributor

Closes #1514

📑 Description

Add support for Amazon Bedrock Knowledge Base as an AI backend provider for K8sGPT. This implementation allows users to leverage their existing knowledge bases in Amazon Bedrock to enhance Kubernetes cluster
analysis and troubleshooting capabilities. The feature includes necessary authentication methods, integration with the K8sGPT backend system, and comprehensive test coverage.

✅ Checks

  • [ ✅ ] My pull request adheres to the code style of this project
  • [ ✅ ] My code requires changes to the documentation
  • [ ✅ ] I have updated the documentation as required
  • [ ✅ ] All the tests have passed

Signed-off-by: rkarthikr <38294804+rkarthikr@users.noreply.github.com>
@rkarthikr rkarthikr requested review from a team as code owners May 29, 2025 21:26
@github-project-automation github-project-automation bot moved this to Proposed in Backlog May 29, 2025
Copy link

codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 35.68075% with 137 lines in your changes missing coverage. Please review.

Project coverage is 42.90%. Comparing base (173e4dc) to head (689a061).
Report is 153 commits behind head on main.

Files with missing lines Patch % Lines
pkg/ai/amazonbedrockknowledgebase.go 35.96% 129 Missing and 1 partial ⚠️
cmd/auth/add.go 37.50% 5 Missing ⚠️
pkg/ai/iai.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1520      +/-   ##
==========================================
+ Coverage   34.76%   42.90%   +8.13%     
==========================================
  Files          94      108      +14     
  Lines        6342     7839    +1497     
==========================================
+ Hits         2205     3363    +1158     
- Misses       4046     4326     +280     
- Partials       91      150      +59     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

rkarthikr added 2 commits May 29, 2025 17:58
Signed-off-by: rkarthikr <38294804+rkarthikr@users.noreply.github.com>
Signed-off-by: rkarthikr <38294804+rkarthikr@users.noreply.github.com>
@AlexsJones
Copy link
Member

Thanks for your PR, do you have any examples of this running?

@rkarthikr
Copy link
Contributor Author

Thanks for your PR, do you have any examples of this running?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Proposed
Development

Successfully merging this pull request may close these issues.

[Feature]: Native Support for Bedrock Knowledgebase
2 participants