-
Notifications
You must be signed in to change notification settings - Fork 714
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: add custom restful backend for complex scenarios (e.g, rag) #1228
base: main
Are you sure you want to change the base?
Conversation
b9b8b3e
to
a03b89e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your PR—great work! We need to discuss further how we'll support RAG as an AI Provider.
For example, what types of authentication will we support? How should we include tests and tutorials in our documentation? etc.
By the way, your PR is an excellent starting point for this discussion.
ce12a83
to
8381688
Compare
Signed-off-by: popsiclexu <[email protected]>
8381688
to
c956787
Compare
I added a tutorial for this: https://github.com/popsiclexu/k8sgpt-docs/blob/feat/customrest/docs/tutorials/custom-rest-backend.md. |
@popsiclexu is this not possible with localai as a backend ? |
@arbreezy The custom backend allows users to implement more complex and customizable functionality. Additionally, it enables integration with any vector database or embedding model within their own code, offering greater flexibility and extensibility. |
I am happy to see this PR, and willing to accept it, but I think we need an OpenAPI or similar schema to help others to understand our thinking here of how the protocol might look. Or at the very least some example documentation. Would you be willing to put something together @popsiclexu ? |
Signed-off-by: popsiclexu <[email protected]>
Thank you for your suggestion! I’ve added a description of the OpenAPI schema to the tutorial documentation. k8sgpt-ai/docs#135 @AlexsJones |
📑 Description
Add a new backend that allows access to a custom API, enabling the integration of personalized services into k8sgpt. For example, it supports the integration of RAG services to enhance the accuracy of responses based local knowledge.
✅ Checks
ℹ Additional Information
Usage
You cant get a tutorial for customrest backend from https://github.com/popsiclexu/k8sgpt-docs/blob/feat/customrest/docs/tutorials/custom-rest-backend.md.
And the docs pr is k8sgpt-ai/docs#120