Enhance string literal extraction and increase LLM output limits#28
Merged
Conversation
- Added a new function `extractStringLiterals` in `diff-parser.ts` to capture meaningful string literals from changed lines, filtering out common non-architectural strings. - Updated `parsePRFiles` to include extracted string literals alongside changed symbols. - Introduced a regex in `doc-extractor.ts` to capture quoted string values from documentation, aiding in matching diffs that change string literals. - Modified `findCandidateSections` to incorporate changed literals from the diff for improved section scoring. - Increased the threshold for candidate section matching in `drift-detector.ts` from 3 to 6 to refine detection accuracy. - Updated `ChangedFile` interface in `types.ts` to include `changedLiterals` for better data structure representation.
…een LLM calls - Increase max_tokens/maxOutputTokens from 1024 to 2048 across OpenAI, Anthropic, and Gemini to prevent JSON response truncation - Add 1.5s rate-limit delay between consecutive LLM calls in drift-detector to avoid 429 storms on free-tier APIs - Update README cost estimate to reflect topN=6 (N×6 calls per PR)
Owner
Author
|
@copilot resolve the merge conflicts in this pull request |
# Conflicts: # dist/index.js.map
✅ Knowledge Diff — No Rationale Drift DetectedChecked 3 changed file(s) against 1 documentation file(s) — all clear. 🧠 knowledge-diff • analysed 5 candidate pair(s) |
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.
No description provided.