[BUG]: A failed fact verification returns an empty success with no error
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 83/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python, typescript
Direzione di ricerca
Inizia da backend/app/utils/fact_check_utils.py e segui come run_fact_check_pipeline gestisce il risultato di run_fact_verifier_sdk. Controlla come fact_check.py segnala gli errori della pipeline, poi aggiungi un test di regressione per un errore del verificatore, come il limite di richieste di Groq descritto qui. Il lavoro è completo quando la pipeline restituisce l’errore del verificatore e la route segnala un errore.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Description
run_fact_check_pipeline in backend/app/utils/fact_check_utils.py never checks the status returned by run_fact_verifier_sdk:
final = run_fact_verifier_sdk(search_results)
return final.get("verifications", []), None
When the verifier fails, it returns {"status": "error", ...} with no verifications key. The pipeline turns that into ([], None). fact_check.py then sees no error and returns status: "success" with an empty fact list.
So a Groq error or rate limit during fact verification looks exactly like a successful check that found nothing. The user gets no sign that the check failed.
Note: the same pattern affects the claim-extraction check at the top of the function (if state.get("status") != "success" tests the input state, not result). Open PRs #148 and #150 already fix that part, so this issue covers only the verifier path.
Steps to Reproduce
- Make
run_claim_extractor_sdkreturn claims (any validverifiable_claimsstring). - Make
run_fact_verifier_sdkreturn{"status": "error", "error_from": "fact_verification", "message": "Groq rate limit"}. - Call
run_fact_check_pipeline(state).
The repro script is attached below. It stubs the Groq and search modules (see the note under Environment) but calls the real run_fact_check_pipeline.
Logs and Screenshots
== C: verifier fails (Groq error) after claims were found
error: None | facts: []
Expected: error is set, for example "Groq rate limit", so the route reports a failure rather than an empty success.
Environment Details
mainof AOSSIE-Org/Perspective,backend/app/utils/fact_check_utils.py, Python 3.12, Windows- My local environment blocked the pydantic_core DLL (Windows Application Control), so the repro stubs
app.modules.facts_check.llm_processingandweb_search. The pipeline function itself is unchanged.
Expected Behavior
If run_fact_verifier_sdk returns a non-success status, run_fact_check_pipeline returns that message as the error, and fact_check.py reports status: "error" with error_from: "fact_checking".
Impact
Medium. A transient LLM failure turns into a false "no facts found" success, which users can't tell apart from a real result.
Possible fix (for discussion)
if final.get("status") != "success":
return [], final.get("message", "Fact verification failed.")
Add a regression test where the verifier returns an error and the pipeline returns that error.
Checklist
- I searched existing issues and PRs for
verifier,rate limit,Groq errorandfact check empty. Nothing matched this bug. PRs #148 and #150 touch the claim-extraction check only.
AI disclosure: I used Claude (Anthropic) to help find this bug and write the reproduction script.
- Lingua principale
- TypeScript
- Stelle
- 58
- Fork
- 90
- Merge medio
- 11h 51m
- PR unite (30g)
- 3
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 AOSSIE-Org/Perspective
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
AOSSIE-Org/Perspective#190 ·
-
[BUG]: Missing input validation in URlRequest and ChatQuery causes 500 crashes and wasteful scraper executionForse già presa @agarwalpranav0711 l’ha presa 25 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/Perspective#178 ·
-
[BUG]: chunk_rag_data crashes with ValueError when perspective is a dict, silently dropping RAG vector storageForse già presa @agarwalpranav0711 l’ha presa 36 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
AOSSIE-Org/Perspective#175 ·
-
[BUG]: Scraper passes headers as query params in requests.get (User-Agent never sent)Forse già presa @Th-Shivam l’ha presa 50 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
AOSSIE-Org/Perspective#161 · 1 commento ·
-
docs: frontend/README.md is the default create-next-app boilerplateForse già presa @Th-Shivam l’ha presa 51 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
AOSSIE-Org/Perspective#159 · 1 commento ·
Tutte le issue di AOSSIE-Org/Perspective
Issue simili
-
documentation lens:human needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
thebristolsound/birdbrain#2246 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
A voting window past about 69.9 million hours stores a deadline that reads back as no deadlineApertabug ready-for-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
BoardGamesEmpire/board-games-empire-backend#1452 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue stretch
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno