docs(experiment): qualified-name preamble — recorded after revert#32
Open
docs(experiment): qualified-name preamble — recorded after revert#32
Conversation
Captures the A/B/C testing of a docstring-wrapped preamble with qualified symbol names (`UserService.authenticate`) across two real codebases (Python class-heavy + Go-heavy) plus controlled fixtures. Conclusion: the +5.6% QID benchmark gain was a literal-string-match artefact of the new preamble; semantic NL queries that don't name the class/method showed near-zero gain and one regression. Feature was reverted in the same session — this doc is the record so future iterations don't repeat the same hypothesis without the right test. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
Summary
UserService.authenticate) across two real codebases — Python class-heavy (brain-project) and Go-heavy (this repo) — plus controlled fixture experiments.Class.methodappearing verbatim in the new preamble. Body content already carries enough lexical signal (self.X, type hints, imports, SQL table names) for the embedder to disambiguate class-scoped methods.What's in the diff
A single new file:
doc/qualified-name-preamble-experiment.md(~210 lines). Covers:EventMemory.search_embeddingsvsSemanticMemory.search_embeddings— margin actually shrank in Mode B)Test plan
doc/qualified-name-preamble-experiment.mdend-to-enddoc/or leave standalone🤖 Generated with Claude Code