Repository navigation
Conversation
Extract intentKeywordSchema, INTENT_SYSTEM_PROMPT, AI_VOLUME_MULTIPLIER and a new extractIntentKeywords() helper into server/src/lib/intent-extraction.js as the single source of truth. Both volumes.js call sites (/analyze and /analyze-batch) now collapse to one await extractIntentKeywords(), removing the duplicated generateObject() calls and the unused ai/zod imports from the route. No behavior change to the volumes endpoints. Closes #241
parseFloat on a non-numeric or empty AI_VOLUME_MULTIPLIER yielded NaN, which would propagate into estAiVolume and persisted rows. Fall back to the 0.15 default when the parsed value is not finite. (Copilot review on #302.)
7 tasks done
Contributor
|
Closing as redundant. This draft was auto-created in reaction to a review-reply comment on #302, but that comment was explaining review decisions, not requesting a new PR. The actual work lives in #302:
The system-prompt wording points were intentionally left out (pure |
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.
Thanks for the feedback on #302. I've created this new PR, which merges into #302, to address your comment. I will work on the changes and keep this PR's description up to date as I make progress.
Original PR: #302
Triggering comment (#302 (comment)):