Skip to content

fix(cli): distinguish unavailable document chunk counts from zero - #5784

Open
Yzzz88 wants to merge 3 commits into
Tencent:mainfrom
Yzzz88:fix/document-chunk-count-diagnostics
Open

Yzzz88 wants to merge 3 commits into
Tencent:mainfrom
Yzzz88:fix/document-chunk-count-diagnostics

Conversation

@Yzzz88

@Yzzz88 Yzzz88 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

On the same populated KB, search returned original chunks but kb status --format text reported Chunks: 0. FillKnowledgeBaseCounts populates the chunk total for FAQ KBs only. Clarify the unavailable count in text status/check without another request, and direct empty searches to the document chunk list. Preserve numeric totals when available and keep the JSON contract.

Verification

go test -count=1 -run "TestChunkCountDiagnostics|TestEmitStatus|TestEmitCheck|TestRunSearch" ./cmd/kb ./cmd/search in the CLI module.

@Yzzz88

Yzzz88 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for your time on this project. Regarding this change (distinguish unavailable document chunk counts from zero), when you have a chance to review it, is there any additional context or validation you would like me to provide?

This branch has not been deployed

No deployments
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.

1 participant