Repository navigation
fix(rag): index Markdown with Kubernetes-like names - #30
Merged
Merged
Conversation
ipiton
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Index allowed Markdown files even when they are named
deployment.md,service.mdoringress.md, or are located underk8sorkubernetesdirectories. Add a synthetic integration test covering all five path forms through indexing andEngine.DocumentContextreadback.Why?
The Kubernetes classifier currently matches these paths before checking the extension. For Markdown it enters that switch case, returns no type, and never reaches the Markdown case, so indexing silently skips the file.
Requiring a YAML extension in the Kubernetes case condition lets Markdown reach its existing classification while preserving Kubernetes YAML handling.
How to test
All checks passed locally. The five synthetic path cases fail before the classifier correction and pass after it. The test uses a local embedding stand-in and does not need a downloaded model or credentials.
Checklist
go test ./...passes (make test).go vet ./...passes (make vet, includingevalandcorpustags).