-
Notifications
You must be signed in to change notification settings - Fork 426
Gen AI Knowledge Base Implementation #1702
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
Conversation
da32cee
to
9075487
Compare
ff2f9cb
to
f371e32
Compare
476457a
to
19ccbdd
Compare
ecc1715
to
b6c022d
Compare
b6c022d
to
68b174d
Compare
Can we rename knowledge_base.go to genai_knowledge_base.go ? would be consistent with genai_agent.go |
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.
Pull Request Overview
This PR implements GenAI Knowledge Base features, adding methods, commands, displayers, and integration tests to support full CRUD and data‐source management.
- Extended the
GenAIService
interface and its implementation with Knowledge Base and Data Source methods. - Added CLI commands and displayers for Knowledge Base operations (
create
,list
,get
,update
,delete
, attach/detach, data‐source add/list/delete). - Added integration tests and mocks covering all new endpoints.
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
do/genai.go | Added KnowledgeBase* types and service methods. |
commands/genai_knowledge_base.go | Added CLI commands for Knowledge Base endpoints. |
commands/displayers/genai.go | Added displayers for Knowledge Base and Data Sources. |
do/mocks/GenAIService.go | Added mocks for all Knowledge Base service methods. |
integration/knowledgebase_test.go | Added end-to-end integration tests for each operation. |
Comments suppressed due to low confidence (2)
args.go:753
- The comment for
ArgKnowledgeBaseItemPath
is incorrect; it should describe the item path for a data source (e.g.,// ArgKnowledgeBaseItemPath is the item path within a Spaces data source
).
// ArgKnowledgeBaseItemPath is the region of the knowledge base
commands/genai_knowledge_base.go:181
- The placeholder
<knowledgebase-uuid>
is missing a hyphen and should be<knowledge-base-uuid>
to match the command naming convention and usage elsewhere.
"detach <agent-uuid> <knowledgebase-uuid>",
ca3c34d
to
619e59a
Compare
Implemented methods for Knowledge base endpoints for the GenAI Service