Skip to content

Add full native Cheminee preparation and distributed chemistry search - #3

Draft
xrl wants to merge 7 commits into
cheminee/native-smiles-mapperfrom
cheminee/distributed-graph-search
Draft

xrl wants to merge 7 commits into
cheminee/native-smiles-mapperfrom
cheminee/distributed-graph-search

Conversation

@xrl

@xrl xrl commented Oct 11, 2026 •

Copy link
Copy Markdown

Cheminee's native descriptor_v1 preparation runs inside the Quickwit engine: normalized SMILES, 43 numeric descriptors, Pattern/Morgan fingerprints, scaffolds and learned clusters. The bounded preparation cache, raw WAL/replay behavior and timeout handling remain part of this change. Flat and nested descriptor layouts are supported; layout changes require reindexing.

Stack: PR #2 (cheminee/native-smiles-mapper) → this PR → PR #6. Current head: ca2d6923364225b016e66ef9b8517c90c90dd183. October 23 prerequisite CI repairs were propagated through normal merge commits.

Merge blocked: the now-functional dependency audit reports four introduced advisory matches: protobuf 2.27.1 (RUSTSEC-2024-0437) and ZIP 0.6.6 (RUSTSEC-2026-0367/0368/0369), against RustSec 640bf5a9f06e66d8721e8772766531fe77c8630d. The former disabled-Dependency-Graph check did not establish safety. These findings are not suppressed; PR #6's delta against this PR does not clear them.

Historical native 100k MOSES validation, chemistry parity and local-file benchmarks are retained in the controlled-study report. They do not establish a current-head kind/object-store/Ruby lifecycle test. Existing exact-head implementation CI at 6bf1e29c passed general, chemistry and DataFusion lanes; new-head implementation CI remains separate.

The requested real 100k+ integration test is unrun. The local Docker VFS filesystem has approximately 647 MiB free, below even a 1 GiB reserve. Kind/kubectl, a verified current native runtime image and corpus bytes are missing. The catalog example is limited to 10k and lacks native preparation, requiring a proper bounded audit and chemistry contract before claiming end-to-end suitability. No mock object store substitutes for that test.

Conditional merging is authorized only once gates pass. Production qualification, crash/WAL recovery, HA, publication and deployment remain separate; none is claimed here.

xrl commented Oct 11, 2026

Copy link
Copy Markdown
Author

Final single-node study: 100,000 MOSES molecules

Fresh final-head comparison completed at 681733774139d965c89f81cc8a8cb58d572ff674. Both engines accepted 100,000 / rejected 0, and full stored-document audits found 100,000 unique IDs, zero missing IDs, and zero content mismatches. The full fixed schema, native preparation, fingerprint bytes, metadata, and sampled query results were checked. This is a workload-specific engineering study, with important differences in schema requirements, indexing policies, approximation, exhaustive counts, and result caching disclosed below.

  • Full-schema indexing: Cheminee took 573.92 seconds including settle; Quickwit took 1,762.90 seconds including its required 466.12-second external preparation and settle. CPU was 2,012.77 versus 2,875.07 core-seconds. The service-only Quickwit number excludes substantial required work and is not the end-to-end comparison.
  • Memory: active indexing sampled peak RSS was 2,761.38 MiB for Cheminee and 283.74 MiB for the Quickwit service, but Quickwit's separate preparation stage peaked around 2.29 GiB. Loaded restart idle RSS was 139.06 versus 69.20 MiB; post-query recovery was 416.92 versus 123.22 MiB. These are resident memory measurements, not allocator allocation.
  • Disk: settled allocated engine directories were 168.93 versus 404.57 MiB. Quickwit's one published split was only 44.42 MiB, but obsolete splits, cache and WAL are real local costs; an additional 194.82 MiB prepared-input staging file is required by this harness. Cheminee had 300 committed segments plus 72.19 MiB of unreferenced/temporary files. Different merge geometry and codecs preclude attributing the difference solely to compression.
  • New query versus repeated query: Quickwit's first graph keys cost 14.889–16.268 seconds (stable ID) and first exact similarity keys cost 2.685–3.186 seconds. Repeated identical requests were usually milliseconds with result caching. Cheminee default similarity was around 150–165 ms warm, but measured full-threshold recall included 54/123, 2/5, and 3/8 at threshold 0.3. These are not equal-recall latency comparisons.
  • Bounded failures: Cheminee's first exhaustive 100%-cluster similarity query timed out at 60 seconds. Quickwit rejected the non-fast NumHeavyAtoms range with HTTP 400 under the matched schema. Both failures are retained; no unrelated application fixes were made. All 197 default-mode Cheminee recorded requests and 206 successful Quickwit requests passed post-hoc validation; the 207th Quickwit request is that explicit unsupported range.

Ingestion defect, narrowly authorized correction, and final-head checks

The original head 7ff976b4a2c500ef3db18554eb0363a295bcdf5b failed a four-request, 1,000-documents/request reproduction: the client submitted each request exactly once, but request four returned HTTP 500 after ~30 seconds and the index contained 8,000 rows / 4,000 unique IDs. IDs 3001–4000 appeared five times. Server work outlived the router's six-second per-attempt timeout because of OneTaskPerCallLayer; the router replayed the still-running persist operation. There is no durable DocUID deduplication to make that replay safe.

Following the user's separate authorization to correct this blocker only, commit 6817337 was appended normally to PR3. It uses one shared persistence deadline, retains in-flight work instead of recreating it after a timeout, and makes ambiguous timeout outcomes terminal for the request. Publication waiting remains separate. This is not an exactly-once guarantee: client retries or other transport-error paths can still have uncertain outcomes. No chemistry preparation optimization, query fix, schema patch, merge, deployment, force-push, or repository-setting change was made.

Three paused-clock regression tests fail on the old head and pass on the correction, including a lost-ack case that previously appended 15 IDs instead of three. The fixed native 4,000-row reproduction returned four HTTP 200 responses (12.989 / 12.944 / 11.950 / 13.954 seconds), then a restart audit found 4,000 unique rows and zero mismatches. The fresh 100k comparison also passed complete audits.

Local final gates: 176 ingest tests passed, one existing ignored; strict Clippy, formatting and release build passed. An earlier existing test_ingester_close_shards short-timeout flake passed targeted retry and the full four-thread rerun; it was not patched. Final-head CI: Chemistry, general CI, and DataFusion succeeded. Dependency review failed because the repository does not support dependency review / dependency graph; settings were left unchanged. PR3's head was reverified as 681733774139d965c89f81cc8a8cb58d572ff674 before posting.

Methods and scope

This is a measurement of the available single-node interfaces with a matched molecular/document contract, not a general ranking of the products. The original PR head was 7ff976b4a2c500ef3db18554eb0363a295bcdf5b. The fresh comparison uses corrective head 681733774139d965c89f81cc8a8cb58d572ff674 (tree 1a43d59d474faadc4db1c89775d99b86cbdd3de8), stacked on PR2 at 6a12f7ef7ad85269007a03cd2503dc829a267f67. The only application change made during the study was the separately authorized ingestion timeout/replay correction. Cheminee application source remains unchanged at f8d31a604203392f4dfba7d9a84120100b8426b5; both use rdkit-rs bindings 0ae060c9cfc14626172070989fee890b16454373.

Both release binaries ran sequentially in the same Ubuntu 26.04 container, image digest sha256:f144425ff09be612d6d9ad965196e9cdc23dae1f42110a8a11a3e9a8198759f7, on an Intel Xeon Platinum 8573C host, Linux 6.18.44. The container had a four-core CPU quota, five visible CPUs, a 14 GiB memory limit within a 16 GiB parent, and no host swap. Rust was 1.96.1. Storage was local workspace-backed container storage: Cheminee local Tantivy directories; Quickwit all required roles in one process with file:// metastore/index storage. There were no remote S3 accesses in measured engine operations, distributed workers, simultaneous engine runs, builds during measured phases, cache drops, or kernel/security-setting changes. This is shared virtualized hardware, not dedicated bare-metal storage.

Dynamic linkage was verified against the same homemade RDKit 2026.09.1+ds1-1~ubuntu26.04 packages. SHA-256: development package 47d7dcb895a4983093ccb85407ad0908a6b7c68405147f951a9a72fabf29405d; runtime 13b43cf87b53bf290a0a5f17c6ce299d8672817d6ff38150d419d16f040b3705; data 40a47d0c1ad5f90797db0d833bac9b0dc05c2f5914eec1aaa381c68e341bbe0c. Cheminee used an isolated dependency override/lock for those bindings; its application source was not edited. Quickwit used the existing committed Kerberos/C23 build wrapper. Its binary banner has no embedded Git revision, so provenance is pinned by the clean checkout, build log, and binary SHA-256 manifest.

Cheminee and the common preparation exporter used TensorFlow CPU 2.15.1, from a publisher-verified wheel, because the default 2.13 download returned HTTP 403. This is a material reproducibility qualification. TensorFlow wheel SHA-256: 54660c074d7241a503e81edfd9f5ef5af88f64051b72e2945f26318c790f2d26. The unchanged cheminee-similarity-model 0.1.6 assets were recorded: model archive 264d7b3af776382dc98e12b1e7c111e76b99a3714ca71acf427bfe63536b26d5, centroids 5cf1ede6d2193dccd6b552dcce51b49c12cf69b28589e9f98c18311230edec65. No TensorFlow cost was silently omitted from the full-schema Quickwit ingestion path.

Corpus and preparation

The sample was obtained and verified locally during this study. It is not an assumed reuse of an unavailable earlier artifact. Publisher MOSES files from molsets==0.3.1 match Git LFS objects at MOSES commit dd7ed6ab38e23afd3ef5371d67939a1760bd8599: 1,584,663 training, 176,074 test, and 176,225 scaffold-test molecules, totaling 1,936,962 distinct source SMILES. Wheel SHA-256: 7f4450e3ebecebe79c3a2a55950c93daddee071120daf64a163d03481e811d34.

