haiku.rag/haiku_rag_slim/haiku/rag/store/upgrades
Yiorgis Gozadinos 4967765878
Delete comments that restate the line below them
Sixty-three comments said what the next statement already said: # Connect to
LanceDB above connect_lancedb, # Path object above isinstance(source, Path),
# Get page numbers from provenance above the prov loop, # Clear and populate
results above list_view.clear(). They cost a read and carry nothing.

The line is whether a comment restates one statement or labels a phase. Phase
labels stay: the migrations keep # Create staging table with new schema and
# Copy from staging to final table in batches, each heading ten lines of a
long procedure. So do comments carrying a fact the code cannot: the
merge_insert update-only note on document_meta, why the poller builds sources
eagerly, why create_document_from_source returns a list for directories, that
indexes need training data, the field-group markers in the config models, and
the file:// URL-encoding note in create_document_from_source.

capabilities/ is untouched. Its docstrings sit next to prompt surface, and
changing them needs an eval to back it.

The cassette-recording docs were wrong three ways. They named
tests/test_qa.py::test_qa_anthropic, which no longer exists; they targeted
whole modules, so a rewrite would re-record cassettes for services the
recorder is not running; and they used COHERE_API_KEY where the SDK reads
CO_API_KEY. docs/development.md now names exact tests with -n0, and the keyed
example is test_cohere_reranker, which owns the one cassette recording
api.cohere.com.
2026-08-20 15:22:33 +03:00
..
__init__.py Migrate existing databases to the full index set 2026-08-17 16:34:58 +03:00
v0_20_0.py Migrate LanceDB to native async API 2026-04-24 14:42:52 +03:00
v0_23_1.py Migrate LanceDB to native async API 2026-04-24 14:42:52 +03:00
v0_25_0.py Delete comments that restate the line below them 2026-08-20 15:22:33 +03:00
v0_38_0.py Collapse docling compression to a single function 2026-06-24 10:43:27 +03:00
v0_40_0.py fix migration failures on pre-v0.48.0 document_items schemas 2026-05-21 10:53:21 +03:00
v0_45_0.py Bump lancedb to 0.34.0 2026-07-16 12:32:56 +03:00
v0_48_0.py Split the store module by responsibility 2026-08-20 12:13:51 +03:00
v0_50_0.py vacuum db after migration 2026-05-26 11:44:47 +03:00
v0_58_0.py Split the store module by responsibility 2026-08-20 12:13:51 +03:00
v0_64_0.py Rename document_meta identity column document_id to id 2026-07-08 16:32:55 +03:00
v0_75_0.py Split the store module by responsibility 2026-08-20 12:13:51 +03:00