AI Demos Research — the structured-intelligence platform. Every verdict on these pages opens to the execution behind it.
Graded 13 November 2026

Does Dify keep retrieval scoped to part of the documents?

Dify kept the Nordic-only search within scope and left out the UK document holding the answer. The search still returned relevant passages rather than an empty result.

1 of 1 test case passed

Every test case in this scenario has a result.

Pass rate100%1 of 1 gradable
Coverage1 of 1test case with a result
1PassDid everything it was expected to do.
0FailNo test case failed.
0Not gradableEvery result here could be graded.
0UntestedEvery test case in this scenario has a result.
The pass rate is a summary. The evidence is the test case below: what we sent, what we checked, what the tool returned, and the proof.

The test case

Each test case is judged on its own: Pass, Fail, Not gradable, or Untested. The scenario result above is based on this test case.

Search restricted to the subset that does not hold the answerPassEvidence
What we sent

Input 1 · No filter: “Which depot holds the Tolvan A3 loan pool?”

Input 2 · Nordic documents only: “Which depot holds the Tolvan A3 loan pool?”

What the tool returned

Unfiltered comparison: answering document ranked first

  1. 1A05_depot_and_commissioning_note.mdnot in the other run
    score 0.6684579
    Loan stock
    
    The Bristol depot holds the Tolvan A3 loan pool: six calibrated units reserved for Critical cover customers. A loan unit goes out configured for the customer's deployment, with a current certificate in the case, so that it can be rigged without a bench check.
    
    Loan units are issued against a signed loan note naming the ticket, the serial number that went out and the serial number it stands in for. The stores controller counts loan stock on the first working day of each month.
  2. 2A06_nordic_service_addendum.docx
    score 0.58130497
    It is staffed by two engineers and a stores controller.
    2.1 What the depot holds
    | Item | Held at Bergen | Note |
    | --- | --- | --- |
    | Brannoc loan pool | Two units | Issued against a signed loan note |
    | Tolvan C5 spares kit | One full kit | Pressure housings, o-ring sets, end caps |
    | Consumables | Rolling stock | Anodes, guards, gland kits |
    | Deck cable, armoured | 300 m drum | Cut to length on request |
    Loan pool stock is counted on the first working day of each month and the count is
  3. 3A06_nordic_service_addendum.docx
    score 0.5471708
    A discrepancy is investigated before the next issue.
    3. Requesting a loan unit
    3.1 Who to call
    Loan requests from customers in the region are met from the Bergen depot. Ring the depot rather than raising a stores request in the system: the stores queue is worked from the workshop and adds a day to anything that could have been handed over the counter.
    3.2 What can be lent
    The Bergen loan pool covers the Brannoc telemetry gateway.
  4. 4A06_nordic_service_addendum.docx
    score 0.4760967
    Do not promise a loan unit before the depot has confirmed one is free.
    3.3 The loan note
    Every loan is recorded on a signed loan note carrying the ticket number, the serial number issued and the date it is due back. Ten working days is the standard loan period, counted from the day the customer's own instrument is returned to service.
