fix: audit remediation Wave 1 — correctness fixes C-1, C-4, C-11 (+ doc fixes) #12
@@ -295,7 +295,8 @@ class Settings(BaseSettings):
|
|||||||
le=1.0,
|
le=1.0,
|
||||||
description=(
|
description=(
|
||||||
"Weight of the PageRank citation-boost in hybrid search. "
|
"Weight of the PageRank citation-boost in hybrid search. "
|
||||||
"Final score = dense_score * (1 + alpha * pagerank_score). "
|
"boosted_distance = distance / (1 + alpha * pagerank_score) — dividing "
|
||||||
|
"lowers the cosine distance of high-PageRank papers (lower = closer). "
|
||||||
"Set to 0.0 to disable the boost without removing the flag."
|
"Set to 0.0 to disable the boost without removing the flag."
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -773,10 +773,11 @@ def write_leads(leads: list[Lead], leads_dir: str) -> None:
|
|||||||
* Grounded leads → ``leads_dir/grounded/<id>.md``
|
* Grounded leads → ``leads_dir/grounded/<id>.md``
|
||||||
* Conjectures → ``leads_dir/conjectures/<id>.md`` (HARD invariant)
|
* Conjectures → ``leads_dir/conjectures/<id>.md`` (HARD invariant)
|
||||||
|
|
||||||
The function ALSO maintains an append-only ``leads_dir/INDEX.md``:
|
The function ALSO rebuilds ``leads_dir/INDEX.md`` from the on-disk files on
|
||||||
a previously-recorded id is kept on subsequent runs even if it is
|
every run (see :func:`_update_index`): it reflects whatever lead files
|
||||||
overwritten with a newer body. The two sections (grounded /
|
currently exist under ``grounded/`` and ``conjectures/``, listed as two
|
||||||
conjectures) are visibly separated.
|
visibly separated sections. It is not append-only — a deleted lead file
|
||||||
|
drops out of the index on the next run.
|
||||||
|
|
||||||
Notes
|
Notes
|
||||||
-----
|
-----
|
||||||
|
|||||||
Reference in New Issue
Block a user