code_index: dé-polluer code_chunks de la gouvernance data-platform#7
Merged
Conversation
search_code remontait la prose FR de data-platform (catalog/contracts/inventory/ lineage…) AVANT le vrai code applicatif : pour « où est fait X dans le code », le fichier attendu était absent du top-10, enterré sous des .md/.yaml de gouvernance (déjà indexés, eux, dans docs_chunks/search_docs). Vérifié : en excluant cette prose, 2/3 des questions code remontent rang 1. - walk.iter_files : support `exclude_per_repo` (motifs relatifs, par repo) ; - manifest : exclure de data-platform, côté CODE uniquement, catalog/contracts/ inventory/lineage/audits/adr + *.md (gardés dans docs_chunks). Le vrai code (tools/*.py) reste indexé ; - index.py : reconstruire le FTS aussi quand il n'y a QUE des suppressions (sinon BM25 incohérent après retrait de lignes). docs_chunks (search_docs) totalement inchangé. 74 tests verts.
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.
search_code remontait la prose data-platform (catalog/contracts/inventory/lineage) avant le vrai code. Vérifié : 2/3 questions code passent ABSENT-du-top-10 → rang 1 une fois la prose exclue. exclude_per_repo (walk) + manifest (exclure gouvernance data-platform du corpus CODE, gardée dans docs_chunks) + index.py (rebuild FTS sur suppressions seules). docs_chunks/search_docs inchangé. 74 tests.