GitHub

Labs / interactive explorer

Retrieval Inspector

The same question can produce different evidence. Compare retrieval methods, then select a result to locate its passage in the source.

An offline demonstration with synthetic text and curated scores. Rank fusion is computed in your browser; no embeddings or model calls are made.

Sample question

The question paraphrases termination. Semantic retrieval brings clause 17 forward, while exact-term matches can favor passages that also mention the agreement ending.

Retrieved passages

Reciprocal rank fusion · computed from the two candidate lists · 3 candidates

Dense, sparse, and reranker scores are examples on different scales. Hybrid scores use Σ 1 / (60 + rank); they are not answer-confidence percentages.

Source document

Sample service agreement · synthetic text

  1. 1 · Services

    P.1

    The provider will deliver a monthly maintenance service and supply a written activity report after each service period.

  2. 4 · Payment

    P.1

    Invoices are payable within 30 days of receipt. Overdue balances may accrue a late payment charge.

  3. 12 · Confidentiality

    P.2

    Both parties must protect confidential information. This obligation continues after the agreement ends.

  4. 17 · Termination

    P.2

    Either party may terminate this agreement by giving 30 days of written notice. A material breach permits termination if it remains unresolved 14 days after written notice.

  5. 18 · Return of materials

    P.3

    When the agreement ends, the provider must return the client's materials and delete retained copies within 10 days.

    SELECTED EVIDENCE