P2-02: Precedent DB is exact-match only — no semantic similarity search #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: P2 (Medium)
File:
decider/precedent.pyProblem
The precedent database uses SHA256("normalized input") for hash-based lookup. This means:
The normalization (
lowercase → remove punctuation → sorted words) helps slightly but still misses semantically similar situations.Fix
Add a fallback similarity search when exact match fails:
Alternatively, implement a simpler keyword overlap approach using FTS5 in SQLite.