{"record":{"id":"13a7a55134aa019a","repo":"n8n-io/n8n","slug":"no-examples-matched-filters-filtersummary-in","errorCode":null,"errorMessage":"No examples matched filters (${filterSummary}) in dataset \"${datasetName}\" (scanned ${scanned})","messagePattern":"No examples matched filters \\((.+?)\\) in dataset \"(.+?)\" \\(scanned (.+?)\\)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@n8n/ai-workflow-builder.ee/evaluations/harness/runner.ts","lineNumber":390,"sourceCode":"\n\tfor await (const example of lsClient.listExamples(listArgs)) {\n\t\tscanned++;\n\t\tif (filters && !exampleMatchesFilters(example, filters)) continue;\n\t\tmatches.push(example);\n\t\tif (maxExamples && matches.length >= maxExamples) break;\n\t}\n\n\tif (filters && matches.length === 0) {\n\t\tconst filterSummary = [\n\t\t\tfilters.notionId ? `id:${filters.notionId}` : undefined,\n\t\t\tfilters.technique ? `technique:${filters.technique}` : undefined,\n\t\t\tfilters.doSearch ? `do:${filters.doSearch}` : undefined,\n\t\t\tfilters.dontSearch ? `dont:${filters.dontSearch}` : undefined,\n\t\t]\n\t\t\t.filter((v): v is string => v !== undefined)\n\t\t\t.join(', ');\n\n\t\tthrow new Error(\n\t\t\t`No examples matched filters (${filterSummary}) in dataset \"${datasetName}\" (scanned ${scanned})`,\n\t\t);\n\t}\n\n\tif (!filters && maxExamples && matches.length === 0) {\n\t\tthrow new Error(`No examples found in dataset \"${datasetName}\"`);\n\t}\n\n\treturn matches;\n}\n\nasync function resolveLangsmithData(params: {\n\tdataset: string;\n\tlangsmithOptions: LangsmithRunConfig['langsmithOptions'];\n\tlsClient: {\n\t\treadDataset: (args: { datasetName: string }) => Promise<{ id: string }>;\n\t\tlistExamples: (args: { datasetId: string; limit?: number }) => AsyncIterable<Example>;\n\t};","sourceCodeStart":372,"sourceCodeEnd":408,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/ai-workflow-builder.ee/evaluations/harness/runner.ts#L372-L408","documentation":"After loading a local dataset and applying filters (by `notionId`, `technique`, `doSearch`, `dontSearch`), the harness found zero matching examples even though the dataset itself is non-empty. The message reports the active filter summary and how many examples were scanned, so the user can tell whether the filter is too narrow or simply wrong.","triggerScenarios":"Calling `resolveAndEnrichLangsmithData` (or the local-dataset equivalent) with a filter combination that no example satisfies — e.g. `--filter-technique chains` when no example is tagged `chains`, or a `--do-search` substring that matches nothing. `matches.length === 0` with `filters` set.","commonSituations":"Filter values copied from another dataset; case/whitespace mismatch (the comparison is exact substring on stored fields); a technique/id renamed in the dataset; combining multiple filters so nothing passes all of them.","solutions":["Relax the filter: drop the most restrictive clause and re-run to find which filter is excluding everything.","Verify the exact stored values (case, punctuation) in the dataset and align your filter flags to them.","Run once with no filters to confirm the dataset is non-empty and to see the available technique/id values."],"exampleFix":"// before\nrun --dataset mine --filter-technique chains --filter-do-search 'slack'\n// after (no examples tagged 'chains'; drop it)\nrun --dataset mine --filter-do-search 'slack'","handlingStrategy":"validation","validationCode":"// before running, confirm the filter will match at least one example\nfunction previewFilterMatch(dataset: Example[], filters: Filters): number {\n  return dataset.filter((e) => matchesFilters(e, filters)).length;\n}\nconst count = previewFilterMatch(localDataset, filters);\nif (count === 0) throw new Error(`filter matches 0 of ${localDataset.length} examples; relax filters`);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run the dataset once with no filters to learn the available technique/id values, then build filters from those.","Treat filters as case/whitespace-sensitive and document that.","Add a unit test against a fixture dataset that asserts your default filter set matches > 0."],"tags":["evaluations","dataset","filters","validation"],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}