Skip to content

Instantly share code, notes, and snippets.

View etrapeznikov's full-sized avatar

Eugene Trapeznikov etrapeznikov

View GitHub Profile
@etrapeznikov
etrapeznikov / queries_prompt_v4_to_v6_share.diff
Created May 1, 2026 20:29
Genie queries prompt v4->v6 diff (share version)
diff --git a/projects/genie/genie/prompts/queries_prompt_v4.j2 b/projects/genie/genie/prompts/queries_prompt_v6.j2
index 31d25e2d..e302eabd 100644
--- a/projects/genie/genie/prompts/queries_prompt_v4.j2
+++ b/projects/genie/genie/prompts/queries_prompt_v6.j2
@@ -1,12 +1,12 @@
You are an Etsy shopping assistant generating forward-looking, discovery-oriented search queries based on user profiles and recent activity.
-NOTE: TODAY'S DATE is provided at the top of this message. Use it to filter out-of-season HOLIDAY content only.
+NOTE: **Current date:** {{CURRENT_DATE}}. **Reference horizon (60 days after current date):** {{FUTURE_DATE}}. Use these to filter out-of-season HOLIDAY content and to reason about timely vs evergreen exploration.
@etrapeznikov
etrapeznikov / queries_prompt_v4_to_v6_share.diff
Created May 1, 2026 20:29
Genie queries prompt v4->v6 diff (share version)
diff --git a/projects/genie/genie/prompts/queries_prompt_v4.j2 b/projects/genie/genie/prompts/queries_prompt_v6.j2
index 31d25e2d..e302eabd 100644
--- a/projects/genie/genie/prompts/queries_prompt_v4.j2
+++ b/projects/genie/genie/prompts/queries_prompt_v6.j2
@@ -1,12 +1,12 @@
You are an Etsy shopping assistant generating forward-looking, discovery-oriented search queries based on user profiles and recent activity.
-NOTE: TODAY'S DATE is provided at the top of this message. Use it to filter out-of-season HOLIDAY content only.
+NOTE: **Current date:** {{CURRENT_DATE}}. **Reference horizon (60 days after current date):** {{FUTURE_DATE}}. Use these to filter out-of-season HOLIDAY content and to reason about timely vs evergreen exploration.
@etrapeznikov
etrapeznikov / queries_prompt_v4_to_v6_latest.diff
Created May 1, 2026 20:27
Genie queries prompt v4->v6 diff (latest)
diff --git a/projects/genie/genie/prompts/queries_prompt_v4.j2 b/projects/genie/genie/prompts/queries_prompt_v6.j2
index 31d25e2d..142c8706 100644
--- a/projects/genie/genie/prompts/queries_prompt_v4.j2
+++ b/projects/genie/genie/prompts/queries_prompt_v6.j2
@@ -1,12 +1,12 @@
You are an Etsy shopping assistant generating forward-looking, discovery-oriented search queries based on user profiles and recent activity.
-NOTE: TODAY'S DATE is provided at the top of this message. Use it to filter out-of-season HOLIDAY content only.
+NOTE: **Current date:** {{CURRENT_DATE}}. **Reference horizon (60 days after current date):** {{FUTURE_DATE}}. Use these to filter out-of-season HOLIDAY content and to reason about timely vs evergreen exploration.
@etrapeznikov
etrapeznikov / queries_prompt_v4_to_v6_latest.diff
Created May 1, 2026 20:27
Genie queries prompt v4->v6 diff (latest)
diff --git a/projects/genie/genie/prompts/queries_prompt_v4.j2 b/projects/genie/genie/prompts/queries_prompt_v6.j2
index 31d25e2d..142c8706 100644
--- a/projects/genie/genie/prompts/queries_prompt_v4.j2
+++ b/projects/genie/genie/prompts/queries_prompt_v6.j2
@@ -1,12 +1,12 @@
You are an Etsy shopping assistant generating forward-looking, discovery-oriented search queries based on user profiles and recent activity.
-NOTE: TODAY'S DATE is provided at the top of this message. Use it to filter out-of-season HOLIDAY content only.
+NOTE: **Current date:** {{CURRENT_DATE}}. **Reference horizon (60 days after current date):** {{FUTURE_DATE}}. Use these to filter out-of-season HOLIDAY content and to reason about timely vs evergreen exploration.
@etrapeznikov
etrapeznikov / queries_prompt_v4_to_v6.diff
Created May 1, 2026 19:35
Genie queries prompt v4->v6 diff (post-alignment updates)
diff --git a/projects/genie/genie/prompts/queries_prompt_v4.j2 b/projects/genie/genie/prompts/queries_prompt_v6.j2
index 31d25e2d..142c8706 100644
--- a/projects/genie/genie/prompts/queries_prompt_v4.j2
+++ b/projects/genie/genie/prompts/queries_prompt_v6.j2
@@ -1,12 +1,12 @@
You are an Etsy shopping assistant generating forward-looking, discovery-oriented search queries based on user profiles and recent activity.
-NOTE: TODAY'S DATE is provided at the top of this message. Use it to filter out-of-season HOLIDAY content only.
+NOTE: **Current date:** {{CURRENT_DATE}}. **Reference horizon (60 days after current date):** {{FUTURE_DATE}}. Use these to filter out-of-season HOLIDAY content and to reason about timely vs evergreen exploration.
@etrapeznikov
etrapeznikov / queries_prompt_v5_to_v6.diff
Created May 1, 2026 19:35
Genie queries prompt v5->v6 diff (post-alignment updates)
diff --git a/projects/genie/genie/prompts/queries_prompt_v5.j2 b/projects/genie/genie/prompts/queries_prompt_v6.j2
index 97269f3b..142c8706 100644
--- a/projects/genie/genie/prompts/queries_prompt_v5.j2
+++ b/projects/genie/genie/prompts/queries_prompt_v6.j2
@@ -25,6 +25,18 @@ INPUT DATA (use ALL sources for foresight):
* Each item may include **`category`** as a dotted taxonomy path — use it to extract the **L2** value (last segment) as defined above
* IMPORTANT: This may include the user's "region" field — use this to determine appropriate seasonal content
* DO NOT over-index on recent activity alone — balance with profile data above — but **do** use **L2** diversity to avoid repeating the same browsing lanes
+- If `previous_ideas` / previously shown ideas are provided, avoid reusing them.
+
@etrapeznikov
etrapeznikov / queries_prompt_v5_to_v6.diff
Created May 1, 2026 19:25
Genie queries prompt v5->v6 diff (lite, queries-only groups)
diff --git a/projects/genie/genie/prompts/queries_prompt_v5.j2 b/projects/genie/genie/prompts/queries_prompt_v6.j2
index 97269f3b..e9f32ed3 100644
--- a/projects/genie/genie/prompts/queries_prompt_v5.j2
+++ b/projects/genie/genie/prompts/queries_prompt_v6.j2
@@ -25,6 +25,18 @@ INPUT DATA (use ALL sources for foresight):
* Each item may include **`category`** as a dotted taxonomy path — use it to extract the **L2** value (last segment) as defined above
* IMPORTANT: This may include the user's "region" field — use this to determine appropriate seasonal content
* DO NOT over-index on recent activity alone — balance with profile data above — but **do** use **L2** diversity to avoid repeating the same browsing lanes
+- If `previous_ideas` / previously shown ideas are provided, avoid reusing them.
+
@etrapeznikov
etrapeznikov / queries_prompt_v4_to_v6.diff
Created May 1, 2026 19:25
Genie queries prompt v4->v6 diff (lite, queries-only groups)
diff --git a/projects/genie/genie/prompts/queries_prompt_v4.j2 b/projects/genie/genie/prompts/queries_prompt_v6.j2
index 31d25e2d..e9f32ed3 100644
--- a/projects/genie/genie/prompts/queries_prompt_v4.j2
+++ b/projects/genie/genie/prompts/queries_prompt_v6.j2
@@ -1,12 +1,12 @@
You are an Etsy shopping assistant generating forward-looking, discovery-oriented search queries based on user profiles and recent activity.
-NOTE: TODAY'S DATE is provided at the top of this message. Use it to filter out-of-season HOLIDAY content only.
+NOTE: **Current date:** {{CURRENT_DATE}}. **Reference horizon (60 days after current date):** {{FUTURE_DATE}}. Use these to filter out-of-season HOLIDAY content and to reason about timely vs evergreen exploration.
@etrapeznikov
etrapeznikov / queries_prompt_v5_to_v6.diff
Created May 1, 2026 19:18
Genie queries prompt v5->v6 diff (lite)
diff --git a/projects/genie/genie/prompts/queries_prompt_v5.j2 b/projects/genie/genie/prompts/queries_prompt_v6.j2
index 97269f3b..ce13a7f1 100644
--- a/projects/genie/genie/prompts/queries_prompt_v5.j2
+++ b/projects/genie/genie/prompts/queries_prompt_v6.j2
@@ -25,6 +25,18 @@ INPUT DATA (use ALL sources for foresight):
* Each item may include **`category`** as a dotted taxonomy path — use it to extract the **L2** value (last segment) as defined above
* IMPORTANT: This may include the user's "region" field — use this to determine appropriate seasonal content
* DO NOT over-index on recent activity alone — balance with profile data above — but **do** use **L2** diversity to avoid repeating the same browsing lanes
+- If `previous_ideas` / previously shown ideas are provided, avoid reusing them.
+
@etrapeznikov
etrapeznikov / queries_prompt_v4_to_v6.diff
Created May 1, 2026 19:18
Genie queries prompt v4->v6 diff (lite)
diff --git a/projects/genie/genie/prompts/queries_prompt_v4.j2 b/projects/genie/genie/prompts/queries_prompt_v6.j2
index 31d25e2d..ce13a7f1 100644
--- a/projects/genie/genie/prompts/queries_prompt_v4.j2
+++ b/projects/genie/genie/prompts/queries_prompt_v6.j2
@@ -1,12 +1,12 @@
You are an Etsy shopping assistant generating forward-looking, discovery-oriented search queries based on user profiles and recent activity.
-NOTE: TODAY'S DATE is provided at the top of this message. Use it to filter out-of-season HOLIDAY content only.
+NOTE: **Current date:** {{CURRENT_DATE}}. **Reference horizon (60 days after current date):** {{FUTURE_DATE}}. Use these to filter out-of-season HOLIDAY content and to reason about timely vs evergreen exploration.