# Search your docs and notes. See the source.

> Search your notes, Office files, PDFs and the documentation of the libraries you use. Each result names the file, the line and whether the file changed since. Runs on your machine.

Every result says where it came from.

Library indexes the Markdown, text, Office documents (`.docx`, `.pptx`, `.xlsx`, `.xls`, `.ods`) and PDF files you allow, plus the documentation of the libraries your project uses. Your agent gets back the file, line, SHA-256 and whether it changed since.

[Index your docs](#start) · [Read the numbers](#quality)

runs on your machine · French and English

## What every citation guarantees

### Exact path, heading & line

Every snippet returns the repository-relative path, section heading, page number and start line so agents jump straight to context.

### SHA-256 & revision

Carries the cryptographic hash of the exact indexed bytes alongside a monotonic revision counter for every file.

### Live staleness check

Reports `current`, `stale` (modified since indexing) or `missing_or_unreadable` right in the MCP payload.

### Read-only & audited

Agents can query and fetch only allowlisted roots—never modify source files—with every call appended to a tamper-evident audit log.

An example answer with two documents from Footnote Library, one marked current and one marked changed since

## Local folders, bundles & stack docs

Index any local folder offline with `footnote corpora index ./docs` (or use the Launcher to index folders and import read-only `.db` / `.fnbundle` corpora). Want dependency docs? `footnote docs ingest --project .` (and automatic stack prompts via `footnote docs auto`) indexes your project's libraries, most-used first — or switch on strict offline mode with `library.crawler_enabled = false` to block every outbound crawl and live fetch. Safe cleanup via `footnote corpora prune --missing` drops only confirmed-gone registrations while keeping unplugged drives (`Unreadable`) untouched.

Streaming docs ingest timeline on 8 libraries (507 pages, CPU, 20 Nov 2026): first search usable at 5.9 s, all 8 libraries keyword-searchable at 44.1 s, background embedding finished at 567.5 s

### Global vector cache 26.5k chunks/s

Normalized SHA-256 caching in `embed-cache.db` skips re-encoding unchanged docs across worktrees and framework upgrades while excluding personal and encrypted stores.

Measured chunk reuse via normalized content cache: 100% across matching worktrees at 23.6k to 26.5k chunks/s, 60.8% across Django 5.0 to 5.1, 44.2% average across Sphinx upgrades, 30.3% overall across 5 repos

### Optional Vulkan GPU add-on ~85 chunks/s

Discrete Vulkan GPUs can enable opt-in bulk embedding (`ggml-vulkan.dll`) directly in the Launcher without inflating the default CPU-only installer. Measured at **83.8–85.0 chunks/s** warm (`166 MiB` VRAM) on a Radeon RX 6800 (`jina-v5-nano`).

Prebuilt remote docs bundles: CLI command exists; none are hosted yet.

Footnote Library versus Grounded Docs 3.4.1 (20 Nov 2026 sealed protocol, 2 Sphinx sites, 40 questions): Scrapy crawl 10.1 s vs 160.6 s (15.9x faster), pytest crawl 7.6 s vs 121.8 s (16.0x faster, 200 vs 95 pages stored), median query 1.15 s vs 1.83 s (-37%)

| Check (20 Nov 2026) | Footnote | Grounded Docs 3.4.1 | Outcome & scope |
|---|---|---|---|
| Scrapy crawl + index (L6) | 10.1 s | 160.6 s | 15.9× faster |
| pytest crawl + index (L6) | 7.6 s | 121.8 s | 16.0× faster · 200 vs 95 pages |
| Median query (40 q, L6) | 1.15 s | 1.83 s | −37 % latency · 2 Sphinx sites |
| nDCG@5 (sealed 40 q, L7) | 0.768 | 0.721 | inconclusive · 95% CI [−0.054, +0.155] |
| nDCG@5 (earlier 59 q, L7) | 0.564 | 0.635 | Footnote scored lower |

## Retrieval quality (L1 & L2)

nDCG@10 on official held-out test splits through the shipped binary over MCP (`bekko-a8m` + `gte-small` default pair, 14 Nov 2026 baseline with all 12/12 French comparisons re-verified 25 Nov 2026). Higher is better.

| Corpus | Footnote | mem0 | ICM | Cognee |
|---|---|---|---|---|
| Mixed FR + EN · 3,039 q | 0.489 | 0.343 (+42 %) | 0.342 (+43 %) | failed |
| Alloprof, French · 2,316 q | 0.478 | 0.360 (+33 %) | 0.333 (+44 %) | 0.305 (+57 %) |
| Syntec, French · 100 q | 0.795 | 0.745 (+7 %) | 0.657 (+21 %) | 0.700 (+14 %) |
| SciFact, English · 300 q | 0.747 | 0.729 (tie) | 0.664 (+12 %) | 0.719 (+4 %) |
| NFCorpus, English · 323 q | 0.368 | 0.357 (tie) | 0.307 (+20 %) | 0.338 (+9 %) |

25 Nov 2026 post-`#681` re-check: Syntec FR `0.7952` (exact keep), Alloprof FR `0.4735` (all 12/12 French comparisons remained significantly in Footnote's favor; BEIR EN re-check blocked by upstream server timeout). BEIR published BM25 references: `0.665` SciFact, `0.325` NFCorpus.

### Optional GGUF / ONNX embedding candidates

| Model | Mixed FR+EN | French | English | Encode / Search p95 |
|---|---|---|---|---|
| `bekko-a8m + gte-small` (default ONNX) | 0.489 | 0.473 / 0.795 | 0.747 | 17 ms enc / 42 ms search |
| `jina-v5-nano` (Q8_0 GGUF) | 0.572 (+0.083) | 0.578 (+0.103) | — | 69 ms search |
| `jina-v5-small` (Q8_0 GGUF) | 0.579 (+0.080) | 0.589 (+0.100) | — | 98 ms enc |
| `embeddinggemma-300m` (ONNX / GGUF) | 0.562 (+0.063) | — | 0.786 (+0.040) | 61 ms enc |

Where Footnote loses (L5 index build time, 14 Nov 2026): SciFact Footnote 280 s vs mem0 162 s; FR+EN mix Footnote 712 s vs mem0 336 s; ICM builds 6 to 7 times faster

**French elision & caveats (LIB-45, 25 Nov 2026):** Stripping 13 French elision prefixes before English stemming (`footnote_subword_v2`) raised Alloprof FR lexical nDCG@10 `0.3261 → 0.3442` (`+0.0181`) and mix-fr-en `0.3454 → 0.3578` (`+0.0124`) while keeping English and code identifiers bit-exact. Caveats: mem0 ran without LLM extraction, Cognee on its chunk index, ICM keyword-only; public test sets may overlap upstream model training data.

## Engine speed (LIB-44, LIB-46, INF-21, INF-26, INF-30, L3)

Native document extraction and SIMD/parallel vector scans removed Python subprocess spawns from Office and digital PDFs and cut dense vector latency across 50k–250k chunks.

Engine latency before and after native optimization (lower is faster): Office docs 74 ms Python subprocess to 0.02 ms Rust; digital PDF 153 ms Python subprocess to 0.53-0.71 ms PDFium (212x to 282x faster); AVX2 768d 50k scan 10.66 ms to 3.21 ms (3.33x faster); Parallel 768d 250k scan 12.88 ms to 4.95 ms (2.61x faster); 24-corpus warm recall 363 ms to 100 ms

| Scale check | Size | Latency | Note |
|---|---|---|---|
| MCP hybrid query (L3, real queries) | 5,183 chunks | 20 ms p50 | Real corpus vectors |
| MCP hybrid query (L3, random vectors) | 40,018 chunks | 45 ms p50 | Speed only (not precision) |
| MCP hybrid query (L3, random vectors) | 100,044 chunks | 52 ms p50 | p95 79 ms · speed only |
| Tantivy lexical vs SQLite FTS5 (L4) | 1,000,000 synthetic docs | 3.0 ms vs 423 ms | Synthetic speed-only comparison |

## Limits

- Lexical analysis strips 13 French elision prefixes then runs English stemming (`footnote_subword_v2`); full Snowball French stemming was tested and rejected because it over-stemmed French suffixes and regressed English SciFact recall.
- Precision has not been measured at 100,000 chunks (L3 uses random vectors at 40k/100k for speed only).
- Office formats (`.docx`, `.pptx`, `.xlsx`, `.xls`, `.ods`) extract purely in Rust; digital PDFs extract natively when a `pdfium` shared library is present and fall back to Python + `rapidocr-onnxruntime` on scanned pages or diagrams (`< 80` chars or `>= 25%` image area).
- Meaning-based search uses the two local models (~200 MB). Without them you still get exact keyword search.

## Index your docs.

You need Footnote installed first: see [install](https://footnote-alpha.johanproust.workers.dev/index.md#install).

### Your folders

Index a local folder offline and register it cleanly.

```sh
footnote corpora index ./docs
```

### Your stack

Index the docs of the libraries this project imports.

```sh
footnote docs ingest --project .
```

---

Page: https://footnote-alpha.johanproust.workers.dev/library
Source: https://footnote-alpha.johanproust.workers.dev/llms.txt lists every page.