Ordering is SHA256(b'tantivy-rdkit-compression-v1\0' + SMILES), with source-set and one-based source-row tie-breakers; take the first N valid molecules. No molecules were duplicated to increase scale. The 100,000-row input is 22,021,752 bytes, SHA-256 bcd62363cb784827752de27f361f6081056c99a7d636749f182e7b3cecc08e6a, with 81,777 train / 9,165 test / 9,058 scaffold-test rows. Stable IDs are 1..N. Each document has the original SMILES and consistent JSON metadata: record ID, catalog, source set/row, supplier, assay batch (id % 20), and availability (id % 5 != 0). MOSES is a leadlike, curated chemical-space sample; these results do not cover arbitrary salts, malformed input, large polymers, or broad stereochemical diversity.

A 1,000,000-row input was also generated and verified, 222,218,179 bytes, SHA-256 e061a71fcec19ba37ff9ab3324665819639ac6a5798e0f38fddc1d40297830d8, with the exact 100k prefix. It was not indexed or benchmarked. Completing and auditing the 100k study took priority after the ingestion defect and rerun; no 1M throughput or memory extrapolation is claimed.

Normalization is fragment-parent selection (skipStandardize=true) → canonical tautomer → Cheminee custom neutralization. Quickwit preparation ID is cheminee-fragment-tautomer-neutralize-v1; Morgan radius 3, 2,048 bits, LSB0, chirality/features disabled. Contract field: morgan_5be8b9ad4f8bbdce84f376944d49b996d976e6676f07fd6ee416c0357903141e. Quickwit fingerprints a sanitized SMILES round trip; Cheminee validates a reparse but returns the original neutralized molecule. A 500-row native/native/oracle check and a full 100k native/oracle comparison found no normalized-SMILES or fingerprint discrepancies. There are 99,989 distinct normalized structures, 11 legitimate duplicate-structure pairs, and 3,686 strings changed by normalization. Document-ID uniqueness is audited separately from molecular uniqueness.

Fixed schema and unavoidable differences

The user confirmed that the intended fixed schema is the built-in descriptor_v1, sourced from Cheminee src/schema/mod.rs, blob 9d2eceefe5ac05794b796836775b2105e15043a7. It has 48 fields: raw indexed/stored SMILES; 43 indexed numeric descriptors (only exactmw fast); stored-only pattern and Morgan fingerprint bytes; indexed/stored extra_data JSON; and indexed/nonstored other_descriptors JSON containing scaffolds and learned similarity clusters. The exact field/type/flag manifests are preserved with the harness.

Quickwit recreates those fields and metadata, but its existing native chemistry/scoring contracts require prepared SMILES and Morgan fast fields, an additional indexed/stored/fast u64 record_id, and a separate unindexed/nonstored input_smiles. Its actual Tantivy schema has 51 fields: 50 user mappings plus the reserved _field_presence declaration; index_field_presence=false, so presence values are not populated. Both JSON fields have fieldnorms enabled in both engines. Cheminee numeric fieldnorms are enabled; Quickwit numeric fieldnorms are disabled. No product patch was made to force schema parity.

Cheminee's default text tokenizer removes tokens above 40 bytes versus 255 in Quickwit; Cheminee raw text has no length filter versus Quickwit's 255-byte filter. The maximum prepared SMILES length here is 54 UTF-8 bytes, and the maximum alphanumeric metadata token is 9 bytes, so those differences did not drop relevant tokens in this sample. JSON dotted-path expansion is enabled in both.

Quickwit does not natively generate all 43 descriptors, pattern fingerprints, scaffolds, and TensorFlow clusters. An external exporter calls unchanged Cheminee batch_doc_creation to produce them, and its measured cost is added to Quickwit end-to-end ingestion. Quickwit then receives the same metadata plus the original raw SMILES and recomputes native preparation/Morgan fields. A precomputed-only mapping was experimentally rejected by the graph-query validator, so it was not substituted. Native chemistry preparation currently runs both during ingester validation and actual document mapping; the duplication is retained and accounted for. The full prepared 100k NDJSON is 204,287,270 bytes, SHA-256 e6687170f2ab938aa008acea1a64d8e08056eed82f435059113527e803bfd32c; 200-row and 1,000-row exporter batching produced identical bytes.

Timing, resources, and indexing policy

The fresh ingestion comparison uses 1,000 documents per HTTP request, concurrency 1. Cheminee internally batches TensorFlow encoding in groups of 200, independently of the HTTP batch size. Cheminee bulk ingestion commits each request with its existing 50 MiB writer configuration, default merge behavior, LZ4/16 KiB document-store blocks. Quickwit uses commit=force, one-second commit timeout, default 2 GiB indexing heap, target 10M documents/split, stable-log merging (100k minimum level, factor 10, maximum factor 12, two-day mature-split age), and Zstd level 8 / 1 MiB document-store blocks. These policies and resulting segment/split counts are reported, not assumed equivalent.

Indexing wall time includes submission until every response and the final searchable-count check. Quickwit force responses wait for publication, so per-batch request latency includes visibility work. The harness then waits for file paths/logical sizes/allocated blocks to remain unchanged across three consecutive five-second comparisons, bounded by 120 seconds, followed by another 20 seconds idle. This is an observed settle criterion, not a forced merge or garbage-collection barrier. Quickwit's default obsolete-split deletion grace is 32 minutes and the garbage collector runs periodically; retained obsolete objects and local caches are reported separately. Restarts and full stored-document audits verify persisted counts/content; there is no power-loss durability test.

Empty service boot has three trials and 60 seconds idle per trial. Loaded-index query runs restart the process, idle for 30 seconds, verify counts, validate each query, run repeated warm requests, execute a bounded 16-request/concurrency-4 mix, run three request bursts separated by ten-second idle periods, then measure 30-second recovery. All are process-restarted or warm OS-cache measurements. No true-cold-cache claim is made. Quickwit readiness was followed by a ten-second availability allowance because an earlier immediate search after health readiness returned “no available searchers.”

A one-hertz sampler covers each engine process subtree using /proc, cgroup v2, and allocated file blocks. CPU tables use service-process user+system core-seconds; wall time and caller/container CPU are distinct. RSS, PSS, private clean+dirty, and anonymous resident memory are not allocator telemetry. Cgroup current, file cache, and current - inactive_file working-set estimates are diagnostics, affected by prior/shared page-charge ownership; they must not be added to PSS. Virtual-address size is not presented as allocation. Sampled memory/disk peaks can miss subsecond peaks; exporter/model probes additionally have kernel /usr/bin/time -v maximum RSS. Sampler overhead is recorded.

Disk tables distinguish logical bytes from st_blocks * 512, live segments/splits, obsolete split retention, cache, WAL/queues, and working/scratch files. Sparse WAL reservations are not charged as fully allocated disk. Service /proc/io byte counters and read/write syscall counts are reported separately from cgroup block-device bytes/requests. The exposed block device is virtual; physical-media IOPS were not observable. Syscall counts are never treated as physical IOPS. Service I/O includes its logs. Container I/O additionally includes sampler/controller/report writes; the controller rewrites checkpoints, so those totals are not engine-only I/O.

Query contracts and correctness

The deterministic workload has seven metadata/descriptor predicates, identity hit/miss, selective/broad/filtered substructure, superstructure hit/miss, three similarity seeds at thresholds 0.3/0.5/0.9, a metadata-filtered similarity case, and a similarity miss. Limits are 10 or 100 (Cheminee basic limit=1 produces ten hits because its endpoint multiplies the argument by ten); a separately labeled 10,000-limit query measures full threshold recall when the qualifying set exceeds 100. Repetitions are 10 for basic filters, 5 for similarity, and 3 for graph predicates. The small n makes p95/p99 descriptive interpolated statistics, not reliable production-tail estimates.

Graph direction is matched explicitly, chirality is disabled, scaffolds are disabled in Cheminee queries, and tautomer expansion limit is zero after common canonical-tautomer preparation. Native graph identity exclusions are modeled separately in the oracle; current fixtures agree. Quickwit stable-ID predicate mode and its deployed best_match graph ranking are labeled separately. Cheminee's physical ordering is not treated as the same ranked contract. In particular, limited Cheminee graph hits do not establish a full-result count, whereas Quickwit returns an exhaustive count; broad-query timings are not identical work.

Cheminee's default learned-cluster shortlist (search_percent_limit=0.1) is separately labeled approximate. Its configurable 100% mode is tested against exhaustive Morgan/Tanimoto oracle results. The first exhaustive Cheminee query timed out, so no successful equal-recall latency ratio is available. Quickwit exact results are checked against the exhaustive oracle; default Cheminee timings retain their measured recall qualification. Validation checks ID uniqueness, predicate membership, counts where exposed, scores, and tie-aware top-K requirements; full-threshold recall is measured separately. Basic numeric range support also differs under matched flags: Quickwit requires a fast numeric column, so the non-fast NumHeavyAtoms range is kept as an explicit unsupported case; equality and the fast exactmw range remain comparable.

Latency runs from HTTP request construction/send to complete response bytes, excluding subsequent JSON parsing and oracle comparison. Query normalization, fingerprinting, TensorFlow loading/encoding, scoring, and response transfer remain inside service/request latency. Warm, concurrent, and burst results are validated again after timing; invalid/unsupported cases are reported explicitly and are not counted as successful throughput. The query source lists, exact expressions, responses, seeds, and oracle matches are preserved locally.

Exact descriptor fields

  • f64 (22): CrippenClogP, CrippenMR, FractionCSP3, Phi, amw, chi0n, chi0v, chi1n, chi1v, chi2n, chi2v, chi3n, chi3v, chi4n, chi4v, exactmw, hallKierAlpha, kappa1, kappa2, kappa3, labuteASA, tpsa.
  • i64 (21): NumAliphaticHeterocycles, NumAliphaticRings, NumAmideBonds, NumAromaticHeterocycles, NumAromaticRings, NumAtomStereoCenters, NumAtoms, NumBridgeheadAtoms, NumHBA, NumHBD, NumHeavyAtoms, NumHeteroatoms, NumHeterocycles, NumRings, NumRotatableBonds, NumSaturatedHeterocycles, NumSaturatedRings, NumSpiroAtoms, NumUnspecifiedAtomStereoCenters, lipinskiHBA, lipinskiHBD.
Field group Cheminee indexed / stored / fast Quickwit indexed / stored / fast Indexing details
smiles yes / yes / no yes / yes / yes raw/basic; fieldnorms yes; Quickwit fast raw normalizer
43 numeric descriptors yes / no / exactmw only yes / no / exactmw only same signed-i64/f64 types; fieldnorms yes vs no
pattern_fingerprint no / yes / no no / yes / no bytes; base64 input/output
morgan_fingerprint → contract-hashed field no / yes / no no / yes / yes same 256 fingerprint bytes; native mapper injects hex, stored API output is base64; required fast scorer column
extra_data yes / yes / no yes / yes / no default tokenizer, positions; fieldnorms yes; expand dots
other_descriptors yes / no / no yes / no / no same scaffold and cluster metadata; default tokenizer, positions; fieldnorms yes
record_id inside extra_data JSON yes / yes / yes additional Quickwit u64 stable ID, identical value
input_smiles raw request input no / no / no additional Quickwit input field for native mapping
_field_presence absent declared internally; values disabled Quickwit internal u64 schema declaration

First distinct query requests and model startup

These are the first requests for each query/limit/ranking key in a freshly restarted process, with warm OS caches. Later keys can reuse file caches established by earlier keys. Quickwit has a leaf search-result cache (quickwit-search/src/leaf.rs, leaf_search_single_split); repeated-identical warm, concurrent, and burst requests can bypass chemistry/scanning. Consequently the warm table measures cache-enabled repeat service, not fresh graph/fingerprint scan throughput. No cache was disabled or product code changed.

Case Cheminee first request ms (similarity: default 0.1%) Quickwit first request ms (exact/stable ID)
basic-all 57.55 27.01
basic-mass 60.09 29.22
basic-heavy 83.03 3.40 (HTTP 400 unsupported)
basic-heavy-equality 34.33 15.47
basic-metadata 81.74 13.66
basic-combined 37.64 15.49
basic-miss 57.61 5.95
identity-hit 111.62 15577.29
identity-miss 50.20 15215.73
substructure-selective 339.56 15240.68
substructure-broad 251.75 16268.44
superstructure-hit 289.51 14889.19
superstructure-miss 53.48 15060.81
substructure-filtered 257.25 15841.45
similarity-1-0.3 402.76 3047.11
similarity-1-0.5 166.14 2745.44
similarity-1-0.9 165.85 2764.58
similarity-998-0.3 168.47 2847.18
similarity-998-0.5 162.66 2842.75
similarity-998-0.9 169.54 3185.74
similarity-10000-0.3 164.78 2735.70
similarity-10000-0.5 158.40 2728.87
similarity-10000-0.9 163.41 2767.59
similarity-filtered 166.12 2689.47
similarity-miss 161.68 2685.04

Quickwit first best_match graph requests took 14.638–16.412 seconds, separately from stable-ID requests. The 10,000-limit seed-1/0.3 query took 2.839 seconds in Quickwit and 0.166 seconds in Cheminee default mode; only Quickwit returned all 123 qualifying rows.

Exhaustive Cheminee timeout

The first 100%-cluster similarity attempt (seed 1, threshold 0.3, limit 100) reached the 60-second HTTP deadline without a result. The process was stopped to avoid carrying unfinished work into other timings; later exhaustive similarity cases were not attempted. Its validation window including preceding basic/graph checks consumed 61.70 service CPU core-seconds; RSS at stop was 1,032.58 MiB. This is a bounded failure observation, not a successful exhaustive latency or an assertion that every exhaustive query times out. Default-mode tests were run after a separate restart and all independent cases completed. No OOM was recorded.

Unchanged TensorFlow encoder probes

Fresh standalone processes called the same unchanged model five times, after native preparation. The model is loaded by each encoder invocation; repeated timings may benefit from runtime/OS caches.

Molecules per encoder call First encoder seconds Next four seconds Kernel maximum RSS MiB
1 0.3264 0.1015, 0.0916, 0.0897, 0.1097 188.29
200 2.4864 0.3828, 0.3472, 0.3691, 0.3501 2217.00
1000 13.8447 1.8301, 1.5539, 1.7351, 1.6829 10773.52

The 200-row probe matches the deployed internal indexing batch. The 1,000-row direct encoder call is auxiliary stress only, not the deployed 1,000-document HTTP path: Cheminee chunks that path into 200-row calls. The single-row probe requested all cluster distances, as similarity query preparation does. The 1,000-row stress completed without OOM; its 10.52 GiB peak must not be attributed to normal indexing.

Empty boot

Engine Ready seconds: median (range), n=3 Steady RSS MiB PSS MiB Private MiB Anonymous MiB
cheminee 0.22 (0.22–0.42) 139.70 136.51 134.88 26.74
quickwit 4.16 (4.04–4.16) 67.19 64.82 63.80 10.84

Indexing CPU and wall time

Stage Wall seconds User seconds System seconds CPU core-seconds Documents/s
Common preparation for Quickwit 466.12 1,659.34 22.09 1,681.43 214.54
cheminee service to searchable count 553.78 1,968.73 39.95 2,008.68 180.58
cheminee settling window 20.14 4.00 0.09 4.09 —
cheminee total including preparation + settle 573.92 — — 2,012.77 174.24
quickwit service to searchable count 1,276.74 1,167.35 23.62 1,190.97 78.32
quickwit settling window 20.05 1.85 0.82 2.67 —
quickwit total including preparation + settle 1,762.90 — — 2,875.07 56.72
Engine Accepted Rejected Batches Batch p50 s p95 s p99 s Range s Segments / split states
cheminee 100000 0 100 5.45 6.35 6.57 4.39–7.42 300
quickwit 100000 0 100 11.98 13.95 13.99 11.90–16.95 {'MarkedForDeletion': 110, 'Published': 1}

Resident memory

Engine/stage Phase RSS median MiB RSS peak MiB PSS median MiB Private median MiB Anon median MiB RSS median last ≤60s MiB
common preparation sampled median / peak 2,288.47 2,290.16 2,284.68 2,283.50 2,168.62 —
cheminee active indexing 2,562.72 2,761.38 2,559.53 2,557.80 2,413.49 2,689.31
cheminee settled idle 2,637.43 2,637.43 2,634.24 2,632.51 2,509.07 2,637.43
cheminee loaded restart idle 139.06 139.06 136.02 134.34 26.74 139.06
cheminee query validation / first calls 316.19 344.73 313.08 311.37 154.07 316.19
cheminee warm query workload 430.27 466.44 427.14 425.42 271.02 430.27
cheminee concurrency 4 472.20 518.26 433.75 413.41 277.73 472.20
cheminee burst + idle 416.91 447.06 413.78 412.06 289.97 416.91
cheminee post-query recovery 416.92 416.92 413.79 412.07 289.98 416.92
quickwit active indexing 246.48 283.74 244.01 242.94 184.46 264.17
quickwit settled idle 283.99 283.99 281.52 280.45 218.96 283.99
quickwit loaded restart idle 69.20 69.21 66.79 65.77 13.35 69.20
quickwit query validation / first calls 95.37 114.22 92.96 91.95 32.26 114.12
quickwit warm query workload 114.72 118.56 112.31 111.29 51.54 114.72
quickwit concurrency 4 123.44 123.44 121.03 120.01 60.26 123.44
quickwit burst + idle 123.21 123.21 120.80 119.79 60.04 123.21
quickwit post-query recovery 123.22 123.22 120.81 119.79 60.04 123.22

Preparation kernel maximum RSS: 2,287.75 MiB. Other peaks above are sampled at 1 Hz. Warm workloads include separately labeled approximation/ranking cases; compare individual query contracts below.

Cgroup memory diagnostics

Engine Phase Current median MiB Working-set estimate median MiB File cache median MiB Anonymous median MiB
cheminee active indexing 4,834.37 4,145.52 2,187.96 2,453.15
cheminee settled idle 5,056.44 4,308.32 2,293.84 2,565.81
cheminee loaded restart idle 2,609.51 1,913.52 2,310.79 107.37
cheminee query validation / first calls 2,749.24 2,053.13 2,310.95 245.07
cheminee warm query workload 2,867.00 2,170.13 2,311.67 362.45
cheminee concurrency 4 2,883.95 2,186.77 2,312.06 376.87
cheminee burst + idle 2,898.85 2,201.57 2,312.24 393.97
cheminee post-query recovery 2,899.26 2,201.71 2,312.40 394.01
quickwit active indexing 2,294.62 1,833.79 1,899.25 219.70
quickwit settled idle 2,548.72 1,873.98 2,112.12 254.54
quickwit loaded restart idle 2,590.30 1,873.77 2,305.49 93.84
quickwit query validation / first calls 2,619.88 1,902.68 2,306.14 122.58
quickwit warm query workload 2,641.50 1,930.00 2,308.34 143.34
quickwit concurrency 4 2,688.50 1,974.18 2,309.38 186.78
quickwit burst + idle 2,689.71 1,975.16 2,309.70 188.31
quickwit post-query recovery 2,689.75 1,974.93 2,309.88 188.38

Sampler overhead

Engine/stage Phase Samples Mean sampler ms p95 ms Max ms
cheminee index 643 76.38 138.33 330.71
cheminee queries 125 21.83 29.27 83.85
quickwit index 1355 6.97 11.20 187.89
quickwit queries 345 6.04 9.21 167.62
common preparation export 466 44.25 75.05 417.18

Sampler wall time per one-second interval is measured directly; it is not a CPU-time estimate. Controller JSON checkpoint cost is additional.

Disk at the indexing settle snapshot

Engine Category Logical MiB Allocated MiB Files
cheminee live committed segments 92.87 96.62 1800
cheminee unreferenced or temporary files 72.18 72.19 6
cheminee metadata and locks 0.11 0.11 4
cheminee snapshot total 165.16 168.93 1810
cheminee observed build peak — 168.93 —
quickwit metastore and system index metadata 0.11 0.12 4
quickwit obsolete retained splits 281.84 282.04 110
quickwit published splits 44.42 44.42 1
quickwit local cache of published splits 44.36 44.38 8
quickwit WAL and ingest queues 256.00 33.61 3
quickwit snapshot total 626.73 404.57 126
quickwit observed build peak — 404.57 —
cheminee loaded restart idle median 165.16 168.93 —
cheminee post-query recovery median 165.16 168.93 —
quickwit loaded restart idle median 621.30 399.11 —
quickwit post-query recovery median 621.30 399.11 —
common raw input 21.00 21.00 1
Quickwit preparation staging NDJSON 194.82 194.82 1

I/O and phase CPU

Engine Phase Process read MiB Process write MiB Read/write syscalls Cgroup read/write MiB Virtual read/write requests Virtual requests/s CPU core-seconds
cheminee active indexing 0.00 3,744.42 7514/246861 0.00/4,614.95 1/27711 50.04 2,008.68
cheminee settled idle 0.00 0.00 0/0 0.00/8.44 0/3 0.15 0.00
cheminee loaded restart idle 0.00 0.00 0/0 0.00/0.39 0/3 0.10 0.00
cheminee query validation / first calls 0.00 0.03 557/177 0.00/4.54 0/53 13.04 4.47
cheminee warm query workload 0.00 0.15 2905/961 0.00/182.36 0/345 19.75 19.50
cheminee concurrency 4 0.00 0.02 318/105 0.00/30.30 0/33 21.07 3.15
cheminee burst + idle 0.00 0.01 174/48 0.00/25.07 0/25 0.81 1.09
cheminee post-query recovery 0.00 0.00 0/0 0.00/2.09 0/37 1.23 0.00
quickwit active indexing 0.00 752.08 73877/191507 3.09/810.68 17/12126 9.51 1,190.97
quickwit settled idle 0.00 0.00 8/92 0.00/0.73 0/1 0.05 0.04
quickwit loaded restart idle 0.00 0.00 12/205 0.00/0.43 0/4 0.13 0.10
quickwit query validation / first calls 0.00 0.04 401/2645 0.00/19.19 1/141 0.65 219.77
quickwit warm query workload 0.00 0.14 705/3204 0.00/566.16 0/521 113.24 3.33
quickwit concurrency 4 0.00 0.01 195/518 0.00/86.90 0/66 93.41 0.68
quickwit burst + idle 0.00 0.01 42/367 0.00/72.77 0/50 1.64 0.27
quickwit post-query recovery 0.00 0.00 12/183 0.00/2.98 0/2 0.07 0.10

Virtual requests include measurement/controller activity and are not physical-media IOPS. Zero process reads can reflect cached I/O.

Validated repeated-identical, cache-enabled query latencies

Query Oracle qualifying rows Limit Cheminee predicate / exhaustive similarity: n; p50/p95/p99 ms Quickwit (graph=stable-ID): n; p50/p95/p99 ms
basic-all 100000 10 10; 68.41/80.20/83.18 10; 11.60/18.20/21.18
basic-mass 39208 10 10; 60.15/80.64/86.68 10; 9.35/10.10/10.19
basic-heavy 78367 10 10; 61.51/72.20/72.30 not warm-timed
basic-heavy-equality 14461 10 10; 58.83/65.98/68.37 10; 9.45/18.60/22.75
basic-metadata 5000 10 10; 59.64/67.27/68.79 10; 9.67/10.99/11.13
basic-combined 22010 10 10; 58.85/69.19/71.78 10; 9.22/11.35/11.66
basic-miss 0 10 10; 56.69/61.11/61.49 10; 2.67/2.85/2.88
identity-hit 1 10 3; 54.91/68.07/69.24 3; 13.48/13.86/13.89
identity-miss 0 10 3; 45.97/46.43/46.48 3; 6.91/7.45/7.49
substructure-selective 0 10 3; 197.02/205.90/206.69 3; 9.60/10.30/10.36
substructure-broad 77547 10 3; 248.71/254.27/254.77 3; 14.25/15.69/15.82
superstructure-hit 2 10 3; 215.74/236.87/238.75 3; 14.35/14.57/14.59
superstructure-miss 0 10 3; 54.69/61.30/61.88 3; 6.86/7.17/7.19
substructure-filtered 3830 10 3; 249.82/253.67/254.02 3; 13.88/14.29/14.32
similarity-1-0.3 123 100 not warm-timed 5; 121.06/128.45/128.75
similarity-1-0.5 8 10 not warm-timed 5; 12.40/13.97/14.26
similarity-1-0.9 1 10 not warm-timed 5; 8.01/8.47/8.48
similarity-998-0.3 5 100 not warm-timed 5; 10.86/12.01/12.18
similarity-998-0.5 1 10 not warm-timed 5; 9.05/9.38/9.41
similarity-998-0.9 1 10 not warm-timed 5; 9.32/9.88/9.98
similarity-10000-0.3 8 100 not warm-timed 5; 13.76/17.59/18.23
similarity-10000-0.5 1 10 not warm-timed 5; 8.94/24.05/26.90
similarity-10000-0.9 1 10 not warm-timed 5; 8.79/10.71/10.96
similarity-filtered 4 10 not warm-timed 5; 22.00/53.35/57.81
similarity-miss 0 10 not warm-timed 5; 9.00/11.70/12.11

Cheminee deployed-default shortlist timings (recall reported separately)

Query n; p50/p95/p99 ms, 0.1% clusters
similarity-1-0.3 5; 161.68/191.17/196.69
similarity-1-0.5 5; 158.10/166.58/167.46
similarity-1-0.9 5; 161.18/166.56/167.16
similarity-998-0.3 5; 161.35/164.39/164.94
similarity-998-0.5 5; 158.32/163.07/163.97
similarity-998-0.9 5; 162.85/165.91/166.11
similarity-10000-0.3 5; 163.83/184.64/187.77
similarity-10000-0.5 5; 165.19/166.09/166.18
similarity-10000-0.9 5; 162.90/166.82/166.84
similarity-filtered 5; 159.09/164.59/165.19
similarity-miss 5; 150.01/152.43/152.76

Quickwit deployed graph ranking

Query n; p50/p95/p99 ms, best_match
substructure-selective 3; 17.33/22.43/22.88
substructure-broad 3; 19.25/20.16/20.25
superstructure-hit 3; 13.73/14.49/14.55
superstructure-miss 3; 8.59/9.36/9.43
substructure-filtered 3; 16.18/16.83/16.89

Bounded mixed workloads

Engine Workload Requests Wall/active-request seconds Requests/s Median request ms HTTP errors
cheminee concurrency 4 16 1.57 10.22 281.74 0
cheminee burst requests 9 0.84 10.70 56.84 0
quickwit concurrency 4 16 0.71 22.64 47.97 0
quickwit burst requests 9 0.13 70.71 14.08 0

Burst request rate excludes the three ten-second idle intervals; the burst resource phase includes them. Concurrency-4 uses only 16 requests, so this is not a saturation test.

The mixed workloads reuse previously validated keys. Cheminee uses the 0.1% shortlist and Quickwit uses exact similarity; their recall and caching contracts differ. These are bounded observations, not an equal-recall throughput comparison. The preparation sampler includes the time-wrapper process, whereas kernel max RSS is a per-process maximum; small differences are expected.

Common-preparation container I/O (includes exporter, sampler and controller): read 5.94 MiB, write 157.02 MiB, virtual read/write requests 25/317. These are not process-only or physical-media counters.

Correctness and recall

Engine Case / mode Expected qualifiers Returned Reported count Valid Tie-aware top-K recall
cheminee basic-all / exact/predicate 100000 10 not exposed yes —
cheminee basic-mass / exact/predicate 39208 10 not exposed yes —
cheminee basic-heavy / exact/predicate 78367 10 not exposed yes —
cheminee basic-heavy-equality / exact/predicate 14461 10 not exposed yes —
cheminee basic-metadata / exact/predicate 5000 10 not exposed yes —
cheminee basic-combined / exact/predicate 22010 10 not exposed yes —
cheminee basic-miss / exact/predicate 0 0 not exposed yes —
cheminee identity-hit / exact/predicate 1 1 not exposed yes —
cheminee identity-miss / exact/predicate 0 0 not exposed yes —
cheminee substructure-selective / exact/predicate 0 0 not exposed yes —
cheminee substructure-broad / exact/predicate 77547 10 not exposed yes —
cheminee superstructure-hit / exact/predicate 2 2 not exposed yes —
cheminee superstructure-miss / exact/predicate 0 0 not exposed yes —
cheminee substructure-filtered / exact/predicate 3830 10 not exposed yes —
cheminee similarity-1-0.3 / default 0.1% 123 54 not exposed yes 0.460
cheminee similarity-1-0.3 / default 0.1%; full threshold 123 54 not exposed yes 0.439
cheminee similarity-1-0.5 / default 0.1% 8 4 not exposed yes 0.500
cheminee similarity-1-0.9 / default 0.1% 1 1 not exposed yes 1.000
cheminee similarity-998-0.3 / default 0.1% 5 2 not exposed yes 0.400
cheminee similarity-998-0.5 / default 0.1% 1 1 not exposed yes 1.000
cheminee similarity-998-0.9 / default 0.1% 1 1 not exposed yes 1.000
cheminee similarity-10000-0.3 / default 0.1% 8 3 not exposed yes 0.375
cheminee similarity-10000-0.5 / default 0.1% 1 1 not exposed yes 1.000
cheminee similarity-10000-0.9 / default 0.1% 1 1 not exposed yes 1.000
cheminee similarity-filtered / default 0.1% 4 2 not exposed yes 0.500
cheminee similarity-miss / default 0.1% 0 0 not exposed yes 1.000
quickwit basic-all / exact/predicate 100000 10 100000 yes —
quickwit basic-mass / exact/predicate 39208 10 39208 yes —
quickwit basic-heavy / exact/predicate — — not exposed NO —
quickwit basic-heavy-equality / exact/predicate 14461 10 14461 yes —
quickwit basic-metadata / exact/predicate 5000 10 5000 yes —
quickwit basic-combined / exact/predicate 22010 10 22010 yes —
quickwit basic-miss / exact/predicate 0 0 0 yes —
quickwit identity-hit / exact/predicate 1 1 1 yes —
quickwit identity-miss / exact/predicate 0 0 0 yes —
quickwit substructure-selective / exact/predicate 0 0 0 yes —
quickwit substructure-broad / exact/predicate 77547 10 77547 yes —
quickwit superstructure-hit / exact/predicate 2 2 2 yes —
quickwit superstructure-miss / exact/predicate 0 0 0 yes —
quickwit substructure-filtered / exact/predicate 3830 10 3830 yes —
quickwit similarity-1-0.3 / exact/predicate 123 100 123 yes 1.000
quickwit similarity-1-0.3 / exact/predicate; full threshold 123 123 123 yes 1.000
quickwit similarity-1-0.5 / exact/predicate 8 8 8 yes 1.000
quickwit similarity-1-0.9 / exact/predicate 1 1 1 yes 1.000
quickwit similarity-998-0.3 / exact/predicate 5 5 5 yes 1.000
quickwit similarity-998-0.5 / exact/predicate 1 1 1 yes 1.000
quickwit similarity-998-0.9 / exact/predicate 1 1 1 yes 1.000
quickwit similarity-10000-0.3 / exact/predicate 8 8 8 yes 1.000
quickwit similarity-10000-0.5 / exact/predicate 1 1 1 yes 1.000
quickwit similarity-10000-0.9 / exact/predicate 1 1 1 yes 1.000
quickwit similarity-filtered / exact/predicate 4 4 4 yes 1.000
quickwit similarity-miss / exact/predicate 0 0 0 yes 1.000
quickwit substructure-selective / best_match 0 0 0 yes 1.000
quickwit substructure-broad / best_match 77547 10 77547 yes 1.000
quickwit superstructure-hit / best_match 2 2 2 yes 1.000
quickwit superstructure-miss / best_match 0 0 0 yes 1.000
quickwit substructure-filtered / best_match 3830 10 3830 yes 1.000

An approximate result can be a valid subset with imperfect recall. “Valid” for that mode verifies membership, uniqueness, and scores; it does not assert exhaustive recall. Unsupported cases are retained as failures. Warm/concurrent/burst responses are also checked post hoc.

Limits and priorities supported by these observations

The primary indexing comparison is one fresh run per engine, not a statistical population. An earlier unchanged Cheminee run with the same 1,000-row configuration took 581.91 seconds to searchable count versus 553.78 seconds here, illustrating roughly 5% run-to-run variation. An old-head Quickwit 200-row diagnostic completed without duplicates but used a different batch size and is not a paired replicate. Query repetition counts are small, the working set is only 100k leadlike molecules, OS caches were shared, and repeated Quickwit query keys benefit from result caching. The bounded concurrency mix is not a saturation benchmark. No physical-media IOPS, allocator allocated-byte telemetry, true-cold measurements, or 1M engine results are claimed.

Cheminee required forced process termination after the 40-second shutdown allowance in the indexing run; both query processes stopped with exit code 0. This occurred after the normal measurement windows. Full stored-data audits verified persisted records, but graceful shutdown and crash durability were not established. The disk settle rule is file-size/block stability, not proof that every merge worker or obsolete-file cleanup is finished. Unreferenced Cheminee files and retained Quickwit splits remain explicitly charged. Cgroup memory is cumulative/shared-charge context, not a substitute for per-process PSS. Sampler overhead is asymmetric (more Cheminee segment files), and report/checkpoint writes materially inflate container I/O; engine-process I/O is therefore shown separately.

Future work, not implemented in this study:

  1. Keep the new replay regressions and extend end-to-end ambiguous-ack coverage before claiming retry safety. The measured correction removes this reproduction, not every possible duplicate source.
  2. Improve first-seen chemistry queries before optimizing cached latency: Quickwit's graph dictionary scan costs ~15 seconds per new key at only 100k rows; its exact fingerprint scan costs ~3 seconds. Investigate safe candidate pruning/column access while preserving exhaustive correctness, metadata filters and ranking. Cached millisecond results are not evidence those scans are cheap.
  3. Decide which schema is operationally required. Preserving all descriptors and learned clusters requires 466 seconds / 1,681 core-seconds of external preparation before Quickwit ingestion, plus repeated native preparation in validation/mapping. Removing that requirement would be a different benchmark contract; integration/reuse of prepared data should be measured separately.
  4. Investigate Cheminee's 100%-cluster query construction and default recall. The deployed shortlist misses many qualifying neighbors in these fixtures, while the first exhaustive request exceeded the deadline. Neither behavior should be hidden by comparing only fast approximate results.
  5. Study commit cadence, merge/retention policy and batch geometry with a separate controlled sweep. Current force-publication 1,000-row batches produce ~12-second Quickwit acknowledgements, one published split plus 110 retained obsolete splits; Cheminee produces 300 committed segments and substantial write traffic. Do not infer intrinsic storage efficiency from published-split size alone.
  6. Profile TensorFlow allocation/model lifecycle and Cheminee shutdown. The unchanged 200-row encoder probe alone reaches 2,217 MiB; active indexing retains ~2.6 GiB after settling. Any model/cache/allocator change would require a separately authorized implementation and new measurements.
  7. Repeat on dedicated hardware with randomized engine order, more first-seen query keys and concurrency trials, then index the already verified 1M input. Preserve exact/default recall separation and include preparation, retained storage and startup work.

Reproduction and retained evidence

All harnesses, configs, raw responses, per-second resource samples, audits and reports are retained locally under /workspace/cheminee-study; benchmark files were not committed to the application repository. Key directories: harness/, runs/{cheminee,quickwit}-100000/, runs/preparation-100000/, diagnostics/batch-1000/, diagnostics/cheminee-exhaustive-timeout/, reports/, corpus/. reports/index-resources-100000.{png,svg} and query-resources-100000.{png,svg} contain inspected plots; they are local artifacts, not public GitHub attachment URLs. The tables here are the self-contained published results. A local SHA-256 evidence manifest accompanies the report.

The build wrappers pin environment/dependency paths; the container must have the stated homemade RDKit packages, TensorFlow libraries/model assets and Rust toolchain. In the preserved workspace, representative commands are:

docker exec cheminee-study bash /workspace/cheminee-study/harness/build-cheminee.sh
docker exec cheminee-study bash /workspace/cheminee-study/harness/build-quickwit.sh
docker exec cheminee-study python3 /workspace/cheminee-study/harness/run_preparation.py --size 100000 --batch-size 1000
docker exec cheminee-study python3 /workspace/cheminee-study/harness/run_index.py quickwit --size 100000 --batch-size 1000
docker exec cheminee-study python3 /workspace/cheminee-study/harness/audit_quickwit.py --size 100000
docker exec cheminee-study python3 /workspace/cheminee-study/harness/run_index.py cheminee --size 100000 --batch-size 1000
docker exec cheminee-study python3 /workspace/cheminee-study/harness/run_queries.py quickwit --size 100000
docker exec cheminee-study python3 /workspace/cheminee-study/harness/run_queries.py cheminee --size 100000 --cheminee-default-only
docker exec cheminee-study python3 /workspace/cheminee-study/harness/validate_recorded_queries.py --size 100000
docker exec cheminee-study python3 /workspace/cheminee-study/harness/summarize_runs.py --size 100000
docker exec cheminee-study python3 /workspace/cheminee-study/harness/disk_summary.py --size 100000

Run sequentially, in a fresh study output root or after archiving prior runs: ingestion/preparation harnesses refuse to overwrite their output directories. run_queries.py cheminee --size 100000 without the default-only option reproduces the exhaustive attempt; archive its results before the independent default-mode run. fixed_study.py records the full ordering, Cheminee stored export/audit, bootstrap repetitions and exit statuses. sample.py, publisher/sample manifests, native exporter, query-case JSON, oracle scripts and captured effective mappings preserve the corpus/schema/query recipe. Host Python oracle RDKit 2026.9.1 was checked against both native paths; it is not substituted for their engine implementations.

Additional provenance: Cheminee binary SHA-256 235943f0b351e0ff27eb27bbc676e7decc464c61b509b5907b10f0a66c74aad4; fixed Quickwit binary 16fc3e90a0098d37de68e4042cc167abcda2c7bdd19a0ecba0eaf178f1e02b0e. Publisher corpus hashes: train 786f0313aa6b9ba5514df685f885742a70ea8d86f1a4fa48115f7f80a634265c; test f896fbf3764f88d94670b9959e5872c600c12152a18233823e820761b7a791b2; scaffold test adffb2192c1bfe31ab0e13154d4af19a37dc18bdbf3cd7b4491e04405128adde.

xrl commented Oct 11, 2026

Copy link
Copy Markdown
Author

Batch/concurrency follow-up: bulk ingestion improves Quickwit, CPU parity remains unmet

Completed on unchanged PR3 head 681733774139d965c89f81cc8a8cb58d572ff674: 13 fresh 10k screens and five fresh 100k runs. Every full run accepted 100,000 / rejected 0, passed a complete stored-record audit with 100,000 unique IDs and zero missing/content/duplicate errors, and both Quickwit repetitions passed additional restart audits. The original study is preserved. No application/library fixes or optimizations were made in this follow-up.

Recommendation for this tested native-chemistry path: Quickwit commit=auto, 200-row batches, concurrency 1, 30-second commit interval, then poll an explicit all-searchable barrier. For Cheminee, use 1,000-row batches, concurrency 1; default threading is the throughput reference. More simultaneous requests did not provide the desired CPU scaling. The separate Rayon-2 experiment is a resource-control comparison, not the default recommendation.

Full 100k configuration Runs All-searchable seconds, mean (range) Average service cores Four-core quota used Searchable docs/s from mean time
Quickwit B200/C1, auto/30s 2 607.64 (590.56–624.72) 1.98 49.5% 164.57
Cheminee B1000/C1, Rayon-2 2 722.91 (709.93–735.88) 2.64 65.9% 138.33
Cheminee B1000/C1, default threads 1 570.53 3.65 91.2% 175.28

CPU matching did not succeed: the full Rayon-2 runs averaged 33.0% more CPU than Quickwit, despite being the closest setting in the short-screen selection. Default Cheminee used still more. These are measured-utilization comparisons, not equal-CPU performance claims. Quickwit did not saturate the four-core quota in the bounded matrix, and no dummy load or idle padding was used to conceal that limit.

Quickwit's earlier forced-publication B1000/C1 run took 1,276.74 seconds at 0.93 cores. The new selected bulk configuration is 2.10× faster in service-to-searchable wall time and uses about 2.12× the average CPU. This compares two configurations; it does not isolate one variable. Native preparation/validation work remains, and service CPU cost is still about 1,203.80 core-seconds per 100k.

The full-schema end-to-end accounting changes the interpretation: including the required previously measured 466.12-second exporter and explicitly recorded harness setup, Quickwit averages 1,079.75 seconds, versus 727.55 seconds for Rayon-2 Cheminee and 573.96 seconds for default Cheminee. Quickwit's exporter adds 1,681.43 CPU core-seconds and a 2,290.16 MiB peak RSS stage; those costs are not omitted because the service itself is small.

Repetition and failures

Quickwit acceptance times were 586.49–610.56 seconds; searchable completion required another 4.08–14.16 seconds. Its full searchable-time range is 5.62% of the mean; Cheminee Rayon-2's is 3.59%. Two repetitions expose this variation but do not establish a production distribution.

The one failed screen was Cheminee B1000/C2: HTTP 500 LockBusy, one accepted 1,000-row batch, one failed 1,000-row request, 8,000 rows left unsent, and no retries. All seven Quickwit screen configurations completed clean 10k audits, including concurrent cases. No OOM or memory-limit event was observed. Separately, two overlapping orchestration runs were excluded and rerun; their raw evidence and partial-data audit are preserved and disclosed below.

10k screening results

Configuration Accepted / attempted HTTP failures Acceptance s All searchable s Cores acceptance / visibility Peak RSS MiB Stored audit
cheminee B1000 C1 10000/10000 0 46.63 46.92 3.59/3.58 2,492.32 10000 clean
cheminee B1000 C1 Rayon1 10000/10000 0 104.36 104.71 1.52/1.52 2,496.73 10000 clean
cheminee B1000 C1 Rayon2 10000/10000 0 66.18 66.40 2.35/2.35 2,459.57 10000 clean
cheminee B1000 C2 1000/2000 1 6.93 incomplete 3.49/— 2,301.36 1000 partial
cheminee B200 C1 10000/10000 0 56.80 57.09 3.53/3.52 2,527.93 10000 clean
cheminee B5000 C1 10000/10000 0 71.06 71.29 3.41/3.40 2,403.30 10000 clean
quickwit B1000 C1 10000/10000 0 59.95 76.05 1.89/1.57 176.77 10000 clean
quickwit B1000 C2 10000/10000 0 55.76 114.19 1.54/1.00 193.20 10000 clean
quickwit B1000 C4 10000/10000 0 55.02 107.36 1.13/1.05 183.90 10000 clean
quickwit B200 C1 10000/10000 0 57.46 69.55 1.96/1.68 154.69 10000 clean
quickwit B200 C4 10000/10000 0 53.60 73.75 1.88/1.50 170.02 10000 clean
quickwit B2000 C1 10000/10000 0 54.74 88.90 1.80/1.27 181.83 10000 clean
quickwit B2000 C2 10000/10000 0 59.03 111.70 1.23/1.11 187.38 10000 clean

Fresh 100k service ingestion

Configuration Acceptance s All searchable s Drain/publication tail s User CPU s System CPU s Acceptance cores Visibility cores Four-core quota % Searchable docs/s Additional settle s
cheminee B1000 C1 Rayon2 t1 732.65 735.88 3.24 1,882.67 41.93 2.62 2.62 65.38 135.89 20.18
cheminee B1000 C1 Rayon2 t2 706.08 709.93 3.86 1,845.84 39.89 2.66 2.66 66.41 140.86 20.19
cheminee B1000 C1 t1 567.83 570.53 2.70 2,037.67 44.52 3.66 3.65 91.24 175.28 20.17
quickwit B200 C1 t1 586.49 590.56 4.08 1,166.24 18.20 2.01 2.01 50.14 169.33 20.04
quickwit B200 C1 t2 610.56 624.72 14.16 1,204.23 18.93 2.00 1.96 48.95 160.07 20.04
Configuration Requests Request p50 s p95 s p99 s Min–max s Accepted Rejected docs HTTP failures
cheminee B1000 C1 Rayon2 t1 100 7.11 9.44 10.16 5.66–12.98 100000 0 0
cheminee B1000 C1 Rayon2 t2 100 6.78 8.80 10.33 5.81–11.67 100000 0 0
cheminee B1000 C1 t1 100 5.65 6.77 7.17 4.52–8.91 100000 0 0
quickwit B200 C1 t1 500 1.13 1.47 1.75 0.90–3.68 100000 0 0
quickwit B200 C1 t2 500 1.16 1.67 2.27 0.90–2.67 100000 0 0
Configuration HTTP body MiB total Largest request MiB Service CPU ms per document
cheminee B1000 C1 Rayon2 t1 20.92 0.21 19.25
cheminee B1000 C1 Rayon2 t2 20.92 0.21 18.86
cheminee B1000 C1 t1 20.92 0.21 20.82
quickwit B200 C1 t1 160.30 0.32 11.84
quickwit B200 C1 t2 160.30 0.32 12.23

Memory through searchable completion

Configuration RSS median MiB Acceptance RSS peak MiB Through-visibility RSS peak MiB PSS median MiB Private median MiB Anon median MiB Post-settle RSS MiB Cgroup current median MiB Cgroup file median MiB
cheminee B1000 C1 Rayon2 t1 2,532.17 2,611.15 3,023.43 2,529.09 2,527.40 2,404.12 2,679.72 6,609.56 3,076.72
cheminee B1000 C1 Rayon2 t2 2,530.70 2,626.76 3,033.92 2,527.57 2,525.86 2,399.93 2,958.49 7,137.46 3,587.36
cheminee B1000 C1 t1 2,566.84 2,775.13 3,067.29 2,563.70 2,561.96 2,415.17 2,754.68 8,289.39 4,687.40
quickwit B200 C1 t1 166.77 204.96 204.96 164.35 163.33 104.43 183.85 4,280.85 2,911.55
quickwit B200 C1 t2 206.94 305.75 305.75 204.48 203.45 144.57 247.27 6,001.93 4,532.02
Configuration Service average cores Container average cores Quota periods Throttled periods Throttled seconds
cheminee B1000 C1 Rayon2 t1 2.62 2.67 7359 931 33.08
cheminee B1000 C1 Rayon2 t2 2.66 2.71 7099 930 33.48
cheminee B1000 C1 t1 3.65 3.70 5706 3911 145.83
quickwit B200 C1 t1 2.01 2.02 5904 3 0.14
quickwit B200 C1 t2 1.96 1.97 6186 3 0.01

Disk and segment/split state

Configuration Allocated at visibility MiB Settled logical MiB Settled allocated MiB Sampled allocated peak MiB Committed segments / split states
cheminee B1000 C1 Rayon2 t1 368.96 410.64 414.57 414.57 300
cheminee B1000 C1 Rayon2 t2 760.05 803.03 807.07 807.07 300
cheminee B1000 C1 t1 423.34 473.69 477.52 477.52 300
quickwit B200 C1 t1 162.97 416.38 194.08 235.71 {'MarkedForDeletion': 20, 'Published': 1}
quickwit B200 C1 t2 192.68 414.99 192.71 236.01 {'MarkedForDeletion': 20, 'Published': 2}
Run Category Logical MiB Allocated MiB Files
full-b1000-c1-r2-t1-cheminee live committed segments 92.74 96.60 1800
full-b1000-c1-r2-t1-cheminee unreferenced/temporary 317.79 317.86 35
full-b1000-c1-r2-t1-cheminee metadata/locks 0.11 0.11 4
full-b1000-c1-r2-t2-cheminee live committed segments 92.87 96.74 1800
full-b1000-c1-r2-t2-cheminee unreferenced/temporary 710.05 710.22 80
full-b1000-c1-r2-t2-cheminee metadata/locks 0.11 0.11 4
full-b1000-c1-t1-cheminee live committed segments 92.84 96.57 1800
full-b1000-c1-t1-cheminee unreferenced/temporary 380.73 380.84 48
full-b1000-c1-t1-cheminee metadata/locks 0.11 0.11 4
full-b200-c1-t1-quickwit metadata/system indexes 0.05 0.05 4
full-b200-c1-t1-quickwit MarkedForDeletion split 71.61 71.65 20
full-b200-c1-t1-quickwit Published split 44.39 44.39 1
full-b200-c1-t1-quickwit local split cache 44.33 44.35 8
full-b200-c1-t1-quickwit WAL/queues 256.00 33.63 3
full-b200-c1-t2-quickwit metadata/system indexes 0.05 0.06 4
full-b200-c1-t2-quickwit MarkedForDeletion split 69.83 69.87 20
full-b200-c1-t2-quickwit Published split 44.60 44.60 2
full-b200-c1-t2-quickwit local split cache 44.52 44.55 16
full-b200-c1-t2-quickwit WAL/queues 256.00 33.63 3

I/O through searchable completion

Configuration Process read MiB Process write MiB Read/write syscalls Container read/write MiB Virtual read/write requests Mean 1Hz sampler wall ms
cheminee B1000 C1 Rayon2 t1 0.00 3,765.76 7540/248343 0.00/3,808.33 0/27614 55.19
cheminee B1000 C1 Rayon2 t2 0.00 3,764.03 7539/247789 0.00/3,897.80 0/27366 53.08
cheminee B1000 C1 t1 0.00 3,757.40 7537/247155 0.00/3,807.75 0/27535 77.62
quickwit B200 C1 t1 0.00 318.57 18821/59112 0.00/463.89 0/3462 8.57
quickwit B200 C1 t2 0.00 392.98 29769/78156 0.00/663.68 0/3814 8.72

Full-schema end-to-end accounting

Configuration External preparation s Harness setup s Preparation + harness setup + searchable s Exporter + service CPU core-s End-to-end searchable docs/s
cheminee B1000 C1 Rayon2 t1 0.00 3.31 739.19 1,924.60 135.28
cheminee B1000 C1 Rayon2 t2 0.00 5.97 715.91 1,885.73 139.68
cheminee B1000 C1 t1 0.00 3.43 573.96 2,082.19 174.23
quickwit B200 C1 t1 466.12 5.80 1,062.48 2,865.87 94.12
quickwit B200 C1 t2 466.12 6.19 1,097.03 2,904.59 91.16

External preparation is the previously measured, hash-verified 100k stage reused for accounting: 466.116 s, 1,681.43 CPU core-s, 2,290.16 MiB (2.24 GiB) peak sampled process-tree RSS, and 194.82 MiB allocated staging NDJSON. It is not rerun in each replicate or hidden from Quickwit totals. Harness setup includes payload construction and loading the audit reference. Controller CPU for that setup is recorded separately and excluded from the exporter+service CPU column. Settle/retention time is separate from searchable completion.

Full record audits

Configuration Stored rows Unique IDs Missing IDs Content/duplicate errors Post-shutdown/restart check Service exit
cheminee B1000 C1 Rayon2 t1 100000 100000 0 0 stored audit after shutdown -9
cheminee B1000 C1 Rayon2 t2 100000 100000 0 0 stored audit after shutdown -9
cheminee B1000 C1 t1 100000 100000 0 0 stored audit after shutdown -9
quickwit B200 C1 t1 100000 100000 0 0 clean -9
quickwit B200 C1 t2 100000 100000 0 0 clean -9

Scope and controlled setup

This follows the original 100k single-node study and tests batch indexing at similar measured CPU utilization. It is a configuration/measurement study: no new application or library changes, commits, pushes, deployments, merges, repository-setting changes, or disabled document validation. The original report and artifacts are preserved.

Quickwit remains pinned to 681733774139d965c89f81cc8a8cb58d572ff674; Cheminee is f8d31a604203392f4dfba7d9a84120100b8426b5, with rdkit-rs bindings 0ae060c9cfc14626172070989fee890b16454373. The same release binaries and dynamic homemade RDKit 2026.09.1+ds1-1~ubuntu26.04 packages were reverified by SHA-256. Quickwit binary: 16fc3e90a0098d37de68e4042cc167abcda2c7bdd19a0ecba0eaf178f1e02b0e; Cheminee: 235943f0b351e0ff27eb27bbc676e7decc464c61b509b5907b10f0a66c74aad4. The original comment records package/model/compiler hashes and exact schema flags.

Runs used the same Ubuntu 26.04 container, Intel Xeon Platinum 8573C host, four-core CPU quota, five visible logical CPUs, 14 GiB container memory limit, and no swap. All reported engine runs, audits and external preparation were isolated sequentially. An orchestration transition briefly overlapped an unfinished Quickwit run and a new Cheminee Rayon-2 screen; both were excluded and preserved as diagnostics, then rerun on fresh indexes after adding exclusive engine/controller guards. Their timings are not used in selection or results. Quickwit ran all roles on one local node, using file:// index storage and metastore. No S3 is used or simulated. No kernel/security changes, cache drops, extra worker nodes or artificial CPU-consuming workload were introduced.

The fixed schema remains the user-confirmed descriptor_v1: 43 numeric descriptors, prepared SMILES, both fingerprints, stored extra_data, and indexed scaffold/learned-cluster metadata. Quickwit's required fast fields and stable record ID retain the previously disclosed schema differences. Normalization remains fragment-parent → canonical tautomer → custom neutralization; Morgan radius 3 / 2,048 bits / LSB0 / no chirality or features. Input metadata, molecular preparation and fingerprint content are unchanged.

Every 10k screen uses the exact first 10,000 unique document IDs of the verified MOSES sample, and each full run uses the same 100,000 rows in a fresh index. The full input SHA-256 is bcd62363cb784827752de27f361f6081056c99a7d636749f182e7b3cecc08e6a; prepared input is e6687170f2ab938aa008acea1a64d8e08056eed82f435059113527e803bfd32c. The MOSES source and deterministic hash-order sampling provenance remain as documented in the original study. Corpus reuse is explicit; no duplicate molecules were inserted to fake scale. Separate fresh indexes naturally contain the same sample for comparison. There is no 1M indexing result in this follow-up.

Ingestion contracts and timing boundaries

Quickwit now uses the supported POST /api/v1/moses/ingest?commit=auto&detailed_response=true path and indexing_settings.commit_timeout_secs=30. This replaces the original serial commit=force / one-second setup. The source default is 60 seconds; 30 seconds is a bounded bulk/visibility tradeoff, not a product default claim. Heap, split target, compression, merge policy, obsolete-split retention and native validation remain unchanged. Each request is submitted once. No empty “force” request or replayed final batch is used as a barrier: the locked REST implementation returns immediately for an empty batch.

Acceptance ends after all in-flight responses return; Quickwit's acknowledged rows are not called indexed at that boundary. All-searchable completion ends when the exact total is observed, with polling every two seconds and a 300-second bound after acceptance. Cheminee's bulk endpoint commits each successful request and exposes no total-count API; its committed count is followed by a full basic-search response/ID-count check. The latter response-transfer cost is included in its visibility time and disclosed rather than assumed free. Full stored-content audits are performed after resource timing, not hidden inside successful-ingestion throughput. Partial/failed runs are excluded from successful throughput comparisons.

Cheminee retains its existing exclusive 50 MiB writer acquisition and commit per request. Its parallel molecular preparation uses Rayon; an explicit RAYON_NUM_THREADS=1 and 2 configuration is tested as a CPU-matching attempt, separately from unrestricted/default-thread results. This limits the existing Rayon pool, not TensorFlow or all service threads. The container retains the same four-core quota. No idle sleeps or dummy work are used to manufacture a CPU match, and the thread-limited result is not presented as Cheminee's maximum throughput.

The bounded client has at most C requests in flight. It stops issuing new batches after any HTTP/transport failure, incomplete acknowledgement, or rejected document, drains already-submitted requests, and never blindly retries. HTTP timeout is 120 seconds; Quickwit's existing 30-second persistence deadline is unchanged. Per-request ID ranges, responses and timings are retained. Audits check all observed IDs, duplicates, missing rows, normalized SMILES, Morgan bytes, pattern bytes and JSON metadata against the same prepared reference. Nonstored descriptor fields cannot be read back as stored content; their input and schema remain the verified common contract. Full Quickwit runs additionally receive a post-shutdown/restart audit.

After visibility, a separate settle observation waits for identical file paths, logical sizes and allocated blocks across three five-second comparisons, bounded at 90 seconds, followed by ten seconds idle. This is not a full merge/garbage-collection barrier. Retained obsolete splits, caches, sparse WAL allocations and unreferenced temporary files are charged as observed; the 32-minute obsolete-split grace is not bypassed. Shutdown has a 40-second allowance; forced termination after that allowance is recorded and occurs after timed phases. Persisted-content checks do not establish power-loss durability.

Measurement and selection

Service CPU is /proc user + system core-seconds. Achieved average cores = core-seconds / elapsed seconds; quota utilization = average cores / 4. CPU during acceptance and CPU through all-searchable completion are separate. Same request concurrency is not assumed to mean equal CPU. One-hertz process-subtree samples record RSS, PSS, private and anonymous memory, I/O, and allocated file blocks. Cgroup current/file/cache counters include controller activity and previously charged cache, so they are diagnostics rather than engine-private memory. No allocator-allocation telemetry or physical-media IOPS is claimed. Syscall counts, process I/O bytes and virtual-device requests are distinct. Sampled peaks can miss subsecond peaks. Acceptance-phase RSS peaks are shown separately from through-visibility peaks: Cheminee’s full-row visibility check can allocate response/readback memory after ingestion has completed.

Payloads are prebuilt before the service-ingestion clock; this harness setup also loads the audit reference. Setup wall/controller CPU is recorded for full runs and shown explicitly in end-to-end wall accounting, rather than treated as engine CPU or inherent product preparation. The unchanged external full-schema exporter required by Quickwit remains visible: the previously verified 100k measurement is charged explicitly to each end-to-end comparison. It is not rerun or claimed as a new observation in every replicate. No exporter competes with an engine.

Screening is exploratory, not a factorial statistical experiment. After clean 10k screens, Quickwit selection prefers lower concurrency among configurations within 10% of the fastest searchable completion and with request p95 below 25 seconds; this avoids selecting acknowledgement speed alone or pushing close to the persistence deadline without a throughput benefit. Cheminee's fastest clean default-thread serial screen is retained, alongside the separately labeled closest-CPU Rayon comparison. Useful full 100k configurations are repeated, with comparison-run order Quickwit / Cheminee / Cheminee / Quickwit. Small sample counts and shared hardware limit inference; repeated-request p95/p99 summarize these runs, not production tail guarantees.

Unit clarification for the earlier report: its measured exporter peak of 2,290.16 MiB is approximately 2.24 GiB, not 2.29 GiB. The underlying MiB measurements and raw results are unchanged.

What the measurements support

Practical configuration for this native-chemistry workload: use Quickwit commit=auto, 200-row batches, concurrency 1, and a separate explicit searchable-count barrier. The selected 30-second commit interval is a bulk/visibility tradeoff. Do not count an acknowledgement as a searchable document, and do not blindly retry ambiguous failures. Serial 1,000-row and 2,000-row alternatives were screened; this is a measured local recommendation, not a universal optimal batch size.

For Cheminee, retain serial 1,000-row requests on one index. The concurrency-two test produced HTTP 500 LockBusy: one 1,000-row request succeeded, one failed, and the remaining 8,000 rows were deliberately not sent. Its stored audit found exactly 1,000 unique records and zero content/duplicate errors. This is an exclusive-writer failure, not a successful 10k ingestion result or a rate-limit response. Default threading is the throughput reference; Rayon-2 is a separately labeled resource-control experiment, not a recommended speed optimization.

The equal-CPU goal was not attained by the tested settings. Bulk-friendly ingestion roughly doubled Quickwit's achieved CPU use relative to the original forced-publication run, but additional client concurrency did not drive it to the four-core quota. The full-size Rayon-2 Cheminee runs used more CPU than their short-screen estimate and more than Quickwit. The tables report that gap and CPU cost per document. No dummy workload or idle padding was used to manufacture a match. Rayon limits one pool, not all TensorFlow/Tantivy service threads. These results describe the tested matrix, not proof that every possible configuration has been exhausted.

The concurrency behavior is consistent with the locked implementation: Quickwit acquires its ingester state lock across document validation, while batch validation iterates documents serially. Native preparation is still done in validation and again in mapping. More queued requests can lengthen acknowledgements and the indexing tail instead of creating independent chemistry work. This is source-supported interpretation, not a sampled-stack attribution of every stalled second. No validation bypass, source patch or extra distributed worker was used to improve the result.

The service-only Quickwit improvement must not hide the required full-schema exporter. Its 466.12 seconds / 1,681.43 core-seconds / approximately 2.24 GiB peak resident memory remain part of the full-schema path. Redesigning that contract or reusing prepared native data would be a different experiment and was not done here. The historical forced-publication baseline also had a different batch size and controller payload preparation path; it is a useful configuration comparison, not a randomized single-variable causal experiment.

Storage conclusions depend on lifecycle state. Cheminee's live committed segment allocation was much more stable than its unreferenced/temporary files; those extra files are real observed allocation and remain charged. Quickwit retains obsolete splits, a local split cache and sparse WAL blocks. Neither published-split size alone nor a brief file-size-stability window establishes final post-cleanup disk usage. No garbage collection or merge was forced, no retained files were deleted to improve numbers, and no intrinsic compression winner is claimed.

Useful next investigations are profiling the locked native validation/indexing path before adding client concurrency; measuring safe preparation reuse while preserving the complete descriptor contract; and examining commit/merge/cleanup behavior with retained-file accounting. Those are future investigations, not changes made in this study. The present configuration result already provides a usable bulk path with verified records and bounded requests.

Limits

The full configurations have two repetitions for each selected comparison configuration and one fresh default-thread reference. Screening rows each have one run. That is enough to expose material limits and variation, not to establish production percentile guarantees or broad statistical superiority. Cache state was process-fresh but OS-warm; hardware was shared. No physical-media IOPS, allocator allocated-byte telemetry, true-cold-cache performance, power-loss durability, S3 performance or 1M indexing performance is inferred. Sampled peaks can miss short spikes. Container counters include measurement/controller work and shared cache charge; service counters and memory are reported separately. The original 100k preparation measurement is reused transparently rather than remeasured per repetition.

Reproduction and evidence

The preserved workspace is /workspace/cheminee-study. New material is under concurrency-study/ and runs/*-sweep-*; the original report, index runs and PR comment remain untouched. The local follow-up contains reports/summary.json, variation.json, disk-categories.json, the full comment text, input/binary checksum manifest, raw logs/responses, per-second resource JSONL, exact run settings, corpus-prefix manifest and stored/restart audits. reports/cpu-memory-disk.{png,svg} are local resource plots. These local paths are not public GitHub attachment URLs. All measured corpus data is public MOSES content and synthetic benchmark metadata; no secrets are included in this comment.

Representative commands in the preserved container/workspace follow. Use fresh unique tags; ingestion refuses an existing output directory. Run sequentially. A shared nonblocking engine lock covers both indexing and restart audits; the full-run controller also has an exclusive lock.

docker exec cheminee-study python3 /workspace/cheminee-study/harness/run_sweep_case.py quickwit --size 100000 --batch 200 --concurrency 1 --commit-seconds 30 --tag repro-qw-01
docker exec cheminee-study python3 /workspace/cheminee-study/harness/audit_sweep_restart.py --size 100000 --tag repro-qw-01
docker exec cheminee-study python3 /workspace/cheminee-study/harness/run_sweep_case.py cheminee --size 100000 --batch 1000 --concurrency 1 --rayon 2 --tag repro-chem-r2-01
docker exec cheminee-study python3 /workspace/cheminee-study/harness/run_sweep_case.py cheminee --size 100000 --batch 1000 --concurrency 1 --tag repro-chem-default-01
python3 /workspace/cheminee-study/harness/summarize_sweep.py
python3 /workspace/cheminee-study/harness/sweep_tables.py
python3 /workspace/cheminee-study/harness/sweep_variation.py
/workspace/cheminee-study/python/bin/python /workspace/cheminee-study/harness/plot_sweep.py

For screens, use --size 10000 and the batch/concurrency/thread combinations in the table, each with its own tag. sweep_full.py records the selection rule and sequential repeated-run order. Build/bootstrap wrappers, the exact homemade packages, model assets, corpus reconstruction and full-schema exporter are retained from the original study; binaries were reused after checksum verification, not silently rebuilt or changed. The input and prepared artifacts were reverified locally. Full-schema preparation accounting explicitly reuses the prior measured exporter stage.

One orchestration transition caused an unfinished Quickwit full run to overlap a new Rayon-2 screen. Both timing runs were rejected, stopped, archived under excluded-orchestration-overlap/, and rerun on fresh indexes with exclusive guards. The interrupted Quickwit diagnostic was separately restart-audited: 20,200 unique stored rows, zero content/duplicate errors; it was a partial dataset and is not a successful 100k result. No request replay was used to fill it. The failed attempt to reuse its output tag was also retained as a harness error, not an engine result. All reported repetitions are isolated runs.

Shutdown exit codes and any forced termination after the 40-second allowance are preserved in the tables/raw records. These occur after measurement windows. Complete stored/restart audits verify persisted content, but this is not a power-loss test. No attempt was made to change garbage-collection settings, delete retained files to improve storage numbers, or wait out the full obsolete-split grace. All error cases and excluded runs remain available for inspection.

@xrl xrl changed the title Verify molecular graph predicates before distributed top-K collection Run distributed graph search and full native Cheminee preparation Oct 11, 2026

xrl commented Oct 11, 2026 •

Copy link
Copy Markdown
Author

Completed native-preparation study — 2026-10-11

Full descriptor_v1 preparation now runs in Quickwit's actor/validation path with the original descriptors, fingerprints, scaffolds and TensorFlow learned cluster; no external preparation service/exporter. Timeout/replay fix retained. Measured head 7d9a4f1; delivery 1ac653e adds only license CSV metadata. Cheminee remains f8d31a604203392f4dfba7d9a84120100b8426b5, bindings 0ae060c9cfc14626172070989fee890b16454373.

Two uninstrumented full raw-input repetitions each, 100k deterministic MOSES, four CPU /14 GiB, local file storage:

Engine Mean seconds Mean CPU core-seconds Mean sampled peak RSS MiB
Cheminee B1000/C1 328.015 1219.505 3208.47
Native Quickwit B200/C1, auto30s 485.646 1036.575 674.19

Native uses about 15% less CPU /79% less peak RSS but 48% more wall time. All eight control/instrumented runs completed and exhaustive readbacks passed. Full 100k native/Cheminee preparation parity has zero mismatches, including learned clusters. All 954 query requests have expected statuses (22 intentional unsupported-range HTTP 400s); all returned matches/scores and native exact totals/global top-k pass. Default Cheminee similarity remains approximate. Separate fresh-process exact-quality top 100 observations: Cheminee 100%-cluster 38.9205s/39.56CPU, native 1.06857s/1.81CPU, n=1 each, tie-aware correct. Warm cached results and first-query costs are reported separately.

Extended lifecycle observation verified physical deletion of ten obsolete splits after the 32-minute grace, leaving seven published splits. CPU is attributed using exclusive thread CPU clocks with async/Rayon/TF-worker propagation and explicit reconciliation residuals. RSS/PSS remains shared process memory; allocating-stack ownership comes from separate heavily instrumented 1k runs, with no full 100k extrapolation. Historical exporter measurements remain separate. CPU-model, reconstructed-metadata/lock, caching, sample-size and two-day maturation limits are disclosed.

Final durable deliverables

All four ZIP archives passed CRC verification and contain per-file SHA256 manifests. Original indexes and evidence remain local. Executor stayed reachable through both disconnect notifications; no timed run was restarted.

Exact delivery-head CI verification — 2026-10-11 21:19 UTC

All implementation checks completed successfully at 1ac653e6d6ef23f894adb40a56b88fbc7c9daf4e:

Dependency Review remains the unchanged configuration blocker: its log says dependency review is not supported and asks that Dependency Graph be enabled. No repository setting was changed.

The unrelated local failure is doc_mapper::doc_mapper_impl::tests::test_concatenate_multiple_field. At line 1947 it receives Str("this is a text too") where it expects Str("this is a text"). The same assertion fails with exit 101 on original baseline 681733774139d965c89f81cc8a8cb58d572ff674, using cargo +1.96.1 test --locked -p quickwit-doc-mapper --features native-chemistry test_concatenate_multiple_field --lib. The test is unchanged. Evidence in the delivered archive: evidence/baseline-concatenation-test.log (SHA256 d688fa1729933d77364c7954328e639d0b4f4175d879b65213a8f1433eb6e786) and evidence/remaining-tests.log for the native checkout reproduction. The broader native local suite had 227 passes and this one failure; it was not weakened or called a flake.

The artifacts retain their timestamped earlier CI snapshot; this follow-up supersedes their pending-CI status only. No implementation correction was required during final verification, no completed benchmark was rerun, and PR #3 remains draft/unmerged.

@xrl xrl changed the title Run distributed graph search and full native Cheminee preparation Add full native Cheminee preparation and distributed chemistry search Oct 11, 2026

xrl commented Oct 11, 2026 •

Copy link
Copy Markdown
Author

Nested descriptor support is implemented at 6bf1e29. This follows the owner's explicit approval to push the schema change and add the findings to this draft PR; no merge or deployment was performed.

New indexes can set chemistry.descriptor_layout: nested and store the 43 numeric properties in one indexed, stored, fast JSON descriptors field. For example, descriptors.NumAtoms:>10 AND descriptors.NumAtoms:<20 and descriptors.exactmw:[136.2 TO 10000] work through Quickwit's query layer. The existing flat layout remains the default for compatibility. Changing layout requires a new index, raw-input reingestion, and the descriptors. query prefix.

Validation of the published change: 9 mapper chemistry tests; 352 nested golden descriptor/cluster queries; 82 additional range, Boolean, sorting, missing/null-path and chemistry-endpoint filter cases; and 352 legacy flat checks. Formatting, strict mapper clippy, and workspace/all-features/tests clippy pass locally. Acceptance cases · Configuration and migration.

No Tantivy fork was needed for these Quickwit queries. Chemistry preparation, fingerprints, scaffolds, learned clusters and the timeout/replay fix are unchanged. The earlier 100k performance figures remain prior/exploded-schema measurements; nested-layout performance has not been benchmarked.

Final exact-head verification: main CI, DataFusion CI, and distributed chemistry, including exhaustive graph parity all passed. Dependency Review reports disabled Dependency Graph; repository settings remain unchanged.

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