Files
mempalace/tests
Joshua Fontany e64aa92f0d test(chroma): assert the HNSW defaults rather than a threshold arithmetic
test_hnsw_write_defaults_bound_index_rewrites divided a hypothetical
corpus size by the configured sync_threshold and read the quotient as a
count of full on-disk index rewrites. It measured no writes, no
compactions, no persistence calls and no rewritten bytes, so it asserted
arithmetic on a constant rather than a property of the implementation.
The metadata tests already cover the defaults, and a write-amplification
regression wants I/O measurement under the benchmark suite.

Two neighbouring docstrings carried the same reasoning in prose and now
state what holds: the values are chromadb's own documented defaults, so a
collection this backend creates indexes on the same terms as one chromadb
creates itself, and sync_threshold=2 reads as a value chromadb's own
parameter validation rejects.

The threshold relationship now reads batch_size <= sync_threshold, which
is what chromadb permits.

_hnsw_creation_metadata(options) reads hnsw_space directly, so
get_collection's local copy of that resolution had no reader; removing it
leaves the option's path to a created collection unchanged.

tests/test_backends.py: 91 passed. Backend/palace selection: 593 passed,
16 skipped.
2026-08-05 10:27:05 -07:00
..
2026-08-02 05:34:29 -03:00