Show as JSON
JSON
{
  "query": {
    "content": "Which depot holds the Tolvan A3 loan pool?"
  },
  "records": [
    {
      "segment": {
        "id": "88e0b989-ebbd-4e0b-8cd4-8df720785d37",
        "position": 2,
        "document_id": "e04044ec-990a-4bf1-9908-34be00b3fa17",
        "content": "Loan stock\n\nThe Bristol depot holds the Tolvan A3 loan pool: six calibrated units reserved for Critical cover customers. A loan unit goes out configured for the customer's deployment, with a current certificate in the case, so that it can be rigged without a bench check.\n\nLoan units are issued against a signed loan note naming the ticket, the serial number that went out and the serial number it stands in for. The stores controller counts loan stock on the first working day of each month.",
        "sign_content": null,
        "answer": null,
        "word_count": 492,
        "tokens": 98,
        "keywords": [],
        "index_node_id": "ce83fe20-d2ed-41d6-9972-936032be3dc8",
        "index_node_hash": "c3b68857aa7ffd658a7455d5a31393ef7a04915cb015f43e0c48767eb6236575",
        "hit_count": 0,
        "enabled": true,
        "disabled_at": null,
        "disabled_by": null,
        "status": "completed",
        "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad",
        "created_at": 1789752857,
        "indexing_at": 1789752858,
        "completed_at": 1789752862,
        "error": null,
        "stopped_at": null,
        "document": {
          "id": "e04044ec-990a-4bf1-9908-34be00b3fa17",
          "data_source_type": "upload_file",
          "name": "A05_depot_and_commissioning_note.md",
          "doc_type": null,
          "doc_metadata": {
            "region": "uk"
          }
        }
      },
      "child_chunks": [],
      "score": 0.6684579,
      "tsne_position": null,
      "files": [],
      "summary": null
    },
    {
      "segment": {
        "id": "59078397-6b5b-4f5b-bdcd-1542940cd036",
        "position": 3,
        "document_id": "070eb1de-ba43-41f1-b156-010719634ab1",
        "content": "It is staffed by two engineers and a stores controller.\n2.1 What the depot holds\n| Item | Held at Bergen | Note |\n| --- | --- | --- |\n| Brannoc loan pool | Two units | Issued against a signed loan note |\n| Tolvan C5 spares kit | One full kit | Pressure housings, o-ring sets, end caps |\n| Consumables | Rolling stock | Anodes, guards, gland kits |\n| Deck cable, armoured | 300 m drum | Cut to length on request |\nLoan pool stock is counted on the first working day of each month and the count is",
        "sign_content": null,
        "answer": null,
        "word_count": 495,
        "tokens": 128,
        "keywords": [],
        "index_node_id": "b115b4cc-bd8d-42b1-892e-ac1f4d7c5fae",
        "index_node_hash": "63248e37125e7085d7f225386f9cf3c78951ad6fcfc326e30332cc02506de03d",
        "hit_count": 0,
        "enabled": true,
        "disabled_at": null,
        "disabled_by": null,
        "status": "completed",
        "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad",
        "created_at": 1789752863,
        "indexing_at": 1789752864,
        "completed_at": 1789752868,
        "error": null,
        "stopped_at": null,
        "document": {
          "id": "070eb1de-ba43-41f1-b156-010719634ab1",
          "data_source_type": "upload_file",
          "name": "A06_nordic_service_addendum.docx",
          "doc_type": null,
          "doc_metadata": {
            "region": "nordic"
          }
        }
      },
      "child_chunks": [],
      "score": 0.58130497,
      "tsne_position": null,
      "files": [],
      "summary": null
    },
    {
      "segment": {
        "id": "8cb4af5d-ac21-45ce-ba2e-79fd6d35cf7d",
        "position": 5,
        "document_id": "070eb1de-ba43-41f1-b156-010719634ab1",
        "content": "A discrepancy is investigated before the next issue.\n3. Requesting a loan unit\n3.1 Who to call\nLoan requests from customers in the region are met from the Bergen depot. Ring the depot rather than raising a stores request in the system: the stores queue is worked from the workshop and adds a day to anything that could have been handed over the counter.\n3.2 What can be lent\nThe Bergen loan pool covers the Brannoc telemetry gateway.",
        "sign_content": null,
        "answer": null,
        "word_count": 433,
        "tokens": 94,
        "keywords": [],
        "index_node_id": "07701125-edb3-4ae0-995d-6cba7f599e86",
        "index_node_hash": "40f883f223d9996c3bbc6dc4959ca23860e33150990765812723408ed76c57df",
        "hit_count": 0,
        "enabled": true,
        "disabled_at": null,
        "disabled_by": null,
        "status": "completed",
        "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad",
        "created_at": 1789752863,
        "indexing_at": 1789752864,
        "completed_at": 1789752868,
        "error": null,
        "stopped_at": null,
        "document": {
          "id": "070eb1de-ba43-41f1-b156-010719634ab1",
          "data_source_type": "upload_file",
          "name": "A06_nordic_service_addendum.docx",
          "doc_type": null,
          "doc_metadata": {
            "region": "nordic"
          }
        }
      },
      "child_chunks": [],
      "score": 0.5471708,
      "tsne_position": null,
      "files": [],
      "summary": null
    },
    {
      "segment": {
        "id": "66c66a83-2341-466e-8202-ad92e3e6d65e",
        "position": 7,
        "document_id": "070eb1de-ba43-41f1-b156-010719634ab1",
        "content": "Do not promise a loan unit before the depot has confirmed one is free.\n3.3 The loan note\nEvery loan is recorded on a signed loan note carrying the ticket number, the serial number issued and the date it is due back. Ten working days is the standard loan period, counted from the day the customer's own instrument is returned to service.",
        "sign_content": null,
        "answer": null,
        "word_count": 336,
        "tokens": 71,
        "keywords": [],
        "index_node_id": "9fe2b51d-7945-4e57-9f0f-236dadff01a6",
        "index_node_hash": "bcc020f2c67da4a26c3d8b2e0b3007a203eed241d453a64c49875f0db21d1c75",
        "hit_count": 0,
        "enabled": true,
        "disabled_at": null,
        "disabled_by": null,
        "status": "completed",
        "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad",
        "created_at": 1789752863,
        "indexing_at": 1789752864,
        "completed_at": 1789752868,
        "error": null,
        "stopped_at": null,
        "document": {
          "id": "070eb1de-ba43-41f1-b156-010719634ab1",
          "data_source_type": "upload_file",
          "name": "A06_nordic_service_addendum.docx",
          "doc_type": null,
          "doc_metadata": {
            "region": "nordic"
          }
        }
      },
      "child_chunks": [],
      "score": 0.4760967,
      "tsne_position": null,
      "files": [],
      "summary": null
    }
  ]
}

