File size: 3,529 Bytes
fd280c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
license: mit
language:
- en
tags:
- text-retrieval
- edge-ai
- onnx
- openvino
- intel-neural-compute-stick
---

![BankShot Search, Rack Lab's green six ball](./banner.png)

# BankShot Search

**v0.1.0-preview 路 Research release**

BankShot retrieves source references for vehicle recalls, manufacturing safety and Frigate recorder support. The model package includes CPU ONNX and FP16 IR for the original Intel Neural Compute Stick. The host handles tokenization, lexical retrieval, and result assembly. The physical NCS1 runs the learned scorer and rerankers.

[Run a search](https://huggingface.co/spaces/racklab/BankShot-Search) 路 [The Break Room](https://huggingface.co/spaces/racklab/The-Break-Room) 路 [Package checksums](./release.json)

| Development selection | Top-ten matches | NCS1 p95 |
|---|---:|---:|
| Dealership | 147/151 | 28.1 ms |
| Manufacturing | 25/25 | 15.6 ms |
| Store security | 23/24 | 13.0 ms |

These are matched development measurements on the published 10,000-document catalog. The same candidate on CPU matched 198/200 physical target ranks and had lower p95 in all three verticals on the measured host. Independent release acceptance remains pending. The development abstention policy did not qualify. General prose can return weak matches.

## Labeled examples

| Example | Intended reference | Physical NCS1 result |
|---|---|---|
| Lockout during servicing | OSHA 29 CFR 1910.147 | Rank 1 |
| Exposed rotating lathe chuck | OSHA 29 CFR 1910.212 | Outside top 10 |
| Blocked stockroom exit | OSHA 29 CFR 1910.37 | Rank 2 |
| Honda Ridgeline blower connector | NHTSA campaign 10V001000 | Rank 1 |
| Missing camera recordings | Frigate recording troubleshooting | Rank 1 |

[Case labels and source links](./examples/cases.json) 路 [Physical NCS1 trace](./examples/ncs1-results.json) 路 [CPU trace](./examples/cpu-results.json) 路 [Comparison data](./measurements/development-comparison.json)

## Run locally

Run from the downloaded repository root with Python 3.11 or newer for CPU.

```sh
python -m pip install numpy scipy onnxruntime
python runtime/bankshot.py catalog manufacturing "A lathe's rotating chuck was exposed" --backend cpu --dealership-ranker heads/vehicle --residuals heads/sections
python runtime/bankshot_field_replay.py catalog heads/vehicle examples/cases.json replay.json --backend cpu --residuals heads/sections
```

For physical Windows NCS1, use the installed Python 3.7 and Intel OpenVINO 2020.3.2 Windows runtime with a compatible NumPy and SciPy. Set `BANKSHOT_NCS1_ROOT` to the tool directory containing `ov2020` and `redist`. Attach one cold original stick with USB ID `03E7:2150` and run the same commands with `--backend ncs1`. The CPU and device use the same retrieval contract. [Intel runtime compatibility](https://www.intel.com/content/www/us/en/support/articles/000091265/software.html) 路 [Original toolchain setup](https://github.com/chadstthomas-svg/myriadforge)

## Sources and licenses

The project code and original artifacts use MIT. The catalog preserves public NHTSA and GovInfo source references and MIT-licensed Frigate documentation. The frozen source versions are in [catalog provenance](./catalog/freeze.json) and the Frigate notice is [included](./catalog/FRIGATE-LICENSE). The dense student uses BGE-small training references, and the two 481-parameter section heads use MiniLM teacher scores. [BGE-small](https://huggingface.co/BAAI/bge-small-en-v1.5) 路 [MiniLM reranker](https://huggingface.co/cross-encoder/ms-marco-MiniLM-L6-v2)