tinyqa-1-moss / README.md
RysoAI's picture
Clean package: terminal code only, neutral names, no comments
da32fba verified
|
Raw History Blame Contribute Delete
9.65 kB
---
license: apache-2.0
language:
- en
library_name: sentence-transformers
pipeline_tag: question-answering
tags:
- question-answering
- retrieval
- cross-encoder
- verification
- citations
- edge
- cpu
- offline
base_model:
- cross-encoder/ms-marco-MiniLM-L6-v2
- cross-encoder/ms-marco-MiniLM-L12-v2
model-index:
- name: RysoAI TinyQA-1 Moss
results:
- task: {type: question-answering, name: Open-book question answering}
dataset: {type: google/simpleqa-verified, name: SimpleQA Verified, split: eval}
metrics:
- {type: f1, value: 77.1, name: F-score (open-book, DuckDuckGo)}
- {type: accuracy, value: 71.3, name: Correct (open-book, DuckDuckGo)}
---
# RysoAI TinyQA-1 Moss
**A tiny but powerful 89M-parameter question-answering model.**
Moss is a retrieval question-answering system built to be as small as possible while still answering at a high standard.
It reads search results or a local collection of documents, selects the text that states the answer, checks and verifies
it, and returns the exact quote, the short answer and its source in a readable format. Every answer carries its
verification result, so an unverified answer is always clearly marked.
## 1. General information
Moss can be used anywhere a question needs a sourced answer. It was initially designed for two settings:
- **Minimal hardware.** Small enough for single-board computers and other constrained devices, with very little
inference cost. It can run fully offline against a local corpus, or over an intranet, where a large language model
is not practical.
- **Retrieval at scale.** At about a quarter of a second of compute per question on a laptop CPU, Moss can gather and
verify large volumes of facts cheaply. We use it to collect millions of data points of evidence for our larger
forecasting models, which we benchmark publicly on ForecastBench ([ryso.ai](https://ryso.ai)).
It also works well alongside larger models: Moss gathers and verifies information with almost no inference, and the
sourced results can be passed to a large language model to reason over.
| | |
|---|---|
| Model provider | RysoAI |
| Release date | November 2026 |
| Languages | English |
| License | Apache 2.0 |
## 2. Getting started
```bash
./moss.sh setup # Python 3.11 environment with pinned dependencies
./moss.sh start # loads the models in the background
./moss.sh ask "Who designed the Missouri Centennial half dollar?"
```
```
The Missouri Centennial half dollar was designed by Robert Aitken, who is best known for designing the Panama Pacific Exposition fifty dollar gold commemoratives.
“The coin was designed by Robert Aitken, who is best known for designing the Panama Pacific Exposition fifty dollar gold commemoratives.” (stated by 3 sources)
https://www.your-rare-coin-collecting-guide.com/missouri-centennial.html
```
**Local documents.** Index any folder of `.txt` or `.md` files, or a `.jsonl` file of `{"title", "text"}` records, and
ask questions with no network connection:
```bash
./moss.sh index ~/Documents/field-manuals
./moss.sh start
./moss.sh ask --local "How long should water be boiled to make it safe?"
```
**Search.** Web search uses DuckDuckGo by default and needs no key. Add `SERPER_API_KEY=...` to a `.env` file beside
`moss.sh` to use Google results and verifier-gated retries.
**Answer line.** Install [llama.cpp](https://github.com/ggml-org/llama.cpp) (`brew install llama.cpp`) and the 113M
models write a one-sentence answer around the verified quote. Without it, a template is used. The quote is always shown.
## 3. Model properties
**Architecture.** A pipeline of small transformer encoders, each with one job, plus optional 113M decoders for the
written answer line.
| component | role | parameters | file |
|---|---|---|---|
| Ranker | orders candidate sentences by relevance to the question | 22M | `models/ranker` |
| Verifier | scores whether a sentence states the answer; this score is the confidence | 33M | `models/verifier` |
| Reader | marks the exact answer span inside the chosen sentence | 33M | `deepset/minilm-uncased-squad2`, fetched at run time |
| Verbaliser (optional) | writes the answer line using only words already on the page | 113M | `gguf/tinyqa-1-moss-verbaliser-Q8_0.gguf` |
| Glue decoder (optional) | fallback answer-line writer | 113M | `gguf/tinyqa-1-moss-glue-Q8_0.gguf` |
| Planner (optional) | rewrites queries for retries and supplies answer frames | 113M | `gguf/tinyqa-1-moss-planner-Q8_0.gguf` |
**Parameters.** 89M for the core answering path (ranker, verifier, reader), 429M with all three optional decoders.
**Input.** A natural-language question in English.
**Output.** One verified sentence quoted verbatim from a source, the short answer span within it, the source link, a
verified or not-verified flag, and the number of independent sources that agree. Optionally, a one-line written answer.
**Verification.** An answer is marked verified when the verifier scores it at 1.5 or above, or when three independent
sources state the same short answer and the verifier does not score against it. Unverified results are labelled as such
and never presented as the answer.
**Hardware.** CPU only; no GPU needed. The core encoders take about 360 MB in fp32, and each optional decoder is 117 MB at
Q8. Search time dominates latency on the web; with a local corpus, a full answer takes a few hundred milliseconds.
## 4. Training
The ranker and verifier are fine-tuned from public MS MARCO cross-encoders. The 113M decoders were pretrained from
scratch on public educational web text and then fine-tuned. Training data was drawn from publicly available sources and
synthetically generated, then filtered and deduplicated.
No benchmark questions were used in training. The verifier's training questions also exclude every subject that appears
in the benchmarks, and websites that host the benchmarks were excluded as sources in the benchmark runs.
## 5. Evaluations
All results use the official SimpleQA grader prompt with `gpt-4.1-2025-04-14` on the full benchmark sets.
**Moss is evaluated open-book.** It answers from retrieved text, exactly as it runs in use. The frontier models it is
compared with below are evaluated **closed-book**, answering from memory alone. The comparison shows what a very small
retrieval system can reach against much larger models; it is not a like-for-like test of the same setting.
### SimpleQA Verified (1,000 questions)
| system | setting | parameters | score |
|---|---|---|---|
| Gemini 3.1 Pro Preview | closed-book | undisclosed | 77.5 |
| **RysoAI TinyQA-1 Moss** (F-score) | **open-book, DuckDuckGo** | **89M** | **77.1** |
| GPT-6 Astra | closed-book | undisclosed | 75.8 |
| Gemini 4 Argon | closed-book | undisclosed | 75.6 |
| Gemini 3.8 Flash | closed-book | undisclosed | 74.6 |
| **RysoAI TinyQA-1 Moss** (F-score) | **open-book, Google** | **89M** | **74.0** |
| GPT-6.1 Sol | closed-book | undisclosed | 73.8 |
| Gemini 3 Pro Preview | closed-book | undisclosed | 72.1 |
| GPT-5.6 Sol | closed-book | undisclosed | 69.2 |
| Claude Opus 5 | closed-book | undisclosed | 63.3 |
| Claude Opus 4.6 | closed-book | undisclosed | 45.2 |
Closed-book scores are from the public [SimpleQA Verified leaderboard](https://www.kaggle.com/benchmarks/deepmind/simpleqa-verified)
(snapshot of 19 November 2026). The leaderboard reports a single score; the benchmark paper's headline metric is F-score.
### Detailed results
| benchmark | search | correct | incorrect | not attempted | precision when answering | F-score |
|---|---|---|---|---|---|---|
| SimpleQA Verified | DuckDuckGo | 71.3 | 13.7 | 15.0 | 83.9 | 77.1 |
| SimpleQA Verified, verified answers only | DuckDuckGo | 60.9 | 6.2 | 32.9 | **90.8** | 72.9 |
| SimpleQA Verified | Google | 69.6 | 18.6 | 11.8 | 78.9 | 74.0 |
| SimpleQA Verified, verified answers only | Google | 59.2 | 7.5 | 33.3 | 88.8 | 71.0 |
| PopQA, 1,000 least-popular subjects | Google | 47.4 | 48.5 | 4.1 | 49.4 | 48.4 |
| PopQA, verified answers only | Google | 42.1 | 23.6 | 34.3 | 64.1 | 50.8 |
| FreshQA, 600 | Google | 39.5 | 52.3 | 8.2 | 43.0 | 41.2 |
| FreshQA, verified answers only | Google | 30.8 | 20.2 | 49.0 | 60.5 | 40.8 |
"Verified answers only" counts every answer Moss does not verify as not attempted. That is how Moss behaves when told to
answer only when sure. The graded answer is the short answer followed by the quoted sentence, as Moss displays it. FreshQA
gold answers date from August 2025, so its fast-changing questions are partly out of date against the live web.
Summaries of every graded run are in `results/`.
## 6. Limitations
- Moss answers questions whose answer is stated in a single sentence of the retrieved text. Questions that need
arithmetic, comparison or combining facts from several sources are outside its scope.
- Its accuracy follows the quality of what it retrieves. A verified quote reflects what the source says.
- Results above are for web search, where engines return passages already focused on the question. Local collections
are searched with a built-in keyword index.
- English only.
## 7. License
Code and weights in this repository are released under the Apache 2.0 license. The reader model,
[deepset/minilm-uncased-squad2](https://huggingface.co/deepset/minilm-uncased-squad2), is licensed CC-BY-4.0 and is
downloaded from its own repository at run time. See `NOTICE.md` for full attributions.
## Citation
```bibtex
@misc{ryso_tinyqa1_moss_2026,
title = {RysoAI TinyQA-1 Moss},
author = {{RysoAI}},
year = {2026},
url = {https://ryso.ai}
}
```