Repository navigation
Editable profile drives matching (BM25 + kNN + RRF) - #32
Conversation
- GET/PUT /api/profile/{id}: validated editable fields; saving rebuilds
interests_text, re-embeds when the profile text changes, writes with
refresh; span profile.save and counter confox.profile.updates
- GET /api/profile/options: suggestions from aggregations
- People and My brief rank with one pipeline: a BM25 list (shared school,
company, community, city, country, topics) and a kNN list on the profile
vector, fused by the native rrf retriever (client-side fallback), with
shared-value boosts and explainable reasons on top
- Schedule For you also uses keywords, projects and chosen tracks
- Profile editor in the drawer (chip inputs with suggestions, sections,
dirty state, errors, toast); pages refetch after a save
- Sample data: some attendees also list BUET; tests updated, new tests
# Conflicts: # frontend/src/components/Shell.tsx # frontend/src/components/dashboard/HeroRow.tsx # frontend/src/pages/Brief.tsx # frontend/src/pages/Now.tsx # frontend/src/pages/People.tsx # frontend/src/pages/Schedule.tsx
…SearchFailed too)
Code Review ✅ Approved 2 closed / 2 findings🔴 High risk · Profile write restrictions and private-profile filtering alter access controls; mistakes could expose users’ profile data or block legitimate edits. Editable profile now drives BM25 and kNN matching fused with RRF, with shared-value boosts and explainable match reasons across People, Schedule and My brief. Profile writes are restricted to the signed-in user, addressing the finding that any caller could overwrite another user's profile, and the day view no longer returns a 500 when the search fails. No open issues found. ✅ 2 closed✅ Security: PUT /api/profile/{user_id} lets any caller overwrite anyone's profile
✅ Bug: _top_matches misses SearchFailed, so the day view 500s
VerificationRules No rules evaluated Functional validation Not enabledFor more verification details, comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
The core of Confox: the user's profile drives what Elasticsearch ranks.
rrfretriever (client-side fallback on a basic licence); shared-value boosts and explainable why reasons on top. One pipeline for People and My brief; Schedule For you also uses keywords, projects and tracks.Verified (on a scratch copy of the people index, Emma's shared document untouched): adding eBPF and BUET → 6 BUET alumni in her top 30, For you 15 → 17 of 76 with eBPF talks, My brief suggests BUET alumni; removing them restores everything exactly.
Built by a Claude Code agent from a written brief; reviewed before this pull request.
Summary by Gitar
This will update automatically on new commits.