An internal company chatbot over handbook pages, SEC filings and spreadsheets. Each user only retrieves documents their role is allowed to see, and the eval suite proves it.
There's no private company dataset, so the "company" is GitLab, which publishes its internal handbook and files public financial reports. The full corpus definition, with pinned versions, is in configs/data_sources.yaml.
| Source | What | Role(s) that can see it |
|---|---|---|
| GitLab Handbook | 270 pages sampled from six department folders plus company-wide pages, pinned to commit 322e725a (2026-10-22) |
the matching department; company-wide pages go to every role |
| SEC EDGAR | 10-K for fiscal 2026 (period ending 2026-01-31) and 10-Q for Q2 fiscal 2027 (period ending 2026-07-31) | finance |
| Synthetic XLSX | budget_fy2027, headcount_fy2027, vendor_spend_fy2027; fictional numbers generated with a fixed seed |
finance |
| Everything above | c_level |
Handbook folder → role mapping:
| Role | Handbook folders | Pages |
|---|---|---|
| engineering | engineering/ |
50 |
| hr | people-group/, total-rewards/, hiring/, people-policies/ |
45 |
| marketing | marketing/ |
40 |
| legal | legal/ |
35 |
| sales | sales/ |
40 |
| finance | finance/ |
30 |
| all roles | company/, values/, communication/ |
30 |
All of this content is public. The role boundaries are the ones the demo enforces, not real confidentiality, and the RBAC tests check that the boundaries hold.
uv sync
uv run playwright install chromium # renders the SEC filings to PDF
export SEC_USER_AGENT="Your Name you@example.com" # required by EDGAR's fair-access policy
uv run enterprise-rag fetch-data # or --only handbook|sec|syntheticThis writes the files to data/raw/ (git-ignored) and writes data/raw/manifest.jsonl, with one row per document and its allowed_roles. Re-running with the same config gives the same handbook sample and the same spreadsheets.
- Golden set (ours): hand-written Q&A pairs with gold source passages and the asking role. It covers in-role questions, cross-role questions (which should be refused), out-of-scope questions and injection attempts. It's split into dev and test sets.
- FinanceBench (optional): the 150-question open sample. It covers 32 other companies and no GitLab, so it runs against its own collection and is reported separately.
- GitLab Handbook content © GitLab Inc., licensed under CC BY-SA 4.0. Source: https://gitlab.com/gitlab-com/content-sites/handbook (commit
322e725aa43e37884fdc7aeb27f1e822a696a656). We sample and chunk pages but don't edit their text. Any redistributed handbook text, including processed chunks, stays under CC BY-SA 4.0. This project isn't affiliated with or endorsed by GitLab Inc. - SEC filings are GitLab Inc.'s public filings, taken from SEC EDGAR (CIK 0001653482). The filings aren't stored in this repo; the ingestion step downloads them.
- Synthetic spreadsheets are fictional numbers generated by this project. They aren't GitLab data.
- FinanceBench (if enabled) is © Patronus AI, licensed under CC BY-NC 4.0. It's used only for non-commercial evaluation.