adding phrase matching to ebook rag engen #36

Merged
Richie merged 36 commits from feature/adding-phrase-matching-to-ebook-rag-engen into main 2026-07-25 10:17:10 -04:00
3 changed files with 8 additions and 2 deletions
Showing only changes of commit 5c826088c5 - Show all commits
+5
View File
@@ -218,6 +218,11 @@ button:hover {
margin-bottom: 24px;
}
.actions-grid {
display: grid;
grid-template-columns: repeat(2, max-content);
}
/* Answer + results */
#results {
display: block;
+1 -1
View File
@@ -52,7 +52,7 @@ head %}
</section>
<section>
<h2>Protected phrases</h2>
<section class="actions">
<section class="actions actions-grid">
<form
hx-post="/admin/phrases/generate-all"
hx-target="#admin-status"
@@ -7,7 +7,8 @@
<h1>Search</h1>
<form class="card" hx-post="/search" hx-target="#results" hx-swap="innerHTML">
<label for="query">What are you looking for?</label>
<textarea id="query" name="query" rows="4" placeholder="Ask a question or paste a passage…" required></textarea>
<textarea id="query" name="query" rows="4" placeholder="Ask a question or paste a passage…" required
onkeydown="if (event.key === 'Enter' && !event.shiftKey) { event.preventDefault(); this.form.requestSubmit(); }"></textarea>
<div class="form-row">
<div class="search-toggles">
<label class="check">