Skip to content

11 phase 3 flow 2 recommendation engine#12

Merged
jaydee829 merged 8 commits intomainfrom
11-phase-3-flow-2-recommendation-engine
Feb 18, 2026
Merged

11 phase 3 flow 2 recommendation engine#12
jaydee829 merged 8 commits intomainfrom
11-phase-3-flow-2-recommendation-engine

Conversation

@jaydee829
Copy link
Owner

No description provided.

@jaydee829 jaydee829 linked an issue Feb 18, 2026 that may be closed by this pull request
@jaydee829 jaydee829 self-assigned this Feb 18, 2026
@jaydee829 jaydee829 requested a review from Copilot February 18, 2026 14:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 31 out of 34 changed files in this pull request and generated 11 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


narrator_id: Mapped[UUID] = mapped_column(ForeignKey("narrators.id"), primary_key=True)
style_id: Mapped[UUID] = mapped_column(ForeignKey("styles.id"), primary_key=True)
attribute_type: Mapped[str] = mapped_column(String, nullable=False) # 'voice_differentiation', etc.
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The attribute_type field is not part of the primary key for NarratorStyle. Without including attribute_type in the primary key, a narrator can only have one style per style_id, but narrators should be able to have different styles for different attributes (e.g., both 'pacing' and 'voice_differentiation'). The primary key should include attribute_type.

Suggested change
attribute_type: Mapped[str] = mapped_column(String, nullable=False) # 'voice_differentiation', etc.
attribute_type: Mapped[str] = mapped_column(String, primary_key=True, nullable=False) # 'voice_differentiation', etc.

Copilot uses AI. Check for mistakes.

# 2. Style Search
if target_styles:
s_embeddings = [sm._get_embedding(s) for s in target_styles]
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generating embeddings for each style on every search request could become a performance bottleneck. For frequently searched styles, consider implementing a cache for these embeddings to avoid redundant API calls to the embedding service.

Copilot uses AI. Check for mistakes.
…, minimize API calls, and maximize Style flexibility. Refactored test mocks to appropriately interact with these improvements
@jaydee829
Copy link
Owner Author

All review items were copied to Gemini CLI and fixed in the fix: implement copilot review... commit, with the exception of the mock updates to use contributors, which was ID'd prior to the review and fixed in the fix: change mocks to use contributors... commit.

@jaydee829 jaydee829 merged commit 2d8e9f0 into main Feb 18, 2026
2 checks passed
@jaydee829 jaydee829 deleted the 11-phase-3-flow-2-recommendation-engine branch February 18, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phase 3: Flow 2 - Recommendation Engine

2 participants