cohere-ai/rcp
Python
Captured source
source ↗cohere-ai/rcp
Language: Python
License: Apache-2.0
Stars: 14
Forks: 1
Open issues: 5
Created: 2026-09-29T12:45:17Z
Pushed: 2026-11-14T04:31:02Z
Default branch: main
Fork: no
Archived: no
README:
RCP-nDCG
RCP-nDCG is nDCG (normalized discounted cumulative gain) with calibrated gains. A large language model (LLM) judge supplies those gains through its judgements, not through sparse human relevance labels. The judge orders the candidate pool of each query in a listwise tournament. Listwise means that the judge compares all documents of the pool as one list. The judge also answers five binary rubric criteria (yes/no quality checks) for each document. A two-parameter item-response model (2PL) then places the tournament scores of all queries on one scale. The gain of a document is its discrimination-weighted probability of passing the criteria. The paper, Rubric-Calibrated Preferences: Cross-Query Calibration of LLM Judgments via Item Response Theory, gives the method and its validation.
The four distributions
| Distribution | What it is | README | |---|---|---| | cohere-rcp | The pipeline and the command line: storage, data, retrieval, judging, calibration, evaluation, runs | [packages/rcp/README.md](packages/rcp/README.md) | | cohere-rcp-core | The metric: nDCG, the gains, the scoring protocols, the public records, the IRT (item response theory) estimators (numpy + pydantic) | [packages/rcp-core/README.md](packages/rcp-core/README.md) | | cohere-rcp-vllm | The lean serving package: the GPU-validated serving recipes and rcp-vllm serve | [packages/rcp-vllm/README.md](packages/rcp-vllm/README.md) | | rcp-test | The validation tooling (unpublished, [installed from a git subdirectory](packages/rcp-test/README.md)): reference cases, the conformance suite, the equivalence harness, the recorder, the verified emulators, the wave runner | [packages/rcp-test/README.md](packages/rcp-test/README.md) |
Install
pip install cohere-rcp # the pipeline and the CLI pip install "cohere-rcp[calibrate]" # + torch, for the IRT fits pip install cohere-rcp-vllm # serving recipes; resolves recipe: beside rcp
Documentation
The rendered pages are at the documentation site. The site shows the concepts, the how-to guides and the command line. It also holds the recipe catalog and the [compatibility and versioning policy](docs/reference/versioning.md). The pages are in docs/. mkdocs build --strict renders them. [The quickstart](docs/quickstart.md) is a 30-minute introduction from the install to a scored run. [CHANGELOG.md](CHANGELOG.md) states the public surface and the changes in 0.0.1. experiments/run_all.py reproduces the tables of the paper from the public data. [REPRODUCIBILITY.md](REPRODUCIBILITY.md) is the record. Contributors and coding agents change this repository under [AGENTS.md](AGENTS.md). [CITATION.cff](CITATION.cff) holds the paper reference.
License
Apache-2.0. Every distribution ships [LICENSE](LICENSE) and [NOTICE](NOTICE). Send security reports through [SECURITY.md](SECURITY.md) (GitHub private vulnerability reporting).