Skip to content

Commit b62321f

Browse files
release: v1.2.2
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a342f00 commit b62321f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ Custom design system with warm parchment aesthetic (`#f5f0e8` background, `#2a2a
7474
- HFRedirectMiddleware in `app.py` redirects direct `hf.space` visits to custom domain (uses `X-Original-Host` header to distinguish proxy vs direct traffic)
7575
- Docker exposes port 7860 (HuggingFace Spaces default)
7676
- Version is defined in `pyproject.toml`; also displayed in sidebar (`static/index.html` `.sidebar-version`) -- keep both in sync when bumping
77-
- Per-verse feedback: thumbs up/down on result cards, buffered to JSONL, flushed to HF Dataset repo `adedaran/rag-bible-feedback` every 5 min or 50 records. `POST /feedback` endpoint returns 204 (fire-and-forget). Config in `config.py` (`FEEDBACK_*` constants). `HF_TOKEN` env var required for flush to work. Each record includes a `session_id` (UUID generated client-side via `crypto.randomUUID()`, stored in `sessionStorage` so each tab gets its own ID)
77+
- Per-verse feedback: thumbs up/down on result cards, buffered to JSONL, flushed to HF Dataset repo `adedaran/rag-bible-feedback` every 5 min or 50 records. `POST /feedback` endpoint returns 204 (fire-and-forget). Config in `config.py` (`FEEDBACK_*` constants). `HF_TOKEN` env var required for flush to work. Each record includes a `session_id` (UUID generated client-side via `crypto.randomUUID()` with `Math.random` fallback for older browsers, stored in `sessionStorage` with try/catch for Safari ITP restrictions)
7878
- `FEEDBACK_ENV` auto-detected: `"production"` on HF Spaces (`SPACE_ID` set), `"local"` otherwise. Override with `FEEDBACK_ENV=production`. Local mode writes to `data/feedback_buffer_local.jsonl` and never flushes to HF. Production mode uses `data/feedback_buffer.jsonl` with HF flush. Each record includes a `source` field

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "rag-bible"
3-
version = "1.2.1"
3+
version = "1.2.2"
44
description = "French Bible RAG system with FAISS + cross-encoder reranking"
55
requires-python = ">=3.12"
66
dependencies = [

static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<h2 class="sidebar-title">Historique</h2>
6666
<div class="history-list"></div>
6767
<p class="history-empty">Vos recherches apparaîtront ici</p>
68-
<p class="sidebar-version">v1.2.1</p>
68+
<p class="sidebar-version">v1.2.2</p>
6969
</aside>
7070

7171
<div class="hero-section">

0 commit comments

Comments
 (0)