API log: full requests and retrieval results, without a filter and restricted to Nordic documents

Copied from Output file (text), lines 10–176

Open the text file ↗

Nordic-only search: answering document excludedthe result graded

  1. 1A06_nordic_service_addendum.docx
    score 0.58130497
    It is staffed by two engineers and a stores controller.
    2.1 What the depot holds
    | Item | Held at Bergen | Note |
    | --- | --- | --- |
    | Brannoc loan pool | Two units | Issued against a signed loan note |
    | Tolvan C5 spares kit | One full kit | Pressure housings, o-ring sets, end caps |
    | Consumables | Rolling stock | Anodes, guards, gland kits |
    | Deck cable, armoured | 300 m drum | Cut to length on request |
    Loan pool stock is counted on the first working day of each month and the count is
  2. 2A06_nordic_service_addendum.docx
    score 0.5471708
    A discrepancy is investigated before the next issue.
    3. Requesting a loan unit
    3.1 Who to call
    Loan requests from customers in the region are met from the Bergen depot. Ring the depot rather than raising a stores request in the system: the stores queue is worked from the workshop and adds a day to anything that could have been handed over the counter.
    3.2 What can be lent
    The Bergen loan pool covers the Brannoc telemetry gateway.
  3. 3A06_nordic_service_addendum.docx
    score 0.4760967
    Do not promise a loan unit before the depot has confirmed one is free.
    3.3 The loan note
    Every loan is recorded on a signed loan note carrying the ticket number, the serial number issued and the date it is due back. Ten working days is the standard loan period, counted from the day the customer's own instrument is returned to service.
  4. 4A06_nordic_service_addendum.docx
    score 0.4024182
    An overdue loan is chased by the stores controller at ten and at twenty working days, and after that by the service desk lead.
    3.4 Condition on return
    A returned loan unit is inspected, cleaned and re-certified before it goes back into the pool. A unit returned with a broken calibration seal is treated as damaged, quoted for repair, and does not go back into the pool until the laboratory has passed it.
    4.
