haiku.rag/haiku_rag_slim/haiku/rag/reranking
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 Reject unknown and out-of-range configuration values 2026-08-19 15:32:51 +03:00
base.py Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
cohere.py Reject unknown and out-of-range configuration values 2026-08-19 15:32:51 +03:00
cross_encoder.py Reject unknown and out-of-range configuration values 2026-08-19 15:32:51 +03:00
jina.py Pool HTTP clients for vLLM embedding and vLLM/Jina reranking 2026-07-09 10:32:44 +03:00
jina_local.py Reject unknown and out-of-range configuration values 2026-08-19 15:32:51 +03:00
vllm.py Delete comments that restate the line below them 2026-08-20 15:22:33 +03:00
zeroentropy.py Delete comments that restate the line below them 2026-08-20 15:22:33 +03:00