Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

feat: use schema-service interest categories for discovery - #142

Merged
shiba4life merged 2 commits into
mainfrom
feature/field-interest-categories
Mar 31, 2026
Merged

feat: use schema-service interest categories for discovery#142
shiba4life merged 2 commits into
mainfrom
feature/field-interest-categories

Conversation

@shiba4life

Copy link
Copy Markdown
Collaborator

Summary

  • Replace hardcoded 25-seed-centroid embedding classification with schema-service-driven field_interest_categories
  • Interest detection now reads categories assigned by schema service at field registration time
  • Preserves user toggle state across re-detection runs
  • DiscoveryTab UI reads field_interest_categories instead of data_domain

Dependencies

Test plan

  • All existing tests pass
  • Clippy clean
  • cargo check --features aws-backend compiles
  • New test: empty schemas returns empty profile
  • New test: schema-based interest aggregation
  • New test: toggle state preserved across re-detection

馃 Generated with Claude Code

@shiba4life
shiba4life enabled auto-merge (squash) March 30, 2026 17:23

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6629f00fad

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/server/static-react/src/components/tabs/DiscoveryTab.jsx
Comment thread src/discovery/interests.rs
@shiba4life
shiba4life force-pushed the feature/field-interest-categories branch from 0b0c043 to e34e659 Compare March 31, 2026 14:41
shiba4life and others added 2 commits March 31, 2026 07:49
Replace the hardcoded 25-seed-centroid embedding classification system
with schema-service-driven field_interest_categories. Interest detection
now reads categories assigned by the schema service at field registration
time, preserving user toggle state across re-detection.

- Rewrite detect_interests_from_schemas() to aggregate from schemas
- Remove SEED_CATEGORIES and embedding-scan approach
- Preserve get_centroids() for similar_profiles discovery search
- Use INTEREST_CATEGORIES from fold_db as single source of truth
- Update DiscoveryTab.jsx to read field_interest_categories
- Add 3 new tests for schema-based interest detection

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@shiba4life
shiba4life force-pushed the feature/field-interest-categories branch from e34e659 to f793f22 Compare March 31, 2026 14:49
@shiba4life
shiba4life merged commit 232440b into main Mar 31, 2026
4 checks passed
@shiba4life
shiba4life deleted the feature/field-interest-categories branch March 31, 2026 14:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant