Skip to content

fix(rag): index Markdown with Kubernetes-like names - #30

Merged
ipiton merged 2 commits into
ipiton:mainfrom
glockbender:codex/context-evidence-coverage
Nov 24, 2026
Merged

ipiton merged 2 commits into
ipiton:mainfrom
glockbender:codex/context-evidence-coverage

Conversation

@glockbender

Copy link
Copy Markdown

What does this PR do?

Index allowed Markdown files even when they are named deployment.md, service.md or ingress.md, or are located under k8s or kubernetes directories. Add a synthetic integration test covering all five path forms through indexing and Engine.DocumentContext readback.

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

make test vet eval

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, including eval and corpus tags).
  • Documentation reviewed; this correction restores the existing documented Markdown indexing scope.
  • No hardcoded machine paths or API keys.

@ipiton
ipiton merged commit be9d302 into ipiton:main Nov 24, 2026
5 checks passed
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