fix: critical bugs and hardening from validation audit

- Fix infinite loop in chunker _hard_split when overlap >= max_size
- Fix tag filter false positives by quoting tag values in ChromaDB query
- Fix score boost semantics (additive → multiplicative) to stay within 0-1 range
- Add error handling and type hints to all API routes
- Update README with proper project documentation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-05 09:35:37 -04:00
parent b4afbbb53a
commit 6081462058
5 changed files with 117 additions and 25 deletions

View File

@@ -128,7 +128,7 @@ def _rank_chunks(
hint_lower = project_hint.lower()
if hint_lower in tags_str or hint_lower in source_str or hint_lower in title_str:
final_score += 0.3
final_score *= 1.3
scored.append((final_score, chunk))