Skip to content

Prototype exact worker-local Morgan/Tanimoto search and typed API - #1

Open
xrl wants to merge 3 commits into
cheminee/base-0.9.1from
cheminee/tanimoto-poc
Open

xrl wants to merge 3 commits into
cheminee/base-0.9.1from
cheminee/tanimoto-poc

Conversation

@xrl

@xrl xrl commented Oct 9, 2026 •

Copy link
Copy Markdown

Cheminee's exact Morgan/Tanimoto predicate now runs inside Quickwit split workers, allowing distributed top-k merging without the former capped candidate collection. The private tantivy-rdkit crate owns the versioned 2048-bit format and scorer; query AST, bytes fast-field warmup, fail-closed split handling and a typed OpenAPI endpoint connect it to the engine. A generated Python client exercises success and error responses.

Base: cheminee/base-0.9.1 at upstream release 962685f5a334f6c9d8516d2d7c1fdd08891b687c. Reviewed head: 7b0a2d57f0c69c0f494a808d23b4ed2171dfda44. The final changes restore required license headers, use the reviewed fork-compatible RustSec comparison gate without advisory suppression, and make the scorer's validated cardinality invariant explicit.

Exact-head validation

  • General CI: passed; 2,862 unit tests passed, 6 skipped; REST, build, workspace lint and policy checks passed.
  • Chemistry CI: passed.
  • DataFusion CI: passed.
  • Dependency comparison: passed. This comparison blocks newly introduced vulnerable/unsound dependencies; inherited debt remains visible.

Independent source review found no remaining substantive blocker in this PR's bounded scorer/API scope. No merge or release has occurred.

Evidence and limits

The distributed fixture verifies exhaustive score/count/ID parity and a 10,051-match top-1 case without truncating the total. Malformed stored fingerprints fail closed; invalid inputs and incompatible preparation fail explicitly. See the assessment and reproduction guide and retained measurements.

This PR accepts supplied fingerprints; native SMILES preparation is in stacked PR #2. The scorer scans the fingerprint dictionary and document cardinality per segment. Broad-query RAM/CPU economics, representative 100k kind/object-store acceptance, replay-safe catalog refresh, crash/WAL recovery, HA and RX API compatibility are separate qualification gates. Small unoptimized local timings are not production benchmarks.

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