Hallucination Claim Extractor and Source Mapper

Paste a chatbot answer and the documents it should rest on, and get a claim-by-claim check sheet showing which statements your sources back up and which they contradict.

ทำงานในเบราว์เซอร์ของคุณ ไฟล์ไม่ออกจากอุปกรณ์ ดูวิธีตรวจสอบ

…

วิธีทำ

  1. 1
    Paste the answer

    Paste the AI answer you want to check, or open it from a text file.

  2. 2
    Paste the sources

    Paste the passages the answer should rely on, one source per block.

  3. 3
    Add meaning match

    Optionally load the small embedding model to catch paraphrased claims.

  4. 4
    Read the sheet

    Go through the colour-coded answer and the list, starting with contradicted claims.

  5. 5
    Decide

    Read each matched passage and tap a label to confirm or correct the automatic one.

  6. 6
    Export

    Download the check sheet CSV with claims, labels, passages and reasons.

เกี่ยวกับเครื่องมือนี้

Language models write fluent text whether or not each statement is true, and a single wrong number buried in a good paragraph is easy to miss. Fact-checking research such as FActScore handles this by breaking an answer into atomic claims and checking each one against a trusted source, instead of judging the answer as a whole. This tool does the first pass of that work in your browser. It splits the answer into sentences and clauses, sets aside greetings, filler and opinions, and labels the rest as facts, numbers or hedged statements. Your sources, pasted as text with one source per block, are cut into short passages. For every claim the tool finds the passage that shares the most meaning, then compares them: matching numbers and enough shared content mean supported, partial overlap means partly supported, nothing close means unsupported, and a near match with a different number, a flipped negation or an opposite direction word such as rise against fall means contradicted. You can add a small sentence-embedding model to catch paraphrases, override any label with one tap, and export the whole check sheet as CSV for a reviewer or an audit trail.

How claims are found

Answers are split at sentence ends, at semicolons and at clause joins such as a comma followed by and or but when a new subject starts. List markers are removed first so each bullet becomes a sentence. Questions are skipped. Short openers such as Sure or Here is a summary are marked as filler, sentences with I think, best or you should are marked as opinion or advice, and words such as might, about or approximately mark a hedged claim, which is still checked.

How matching works

Without the model, similarity is the share of the claim's content words, after removing common words and simple endings, that appear in the passage, with a small bonus when the passage is focused. Each source is cut into single sentences and pairs of sentences, so a fact spread over two sentences can still match. With the model loaded, all-MiniLM-L6-v2 turns every claim and passage into a 384-number vector, and cosine similarity is blended with the word score, which lifts paraphrases such as completed and built.

How contradictions are spotted

When a passage is close enough to be about the same thing, three checks run. Numbers with units are normalised and compared: 7 million against 6 million is a contradiction. A claim and passage where only one is negated with not, no or never are flagged. Opposite direction words, such as increase and decrease, before and after, or larger and smaller, are flagged too. The reasons are written next to each claim.

Limits

This is a triage tool, not a verdict. Word and embedding similarity cannot tell whether the source itself is right, cannot follow reasoning across several passages, and can miss a contradiction phrased without numbers or negation. A claim can also be true while your sources simply do not cover it. Treat unsupported and contradicted as items to read, and keep the final decision with a person.

ตัวอย่างพร้อมวิธีทำ

An assistant writes five sentences about the Eiffel Tower. The check sheet sets aside Sure and Here is a quick summary as filler and I think it is the most beautiful landmark in Europe as opinion. Completed in 1889, 330 metres including antennas, tallest until 1930, and painted every 7 years with 60 tonnes of paint are supported by the official site, with matches between 66 and 100 percent. About 7 million people visit it every year is contradicted because the encyclopedia passage says around 6 million, and The tower was designed by Gustave Eiffel himself is contradicted because the closest passage says not by Gustave Eiffel personally. The tally reads 4 supported, 2 contradicted, 3 not claims.

สรุปสั้น ๆ

คำถามที่พบบ่อย

How should I format my sources?

Paste them as plain text. Separate sources with a line of three dashes, or start each with a line such as Source 2: Encyclopedia entry or a Markdown heading, so the sheet can name the source of each match.

Do I need the AI model?

No. Word matching works on its own and is instant. The model, about 23 MB, helps when the answer paraphrases the source with different words; it is downloaded only after you click.

Can it check facts against the web?

No. It compares the answer with the sources you paste and nothing else, which is also how retrieval-augmented systems should be checked: against the documents they were given.

What do the thresholds do?

Supported at sets the match needed for a supported label, and Unsupported below sets where a claim counts as having no matching source. Raise the first for stricter checks on short sources.

Can I change a label?

Yes. Tap supported, partly, unsupported or contradicted under any claim to set your own decision; the CSV keeps both your label and the automatic one.

Is any text uploaded?

No. Text stays in your browser. With the model on, only the model files are downloaded from the Hugging Face CDN and then cached by your browser.

ฟรีทั้งหมดไม่มีค่าใช้จ่าย ไม่ต้องสมัคร
ไฟล์เป็นส่วนตัวทุกอย่างทำงานในเบราว์เซอร์ของคุณ
ใช้ง่ายในภาษาของคุณมีหลายภาษา