Show as JSON
JSON
{
  "query": {
    "content": "Which depot holds the Tolvan A3 loan pool?"
  },
  "records": [
    {
      "segment": {
        "id": "59078397-6b5b-4f5b-bdcd-1542940cd036",
        "position": 3,
        "document_id": "070eb1de-ba43-41f1-b156-010719634ab1",
        "content": "It is staffed by two engineers and a stores controller.\n2.1 What the depot holds\n| Item | Held at Bergen | Note |\n| --- | --- | --- |\n| Brannoc loan pool | Two units | Issued against a signed loan note |\n| Tolvan C5 spares kit | One full kit | Pressure housings, o-ring sets, end caps |\n| Consumables | Rolling stock | Anodes, guards, gland kits |\n| Deck cable, armoured | 300 m drum | Cut to length on request |\nLoan pool stock is counted on the first working day of each month and the count is",
        "sign_content": null,
        "answer": null,
        "word_count": 495,
        "tokens": 128,
        "keywords": [],
        "index_node_id": "b115b4cc-bd8d-42b1-892e-ac1f4d7c5fae",
        "index_node_hash": "63248e37125e7085d7f225386f9cf3c78951ad6fcfc326e30332cc02506de03d",
        "hit_count": 0,
        "enabled": true,
        "disabled_at": null,
        "disabled_by": null,
        "status": "completed",
        "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad",
        "created_at": 1789752863,
        "indexing_at": 1789752864,
        "completed_at": 1789752868,
        "error": null,
        "stopped_at": null,
        "document": {
          "id": "070eb1de-ba43-41f1-b156-010719634ab1",
          "data_source_type": "upload_file",
          "name": "A06_nordic_service_addendum.docx",
          "doc_type": null,
          "doc_metadata": {
            "region": "nordic"
          }
        }
      },
      "child_chunks": [],
      "score": 0.58130497,
      "tsne_position": null,
      "files": [],
      "summary": null
    },
    {
      "segment": {
        "id": "8cb4af5d-ac21-45ce-ba2e-79fd6d35cf7d",
        "position": 5,
        "document_id": "070eb1de-ba43-41f1-b156-010719634ab1",
        "content": "A discrepancy is investigated before the next issue.\n3. Requesting a loan unit\n3.1 Who to call\nLoan requests from customers in the region are met from the Bergen depot. Ring the depot rather than raising a stores request in the system: the stores queue is worked from the workshop and adds a day to anything that could have been handed over the counter.\n3.2 What can be lent\nThe Bergen loan pool covers the Brannoc telemetry gateway.",
        "sign_content": null,
        "answer": null,
        "word_count": 433,
        "tokens": 94,
        "keywords": [],
        "index_node_id": "07701125-edb3-4ae0-995d-6cba7f599e86",
        "index_node_hash": "40f883f223d9996c3bbc6dc4959ca23860e33150990765812723408ed76c57df",
        "hit_count": 0,
        "enabled": true,
        "disabled_at": null,
        "disabled_by": null,
        "status": "completed",
        "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad",
        "created_at": 1789752863,
        "indexing_at": 1789752864,
        "completed_at": 1789752868,
        "error": null,
        "stopped_at": null,
        "document": {
          "id": "070eb1de-ba43-41f1-b156-010719634ab1",
          "data_source_type": "upload_file",
          "name": "A06_nordic_service_addendum.docx",
          "doc_type": null,
          "doc_metadata": {
            "region": "nordic"
          }
        }
      },
      "child_chunks": [],
      "score": 0.5471708,
      "tsne_position": null,
      "files": [],
      "summary": null
    },
    {
      "segment": {
        "id": "66c66a83-2341-466e-8202-ad92e3e6d65e",
        "position": 7,
        "document_id": "070eb1de-ba43-41f1-b156-010719634ab1",
        "content": "Do not promise a loan unit before the depot has confirmed one is free.\n3.3 The loan note\nEvery loan is recorded on a signed loan note carrying the ticket number, the serial number issued and the date it is due back. Ten working days is the standard loan period, counted from the day the customer's own instrument is returned to service.",
        "sign_content": null,
        "answer": null,
        "word_count": 336,
        "tokens": 71,
        "keywords": [],
        "index_node_id": "9fe2b51d-7945-4e57-9f0f-236dadff01a6",
        "index_node_hash": "bcc020f2c67da4a26c3d8b2e0b3007a203eed241d453a64c49875f0db21d1c75",
        "hit_count": 0,
        "enabled": true,
        "disabled_at": null,
        "disabled_by": null,
        "status": "completed",
        "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad",
        "created_at": 1789752863,
        "indexing_at": 1789752864,
        "completed_at": 1789752868,
        "error": null,
        "stopped_at": null,
        "document": {
          "id": "070eb1de-ba43-41f1-b156-010719634ab1",
          "data_source_type": "upload_file",
          "name": "A06_nordic_service_addendum.docx",
          "doc_type": null,
          "doc_metadata": {
            "region": "nordic"
          }
        }
      },
      "child_chunks": [],
      "score": 0.4760967,
      "tsne_position": null,
      "files": [],
      "summary": null
    },
    {
      "segment": {
        "id": "6149aabf-9cdb-4235-ab0c-c48c01fd5d07",
        "position": 8,
        "document_id": "070eb1de-ba43-41f1-b156-010719634ab1",
        "content": "An overdue loan is chased by the stores controller at ten and at twenty working days, and after that by the service desk lead.\n3.4 Condition on return\nA returned loan unit is inspected, cleaned and re-certified before it goes back into the pool. A unit returned with a broken calibration seal is treated as damaged, quoted for repair, and does not go back into the pool until the laboratory has passed it.\n4.",
        "sign_content": null,
        "answer": null,
        "word_count": 408,
        "tokens": 87,
        "keywords": [],
        "index_node_id": "e53b6c50-d15f-4830-8604-e0c48d907ffa",
        "index_node_hash": "f8cc6103f5548c98003c2efccf2e43d80d49fbe05f1b81a0d5c1e5c1c0595579",
        "hit_count": 0,
        "enabled": true,
        "disabled_at": null,
        "disabled_by": null,
        "status": "completed",
        "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad",
        "created_at": 1789752863,
        "indexing_at": 1789752864,
        "completed_at": 1789752868,
        "error": null,
        "stopped_at": null,
        "document": {
          "id": "070eb1de-ba43-41f1-b156-010719634ab1",
          "data_source_type": "upload_file",
          "name": "A06_nordic_service_addendum.docx",
          "doc_type": null,
          "doc_metadata": {
            "region": "nordic"
          }
        }
      },
      "child_chunks": [],
      "score": 0.4024182,
      "tsne_position": null,
      "files": [],
      "summary": null
    }
  ]
}

