Skip to content

Ask: hybrid retrieval over sessions and people - #29

Merged
riponcm merged 2 commits into
mainfrom
feat/ask-v2
Nov 9, 2026
Merged

riponcm merged 2 commits into
mainfrom
feat/ask-v2

Conversation

@riponcm

@riponcm riponcm commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Ask now retrieves sessions and people with BM25 + kNN fused by RRF (one embedding, one msearch; the native rrf retriever with the client-side fallback shared with Search), so it can answer who should I meet about… with cited people.

  • People sources: speakers and sample attendees, the asking user excluded; numbered after sessions; Claude must cite them, call sample attendees sample, and never invent contact details.
  • Person chips link to People; new starter question Who should I meet about eBPF and GPU scheduling?
  • retrieve span carries mode and per-source counts; LLM telemetry unchanged.

Examples: Who should I meet about GPU scheduling? cites 6 sessions and 3 sample attendees (/bin/zsh.042); Which talks today are about running LLM inference cheaply on GPUs? still cites sessions and suggests two speakers (/bin/zsh.035). 11 new tests.

Built by a Claude Code agent from a written brief; checked through the API before this pull request.

- One embedding and one msearch: sessions and people each BM25 + kNN fused
  with RRF (native retriever, client-side fallback shared with Search),
  plus transcript chunks; BM25 only without an embedding key
- Claude may recommend people to meet, must cite them, labels sample
  attendees and never invents contact details
- Person source chips (initials, title, company, Sample) link to People
- 11 new tests
@riponcm
riponcm enabled auto-merge November 9, 2026 22:49
@gitar-bot

gitar-bot Bot commented Nov 9, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 closed / 1 findings

🟡 Medium risk · Adding hybrid session-and-people retrieval changes which sources inform recommendations; ranking or filtering errors could surface irrelevant people or sessions.

Ask now retrieves sessions and people using hybrid BM25 and kNN search fused by RRF, so it can answer who-to-meet questions with cited people. Catch-up part chips now get the Ask transcript label, addressing the resolved chip labeling finding. No open issues found.

✅ 1 closed
✅ Bug: Catch-up part chips now get the Ask transcript label

📄 frontend/src/components/ask/SourceChips.tsx:35 📄 frontend/src/components/ask/chat.ts:13
The new check s.kind === 'chunk' || s.kind === 'transcript' assumes Catch up still sends "transcript", and the new comment in chat.ts says so too. It doesn't: backend/app/routers/catchup.py:188 already sends kind: "chunk" for its Part N sources. Before this PR, Catch-up chips showed no extra line. Now every cited part in Catch up gets an extra "Sample transcript (generated), not the speaker's words" line, which is a UI change on a page this PR wasn't meant to touch. One fix is to have Ask send a kind of its own (for example transcript) and match only that. The other is to keep chunk and show the meta line only when there is no onSelect (that is, on Ask). Either way, fix the comment in chat.ts.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@riponcm
riponcm merged commit c434c41 into main Nov 9, 2026
3 checks passed
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.

1 participant