Merge pull request 'tune(learning): סף-אשכול סינתזת-לקחים 0.82 → 0.68 (#158)' (#349) from worktree-synth-threshold-068 into main
This commit was merged in pull request #349.
This commit is contained in:
@@ -286,7 +286,12 @@ LESSON_SYNTH_MODEL = os.environ.get("LESSON_SYNTH_MODEL", HALACHA_EXTRACT_MODEL)
|
|||||||
LESSON_SYNTH_EFFORT = os.environ.get("LESSON_SYNTH_EFFORT", "high")
|
LESSON_SYNTH_EFFORT = os.environ.get("LESSON_SYNTH_EFFORT", "high")
|
||||||
LESSON_SYNTH_DRIFT_FLOOR = float(os.environ.get("LESSON_SYNTH_DRIFT_FLOOR", "0.80"))
|
LESSON_SYNTH_DRIFT_FLOOR = float(os.environ.get("LESSON_SYNTH_DRIFT_FLOOR", "0.80"))
|
||||||
# Cosine floor for two lessons to land in the same cluster (greedy, within shard).
|
# Cosine floor for two lessons to land in the same cluster (greedy, within shard).
|
||||||
LESSON_SYNTH_CLUSTER_THRESHOLD = float(os.environ.get("LESSON_SYNTH_CLUSTER_THRESHOLD", "0.82"))
|
# Tuned empirically (#158 dry-run, 81 lessons): the lessons are diverse (median
|
||||||
|
# pairwise cosine ~0.48, max ~0.72), so 0.82 merged nothing. 0.68 captures the real
|
||||||
|
# near-duplicates (5 faithful clusters across rishuy+betterment, all clearing the
|
||||||
|
# 0.80 drift gate) without merging weakly-related lessons; the drift gate is the
|
||||||
|
# quality backstop below this.
|
||||||
|
LESSON_SYNTH_CLUSTER_THRESHOLD = float(os.environ.get("LESSON_SYNTH_CLUSTER_THRESHOLD", "0.68"))
|
||||||
|
|
||||||
# Mistral OCR (fallback for scanned PDFs — replaces Google Cloud Vision)
|
# Mistral OCR (fallback for scanned PDFs — replaces Google Cloud Vision)
|
||||||
MISTRAL_API_KEY = os.environ.get("MISTRAL_API_KEY", "")
|
MISTRAL_API_KEY = os.environ.get("MISTRAL_API_KEY", "")
|
||||||
|
|||||||
Reference in New Issue
Block a user