Skip to content

docs: rewrite README around a concrete quickstart and an Errors section - #12

Merged
TheGreatAxios merged 5 commits into
cl-9321-reranking-export-requestdependencies-used-by-rerankoptionsfrom
cl-9172-reranking-rewrite-readme-quickstart-to-rank-concrete-docs
Sep 27, 2026
Merged

TheGreatAxios merged 5 commits into
cl-9321-reranking-export-requestdependencies-used-by-rerankoptionsfrom
cl-9172-reranking-rewrite-readme-quickstart-to-rank-concrete-docs

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Verification

  • Each commit passes bun install --frozen-lockfile, tsc, lint, bun test ./src (19 tests), prettier --check . and build.
  • The README ts snippets typecheck against the built dist.
  • bun run test:e2e passes against a TEI container (bge-reranker-base); CI does not run it.

Closes CL-9172
Closes CL-9181
Closes CL-9182
Closes CL-9185

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review: diff checked against ticket outcomes; independent critique pass run, findings on README wording, registry example and CONTRIBUTING commands fixed. Typecheck, tests, prettier and build pass.

@TheGreatAxios
TheGreatAxios force-pushed the cl-9172-reranking-rewrite-readme-quickstart-to-rank-concrete-docs branch from 17a3ca0 to 0c49b77 Compare September 25, 2026 14:09
@TheGreatAxios
TheGreatAxios force-pushed the cl-9172-reranking-rewrite-readme-quickstart-to-rank-concrete-docs branch from 0c49b77 to 8a293f4 Compare September 25, 2026 14:16
@TheGreatAxios
TheGreatAxios force-pushed the cl-9172-reranking-rewrite-readme-quickstart-to-rank-concrete-docs branch from 8a293f4 to 6ec8d91 Compare September 25, 2026 17:32
@TheGreatAxios
TheGreatAxios changed the base branch from cl-9155-reranking-replace-spread-built-request-options-with-explicit to cl-9321-reranking-export-requestdependencies-used-by-rerankoptions September 25, 2026 17:32
@TheGreatAxios TheGreatAxios changed the title Rewrite README around a concrete quickstart and Errors section Rewrite the README and release 0.2.0 Sep 25, 2026
@TheGreatAxios
TheGreatAxios force-pushed the cl-9172-reranking-rewrite-readme-quickstart-to-rank-concrete-docs branch from 6ec8d91 to a353dbb Compare September 25, 2026 22:53
@TheGreatAxios TheGreatAxios changed the title Rewrite the README and release 0.2.0 Rewrite the README, move e2e to e2e/, release 0.2.0 Sep 25, 2026
@TheGreatAxios
TheGreatAxios force-pushed the cl-9172-reranking-rewrite-readme-quickstart-to-rank-concrete-docs branch from a353dbb to e9baf2c Compare September 26, 2026 00:37
@TheGreatAxios
TheGreatAxios force-pushed the cl-9172-reranking-rewrite-readme-quickstart-to-rank-concrete-docs branch from e9baf2c to 7881bd6 Compare September 26, 2026 01:30
The quickstart ranks three literal documents against TEI and shows the
output. How it works keeps the apiStyle table, custom registry usage and
the index mapping. A new Errors section documents RerankRequestError.
Runtime support and development commands move to CONTRIBUTING.md.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9172-reranking-rewrite-readme-quickstart-to-rank-concrete-docs branch from 7881bd6 to 7254150 Compare September 26, 2026 01:30
@TheGreatAxios TheGreatAxios changed the title Rewrite the README, move e2e to e2e/, release 0.2.0 docs: rewrite README around a concrete quickstart and an Errors section Sep 26, 2026
@TheGreatAxios
TheGreatAxios added this pull request to stack #15 September 26, 2026 01:59
@TheGreatAxios
TheGreatAxios force-pushed the cl-9172-reranking-rewrite-readme-quickstart-to-rank-concrete-docs branch from 7254150 to e52fb02 Compare September 26, 2026 02:22
Unit tests stay colocated in src/ for the load-bearing logic: wire
formats, retry and Retry-After parsing, protocol-mismatch errors and
registry isolation. Drop the global-fetch default test; it only checked
default wiring, which the TEI e2e suite also exercises when run.
Breaking changes:
- @intx/inference and @intx/types (^0.4.0) are peer dependencies;
  install them alongside.
- ModelRequestError is now RerankRequestError; match on err.reason
  (InferenceError).
- runJSONRequest, extractRetryAfterMs, RunRequestOptions and
  rerankAdapters are no longer exported. Use rerankAdapterRegistry or
  createRerankAdapterRegistry.
- A missing model for cohere/voyage throws arktype's TraversalError.

RerankConfig and wire behavior are unchanged, so existing configs keep
working.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9172-reranking-rewrite-readme-quickstart-to-rank-concrete-docs branch from e52fb02 to b3019fc Compare September 26, 2026 02:29
@TheGreatAxios
TheGreatAxios merged commit 536f7c1 into main Sep 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant