# Matter search test

Run on 29 November 2026 by SupaMakers.

- `matter_search_test.py` runs the whole test.
- `results.csv` shows how many qualifying matters each method found for each question.

## Data

The questions, documents and scoring rules come from the Firm Knowledge tasks in
[Harvey LAB](https://github.com/harveyai/harvey-labs), at commit
`55510f0e609ffa5cf6f5df17d9a813ce4bb33d0c`. Harvey LAB is published under the MIT
licence, (c) 2026 Harvey AI. Its documents are synthetic, and they aren't
included here. The task titles in `results.csv` come from Harvey LAB.

## What is scored

- The correct answers come from each task's rule listing the matters an answer
  may name. Matters marked as acceptable either way aren't counted.
- 136 of the 250 tasks have a rule in that format. The other 114 aren't scored.
- The question is used exactly as written. A matter ranks where its best document ranks.
- "Found" means a qualifying matter is in the first 10, 20 or 50 of 266 matters.

This is not a Harvey LAB score. There is no agent, no judge and no written answer.

## Methods

- **Keyword:** SQLite FTS5 (BM25 ranking) on the full text, folder and file name.
- **Embeddings:** `text-embedding-3-small` on the folder, file name and opening
  text, up to 6,000 characters in total for each document. Text after that isn't
  seen by this method.
- **Combined:** reciprocal rank fusion of the two lists, with a constant of 60.

No method was tuned for these questions.
