Short questions on a new topic are treated as follow-ups and searched in the old topic's papers
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
Direzione di ricerca
Start with QueryRewriter.classify_mode and should_rewrite in src/chatty/rag/rewriter.py, then trace how LitkitProvider.augment in src/chatty/rag/litkit_provider.py uses the mode and cached paper shortlist. Add tests for the listed HIV-to-CRISPR and shingles topic changes, including whether new-topic queries skip rewriting and refresh the shortlist; done when those cases no longer reuse old-topic context.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
QueryRewriter.classify_mode (src/chatty/rag/rewriter.py:227) returns FOLLOWUP for any query under 200 characters (SHORT_QUERY_THRESHOLD), and for any query starting with how, why, what about or and (FOLLOWUP_PATTERNS, line 72). LitkitProvider.augment (src/chatty/rag/litkit_provider.py:919) then reuses the previous turn's paper shortlist for FOLLOWUP queries, skipping stage 1. The reused IDs are cached again (line 948), so the shortlist is never refreshed until a query is classified NEW_TOPIC.
Separately, should_rewrite (line 268) ignores the mode: any query under 200 characters is rewritten with the previous conversation as context, including queries classified NEW_TOPIC.
With a previous turn about HIV latency:
| Query | mode | rewritten |
|---|---|---|
How does CRISPR-Cas9 editing work? |
FOLLOWUP | yes |
Which vaccines are approved for shingles in adults over 50? |
FOLLOWUP | yes |
Tell me about CRISPR |
NEW_TOPIC | yes |
Effect: after the first question, most short questions on a new topic search only the papers shortlisted for the old topic (500 by default), so the answer cites unrelated papers or finds nothing. New-topic queries are also rewritten using the old topic's terms.
Fix: treat a short query as a follow-up only when it has a follow-up signal (pronouns, references to earlier answers), and skip rewriting when the mode is NEW_TOPIC. Tests should cover topic changes like the ones above.
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 2
- Merge medio
- 1g 4h
- PR unite (30g)
- 13
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lanl/chatty
-
area: rag bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
area: client bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area: ui bug wrong-result
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
area: config bug wrong-result
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
area: config bug wrong-result
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
software-mansion-labs/Diplomat#20 ·
I maintainer di solito rispondono entro 1 giorno
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaForse già presa @lijy91 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
libnativeapi/nativeapi#53 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
View Counts discarded due to field name mismatchForse già presa @rsiva0400 l’ha presa oggi. Apertasite-bug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Model version publishes the new UK firm entity as a personForse già presa @vahid-ahmadi l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PolicyEngine/policyengine.py#764 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
spcl/HPCAgent-Bench#264 ·
I maintainer di solito rispondono entro 1 giorno