Skip to content

Add native SMILES ingestion and queries with an isolated Tantivy scoring core - #2

Draft
xrl wants to merge 11 commits into
cheminee/tanimoto-pocfrom
cheminee/native-smiles-mapper
Draft

xrl wants to merge 11 commits into
cheminee/tanimoto-pocfrom
cheminee/native-smiles-mapper

Conversation

@xrl

@xrl xrl commented Oct 10, 2026 •

Copy link
Copy Markdown

Raw SMILES documents now derive versioned Morgan fingerprints inside Quickwit's document-mapping path. tantivy-rdkit owns the pure-Rust contract, packed bytes, schema helpers and similarity scoring. tantivy-rdkit-mapper owns native parsing, preparation, fingerprinting and Tantivy document fields through rdkit-rs. Quickwit-specific configuration and errors remain in its thin adapter. The typed SMILES endpoint prepares once at the root and distributes only packed fingerprints to scoring workers.

Stacked on open PR #1, base cheminee/tanimoto-poc at 7b0a2d57f0c69c0f494a808d23b4ed2171dfda44. Reviewed head: 427f1fb545c8dfa23d8143cbce0ed83356e61186. The latest changes integrate the prerequisite license, scorer-invariant and fork-compatible dependency-gate repairs. All updates are normal new commits. The binding pins open rdkit-rs/rdkit#57 at 0ae060c9cfc14626172070989fee890b16454373.

The native target is Ubuntu 26.04 with the existing S3 APT package 2026.09.1+ds1-1~ubuntu26.04. CI verifies all three package versions, origin and pinned checksums. Actual RDKit linkage is dynamic through .so.2026.09; only the CXX bridge archive is static. The scoring binary and quickwit-search dependency tree remain free of native RDKit.

The contract is Morgan radius 3, 2048 bits / 256 bytes, LSB0, no chirality/features, RDKit 2026.09.1 and sanitize-only-v1. Prepared canonical isomeric SMILES are stored. Missing/invalid molecules, incompatible contracts and caller-supplied derived fields fail explicitly. The ownership review confirmed that native molecule handles remain local owned values; only packed bytes and strings leave preparation.

The Ubuntu 26.04 all-feature Clippy failure came from krb5-src 0.3.4 and glibc 2.43's C23 string-search types. The compatibility wrapper applies the MIT Kerberos const-correctness fix to an isolated, checksum-verified source copy using Cargo's supported path override. GNU C17 handles the bundled RPC declarations; two stale Rust target conditions are corrected. The dependency graph, Cargo.lock, registry sources, all-feature coverage and warning checks remain intact. Local reproduction verified the original failure, the strict corrected build/Clippy result, and a negative control that still rejects const-discard errors. No explanatory code comments were added and required license notices remain intact.

Final-head verification is terminal:

  • Focused chemistry CI — passed. Core/native tests, 160 query tests, mapper/API tests, the complete OpenAPI registry, strict chemistry Clippy, and dependency/linkage checks passed. Both distributed modes passed 168 exhaustive score/count/ID checks and the 10,051-match top-1 case across eight splits. Raw mode ingested 620 source documents without external fingerprints; native-query parity, invalid ingestion and both generated-client success/error paths passed.
  • General CI — passed. Both build configurations, 2,865 unit tests passed / 6 skipped, REST tests, workspace all-feature Clippy, cargo deny/machete/doc, license headers, formatting, migration lint and third-party license checks passed.
  • DataFusion CI — passed.
  • Dependency comparison — passed. The reviewed fork-compatible RustSec gate blocks newly introduced vulnerable/unsound dependencies and retains inherited debt visibly, without advisory suppression or repository setting changes.

The earlier local test_concatenate_multiple_field ordering failure was reproduced on untouched PR #1. That test passes in the final-head general suite; no test assertions were weakened or skipped to obtain this result.

Architecture, native packaging and reproduction guide. Existing limits remain: preparation repeats during ingest validation and indexing; the installer pins amd64; canonical SMILES do not preserve arbitrary CXSMILES properties/conformers. Exact graph search, a custom physical column, broader chemical types, large-scale benchmarks, deployment and release are outside scope. The PR remains a draft; no merge or release was performed.

xrl added 9 commits October 10, 2026 19:56
Backport MIT Kerberos ad4dcf1856dadc4b352b5c8ff08e51c7290fb41f to an isolated, checksum-verified krb5-src 0.3.4 source through Cargo's paths override. Select GNU C17 for the bundled RPC declarations, retain all native warning flags and the complete all-features lint invocation, and leave the registry and lockfile unchanged.
Correct the bundled build script's obsolete target OS conditions without disabling unexpected-cfg diagnostics, and use zero-context hunks against the checksum-pinned archive. The strict Ubuntu 26.04 dependency build succeeds with all original C warning flags.
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