Skip to content

feat(knowledgebase): add local backend#55

Merged
sjy3 merged 1 commit into
volcengine:mainfrom
wucm667:feat/kb-local-backend
May 9, 2026
Merged

feat(knowledgebase): add local backend#55
sjy3 merged 1 commit into
volcengine:mainfrom
wucm667:feat/kb-local-backend

Conversation

@wucm667
Copy link
Copy Markdown
Contributor

@wucm667 wucm667 commented Apr 25, 2026

Summary

  • add an in-memory local knowledgebase backend
  • wire ktypes.LocalBackend into NewKnowledgeBase
  • support adding text, files, and directories, with deterministic lexical search by default
  • support optional custom embedding-based ranking through a lightweight backend embedder interface

Tests

  • GOCACHE=/tmp/veadk-go-build-cache go test -mod=readonly ./knowledgebase/backend/local_knowledge_backend
  • GOCACHE=/tmp/veadk-go-build-cache go test -mod=readonly -race ./knowledgebase/backend/local_knowledge_backend

Notes

  • go test -mod=readonly ./knowledgebase could not be completed in the local sandbox because the existing ADK dependency needed module-cache writes/download access.

@sjy3 sjy3 merged commit a3eb247 into volcengine:main May 9, 2026
2 checks passed
@wucm667 wucm667 deleted the feat/kb-local-backend branch May 9, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants