Changelog¶
All notable changes to tiervec are in this file. The layout follows Keep a Changelog. The version rule and the steps of a release are in docs/RELEASING.md. Until 1.0, a breaking change to the supported surface (docs/API.md) needs a new minor version.
Unreleased¶
Added¶
checkpointaccepts a tier whose tail is not empty and builds no segment for it: the rows go into a tail file (tail-<generation>.tvt) andopenputs them back into the tail. The high-water id of a checkpoint now covers the tail, so a host replays only what it applied afterwards;openwith a record source checks the tail ids too.Capability.PERSISTED_TAILsays that no seal is needed first. One-way format change: the manifest is major 2. Directories written before still open; 0.1.0 and 0.1.1 refuse a directory written by this version, withUnsupportedException, also oncheckpoint, and also when the tail was empty. The cost of a checkpoint with a tail and of the open is not measured yet (docs/SEGMENT-FORMAT.md, issue #158).- The checksum that a manifest holds of its tombstone file now covers the content of that file. Before, it was taken over the whole file, which ends in its own checksum, so it came out the same for any content, and a tombstone file with the same generation, segments, and row counts but other marked rows opened. Part of manifest major 2; a directory of major 1 is checked as before (issue #173).
TieredIndex.VectorStorageandConfig.withVectorStorage(configuration keyvectorStorage): withMAPPED,openleaves the fp32 vectors of every segment that it reads in the mapped segment file instead of copying them into the heap, and each distance copies its row first. The default staysHEAP, because fp32 searches on mapped vectors were mostly measured slower (docs/BENCHMARKS.md). The library never unmaps; a retired segment file that Windows refuses to delete while it is mapped stays for a later checkpoint or open (docs/SEGMENT-FORMAT.md).Capability.MAPPED_VECTORSsays that the option exists.Confighas one more record component, and the constructors without it still exist (issue #27).- A partial result of a stopped search, on request: a
SearchContextthat returns true from the new default methodpartialWanted()finds inSearchCancelledException.partialHits()the best hits of the tails and segments that were read to the end, and nothing when a batch was applied during the search. Without the request nothing changes (issue #134). SizedIdFilter: aLongPredicatethat says how many ids it allows. When the count is at mostef,TieredIndex,GraphIndexandSealedGraphscan the allowed ids exactly instead of walking the graph; a wrong count never changes which ids may be returned. AlsoliveCount()andCapability.SELECTIVE_PLAN. The threshold is not measured (issue #12).HostEnv: a tier that runs on the host's executor, creates no thread of its own, asks a permit before every seal, merge and rebuild, and reads a memory budget; the peak estimate is not measured (issue #13).- The configuration as text:
Config.toMap,Config.fromMap(refuses an unknown key, for the creation of an index),Config.fromStoredMap(reports and ignores one, so a downgrade opens), andConfig.fingerprintover the data-affecting settings.TieredIndex.reconfigurechanges the search-time knobsgraph.efSearchandsplitBeamof an open index (issue #18). TieredIndex.contractVersionandcapabilities(ContractVersion,Capability),metricsandbindMetrics(MetricSink),health(TieredIndex.Health), and the exception baseTiervecExceptionwithCorruptStateException,ClosedException, andBuildRefusedException;SearchCancelledExceptionextends the base now (issue #18).TieredIndex.MergeModeandConfig.withMergeMode: withINSERT, a merge that takes the largest segment copies its graph and inserts the vectors of the other inputs instead of rebuilding everything. The default staysREBUILD, and the cost of the two has not been measured.Confighas one more record component, and the constructors without it still exist (issue #16).SearchContextandSearchCancelledException: theTieredIndex.searchoverloads that take a context stop at a deadline or a cancel flag of the host. The context is polled at least once every 1024 candidates, and a stopped search returns no partial result (issue #11). A call that passes a literalnullas the fourth argument ofsearchneeds a cast now, because two overloads accept it.- Benchmark harness:
--datareads a real embedding set thatscripts/prep_real_dataset.pyconverts from parquet (raw float32 files with exact answers), and--engine jvectorbuilds and searches the same data with JVector at the sameMandefConstruction, in the bench profile only (JVector is not a dependency of the library). A CI smoke runs both on a small generated set (docs/BENCHMARKS.md, issue #108). - Benchmark harness:
--quant int8runs JVector on int8 vectors, with and without a float32 rerank, and--quant sq8builds the tier with SQ8 codes.--targetsreports latency at matched recall,--diskthe size of the written index,--propschecks that a write is found by the next search and that a reused id never answers with its old vector, and--sharesnow works with the JVector arm. The bench profile moves to JVector 4.1.0-rc.1 (issue #118).
Changed¶
TieredIndexno longer keeps a version floor map. Each hidden row of a segment carries the version at which it was hidden, and a seal or a merge marks the rows that were hidden while it built. A search no longer counts itself on a view, andawaitIdleno longer waits for searches that run on a replaced view.Stats.floorEntriesandtiervec.floorEntriesnow count the hidden rows of the segments, which differs from the old count of ids only when one id has several hidden copies. The file format does not change. Searches and batches answer as before (issue #163).- Breaking:
TieredIndex.open(dir, config)throws the uncheckedCorruptStateExceptionfor damaged files, where it threw the checkedSegmentFormat.CorruptException. CatchCorruptStateException; its cause is the old exception.UnsupportedException,MismatchException,NoSuchFileException, and theopenoverloads with a rebuild source behave as before (issue #18). - Breaking: after
close, the calls that read or change vectors or files (add,delete,apply,search,rebuildFrom,sealNow,mergeNow,checkpoint) throwClosedException. Before, most of them still worked on the memory of the closed index. A build thatcloseinterrupts throws it too, where it threwIllegalStateException(issue #18). - One process owns an index directory, and the library now enforces it:
checkpointandopenlock the fileLOCKin the directory, keep the lock untilclose, and throw the newDirectoryLockedExceptionwhen another process holds it. Theopenoverloads with a rebuild source throw it too and do not rebuild (issue #27). checkpointaccepts a tier with deleted, replaced and re-added ids. It writes the hidden rows into the tombstone file, andopenrebuilds the floor map from them. Before, it threwIllegalStateExceptionuntil a merge had rewritten every segment with a hidden row. Version 0.1.x refuses a directory with a hidden row (UnsupportedException) and does not overwrite it.RecordSource.isLiveis not called for an id whose copies were all hidden at the checkpoint (issue #27).
Fixed¶
sealNow,mergeNow,rebuildFromandcheckpointget their turn while writes go on. Before, the background worker could take the lock of the builds again right after each task, so under steady writes such a call could wait for as long as the writes went on (#144).- The fp32 graph kernels of a JVM (
VKern) sum the lanes in a fixed order, like the flat kernels. Before, the sum wasreduceLanes(ADD), whose order depends on the JIT tier, so the same search could return a score one ulp apart before and after compilation. This showed as a rare failure ofSegmentForgedFileTeston arm64 (#104). A score can differ from the one of 0.1.0 in the last bit. - A flipped bit in the major version of a segment header is damage (
CorruptException, sectionHEADER), soTieredIndex.openfalls back to the previous generation. Before, the version was read before the header CRC, and one flipped bit there in the newest segment made the whole open fail withUnsupportedException. A larger major version with an intact header is still refused (#116). - A flipped bit in the major version of a manifest is damage (
CorruptException), soTieredIndex.openfalls back to the previous generation and a latercheckpointreplaces the files. Before, the version was read before the CRC:openand everycheckpointinto the directory failed withUnsupportedException(#123). - A segment file whose first eight bytes are damaged is refused with
CorruptException(sectionHEADER) and notUnsupportedException, and the message names the file and the field. Before, one flipped bit in the magic of the newest segment madeTieredIndex.openfail, where a flipped bit in the header, footer or locator made it fall back to the previous generation. A larger major version is still anUnsupportedExceptionthat is refused, not skipped (#83). TieredIndex.openflushes the directory before it deletes the files of an older generation. Before, after a process was killed between the rename of a manifest and the flush that follows it, the next open removed the previous generation while the rename was still unflushed, so a power cut at that point could leave no generation at all (#125).checkpointflushes the name of a directory that it creates into its parent. Before, a power cut after the firstcheckpointinto a new directory had returned could lose the whole directory (#126).
0.1.1 - 2026-11-13¶
The library code is unchanged from 0.1.0: no source file changed. The changes are in the release workflow and the pom.
Changed¶
- Creating the GitHub release now publishes to Maven Central by itself and verifies the result (checksums, signatures, the built jars, a resolution from a fresh local repository), so the Publish click in the Central Portal is gone (docs/RELEASING.md).
0.1.0 - 2026-11-12¶
The first release. It is the sources of the first experiment, imported and brought to the supported surface in docs/API.md. Nothing was released under the old package name. Details are in docs/STATUS.md.
Added¶
FlatIndex: exact scan with optional SQ8 or binary codes, compaction,serializeandload.GraphIndex: a concurrent HNSW graph with delete,consolidate, and optional SQ8.IvfIndex: a standalone inverted-file index with lazy training, background retrain and drift detection.TieredIndex: an exact tail, sealed graph segments, background merges, tombstones with a version floor, atomic batches (apply,awaitCapacity),rebuildFrom, and an opt-in scan-first plan for filtered searches (filterScanBelow).- Persistence of a settled tier:
TieredIndex.checkpointandTieredIndex.open, with segment files and a manifest (docs/SEGMENT-FORMAT.md), andRecordSourcefor reconciling a reopened tier with the records of a host database (docs/ID-EPOCH-AND-REPLAY.md). - Scalar twins of every kernel, used when the Vector API module is missing, and Vector API kernels for aarch64 and for GraalVM native images.
- A GraalVM native image smoke test on Linux (x86-64 and arm64), macOS arm64 and Windows x64.
- CI on JDK 21 and 25, with the fast tests also on arm64 and on Windows x64.
- Community files (CONTRIBUTING, SECURITY, SUPPORT, and the issue and pull request templates) and the platform support table in the README.
- The supported public surface and the stability policy (docs/API.md).
- A benchmark harness for the tier (
src/bench, docs/BENCHMARKS.md) with a CI smoke at 10,000 vectors. No result file is published yet. - Maven Central publishing for
ai.humem:tiervec: the metadata Central requires inpom.xml, areleaseprofile (sources jar, javadoc jar, GnuPG signatures, upload to the Central Portal), and the workflowrelease-central.ymlwith a dry run (docs/RELEASING.md). - The documentation is published as a release version with the alias
latestwhen a version tag is pushed, anddevstays the label ofmain.
Changed¶
- Package renamed from
com.humemai.vectoai.humem.tiervec(no other change). The system property that forces the scalar twins was renamed with it, fromhumemai.vec.scalartoai.humem.tiervec.scalar.