Copied from Output file (text), lines 203–369

Open the text file ↗
Expected vs. Found
✓Expected: The scoped search must exclude the document containing the answer.Found: Without a filter, the depot and commissioning note ranked first. The Nordic-only search excluded it and returned four passages from the Nordic service addendum.
Supporting proof
Proof 1Screenshot
Notebook screenshot: the two retrieval requests and their ranked document lists
Open original ↗
Why this result

The comparison search retrieved the answering document first; the restricted search omitted it and returned plausible alternatives. That meets the requirement to exclude the answer-bearing document, without mistaking an empty subset for successful filtering.

Also observed in this test case

Filtering before the result limit. Dify brought the Nordic service addendum’s overdue-loans and returns passage into fourth place at 0.4024182. It filtered before selecting the top four, rather than removing excluded hits afterwards.

Tested by Vivek Tomar · evidence dated 21 September 2026

Configuration and setup

How this tool was set up for the run and what the test needed in place. Each row is a fact from the run's records; a fact the records do not hold is left out, not guessed.

Software that produced the output
Dify
Build or version
Not captured in this run
Surface
API
Set up before the run
For the Tolvan A3 loan-pool question, the answer, Bristol depot, had to be in the UK subset alone. The Nordic subset needed plausible loan-related documents, and retrieval had to be restricted to that subset.
Retrieval
semantic search · reranking off · 4 results · no score threshold · Nordic region only
Tested
21 September 2026 · Vivek Tomar

How this scenario is graded

How we decide Pass, Fail and Not gradable. The same rules apply to every tool tested on this scenario.

How results are decided

Each test case gets one result per tool: Pass, Fail or Not gradable. A test case we haven't run yet shows Untested. There are no partial results.

The rules
  • Pass: the tool did everything the test expected, and nothing it said contradicts the correct answer.
  • Fail: at least one expected behaviour clearly didn't happen; the test case's result says which one and quotes the tool.
  • Not gradable: our evidence couldn't settle the outcome (for example a record we needed is missing). It is never counted as a fail, and the test case's result says what's missing.

Where this sits in the benchmark

This page is one cell of a larger study: one tool, one scenario. Only this benchmark's frame appears here.

LevelNameScope
BenchmarkManaged RAG →15 scenarios · 9 tools
CapabilityRetrieval →
ScenarioRetrieval is scoped to part of the documents →
ToolDify →

History of this result

What has happened to this result since it was first published. Runs and grades are never overwritten: a retest or a re-grade publishes a new result and keeps the earlier one readable.

from the publication record
29 October 2026First publishedManaged RAG v1
29 October 2026Taken down
The page left the site; nothing was deleted.
25 November 2026RepublishedCurrent edition

Act on this result

Nothing filed here edits the run or the grade. A challenge opens a review, and a review can produce a new run or a re-grade — which becomes the current result and leaves this one in the history.

This matches what I see

You run the same kind of test against your own setup and get the same behaviour.

Agree →
This does not match

Yours behaves differently. Tell us what you got, with a screenshot if you have one.

Disagree →
Point out an issue

Something here is wrong — a reference value, a transcription, a grade.

Report an issue →
Request a retest

On a newer build, a larger dataset, or your own setup.

Request a retest →
We have fixed this

Tell us what changed and we schedule a rerun of the failing test case. The old result stays as history.

Vendor notice →
Filed against this evidenceNothing yet. Challenges, counter-evidence and fix notices appear here with their outcome, and stay on the page after they are resolved.
Cite this result
aidemos.com/benchmarks/managed-rag/results/dify/document-scoped-retrieval · 1 pass · 0 fail · coverage 1/1 · graded 2026-11-13

The same record is available as structured data through the AI Demos MCP server, with the counts, the coverage and every per-test-case reason carried as fields.

Verify the proof files

These files support this result. Open a file to inspect the original evidence.

Output file (text) ↗text/plain; charset=utf-8 · 14 KB
Proof 1 · Screenshot ↗image/png · 309 KB
File fingerprints (SHA-256)

A fingerprint identifies the exact file used for this result.

Output file (text)9a4a558ac9195c6ca176b543ecc0ed7b1d037ebc092c09a1435041234caa48b6
Proof 1 · Screenshotff77c0fb765b11c0fe1f2e27811fab451380d68434bcedde632fbbf68550fcaf