r/PythonProjects2 • u/scapaflow96 • 13h ago
Ported my game from Pygame to Raylib.
Feels like jumping from an old horse onto a fresh stallion.
r/PythonProjects2 • u/scapaflow96 • 13h ago
Feels like jumping from an old horse onto a fresh stallion.
r/PythonProjects2 • u/Plastic88823 • 8h ago
r/PythonProjects2 • u/Classic_Mortgage_889 • 16h ago
r/PythonProjects2 • u/Free-Good9203 • 20h ago
Built a zero-dependency Python 3.11+ evaluation harness and inline citation gate (`rag-eval-hallucination-gate`, MIT) using only the Python standard library and SQLite (`WAL` + `FTS5`).
The goal is to run a deterministic verification pass before a RAG response goes out, without paying for a second LLM-as-judge call on every check:
Recent fix: someone on Reddit pointed out an edge case where `"0,125"` parsed as `125` because the US thousands regex allowed a leading `0` while EU decimals capped at 2 digits. Tightening that prefix to `[1-9]\d{0,2}` and allowing `\d+,\d+` fixed leading-zero EU decimals (`0,125`, `-0,005`). One known limitation we keep documented in tests: bare 3-digit dot-separated strings without a comma (like `"1.250"`) are still parsed as EU thousands (`1250`), so mixed-locale corpora need an explicit decimal/grouping cue.
Quickstart (86 pytest checks on Python 3.11/3.12 CI, `--demo` runs fully in-memory):
Happy to get code review feedback on the deterministic claim/polarity checks or the SQLite WAL + FTS5 store design.Built a zero-dependency Python 3.11+ evaluation harness and inline citation gate (`rag-eval-hallucination-gate`, MIT) using only the Python standard library and SQLite (`WAL` + `FTS5`).
The goal is to run a deterministic verification pass before a RAG response goes out, without paying for a second LLM-as-judge call on every check:
Recent fix: someone on Reddit pointed out an edge case where `"0,125"` parsed as `125` because the US thousands regex allowed a leading `0` while EU decimals capped at 2 digits. Tightening that prefix to `[1-9]\d{0,2}` and allowing `\d+,\d+` fixed leading-zero EU decimals (`0,125`, `-0,005`). One known limitation we keep documented in tests: bare 3-digit dot-separated strings without a comma (like `"1.250"`) are still parsed as EU thousands (`1250`), so mixed-locale corpora need an explicit decimal/grouping cue.
Quickstart (86 pytest checks on Python 3.11/3.12 CI, `--demo` runs fully in-memory):
Happy to get code review feedback on the deterministic claim/polarity checks or the SQLite WAL + FTS5 store design.