Repository navigation
experiment(index): embed only a chunk's path and file name, not the repeated metadata - #57
Closed
TrinaxCode wants to merge 1 commit into
Closed
TrinaxCode wants to merge 1 commit into
TrinaxCode wants to merge 1 commit into
Conversation
…epeated metadata Every chunk was embedded with nine lines of identical metadata (ids, absolute root, collection, pipeline version). That boilerplate can blur short chunks. Only rel_path and file_name are embedded now; the rest stays on the node. extractor_version 3 makes existing indexes rebuild. Pending a measured comparison on the code Q&A evaluation (baseline: recall@5 1.0, MRR 0.7, citation precision 0.6). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SZ4EYrCPbq3hhNsUVRT46K Signed-off-by: Claude <noreply@anthropic.com>
Owner
Author
|
Measured and rejected. Same corpus (4 TrinaxAI source files, 37 chunks, 5 questions), real
Retrieval is identical, so the repeated metadata is not what limits ranking on this corpus; the one-case drop in answer terms is within the noise of a single generation by a 4B model. The 0.6 citation precision comes from how many files get cited, not from the vectors. Closing without merging; no change to Generated by Claude Code |
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.
Description
Experiment, draft: do not merge until the measurement below is filled in.
Every chunk is embedded together with nine lines of identical metadata (ids, absolute root, collection, pipeline version). On short chunks that boilerplate can blur the vector and make retrieval pick the wrong chunk. This change embeds only
rel_pathandfile_name; the rest of the metadata stays on the node for filtering and citations.extractor_versiongoes to 3 so existing indexes rebuild.Measurement (code Q&A, 4 TrinaxAI source files + 1 unanswerable question, real
qwen3-embedding:0.6bandqwen3.5:4b)main)I will fill this in, and close the PR if it does not improve on the baseline.
Type of change
Checklist
Generated by Claude Code