Skip to content

Team# 08: DayOneCrew: Added AI Agentic Search with Vector Recommendations using Valkey#7

Open
himanshug3385 wants to merge 9 commits into
opensource-for-valkey:mainfrom
himanshug3385:main
Open

Team# 08: DayOneCrew: Added AI Agentic Search with Vector Recommendations using Valkey#7
himanshug3385 wants to merge 9 commits into
opensource-for-valkey:mainfrom
himanshug3385:main

Conversation

@himanshug3385

@himanshug3385 himanshug3385 commented May 24, 2026

Copy link
Copy Markdown

Summary
Fix agent search relevance: Topic-aware NLU so queries like “cheaper vegetables” are not treated as price refinements of a prior science-gift search. New product domains (groceries vs science), topic-shift detection, and relevance filtering return only matching products—or a clear message when the category is not sold on the site.
Improve floating assistant UX: Agent FAB stays fixed, scroll-aware, and clickable (including when the chat panel is open).
Add light/dark theme (default dark): App-wide theme via ThemeProvider, with toggles in the AI assistant header and on the Valkey dashboard (/valkey-dashboard).
What changed
Backend (backend/services/agent.js)
Product domain detection (groceries, science/STEM).
isTopicShift() / updated isRefinementQuery() so “cheaper” only refines the same topic (e.g. “Show me cheaper options” after a science search still works).
filterRelevantProducts() drops irrelevant catalog matches.
Polite unavailable copy when users ask for groceries/vegetables (not in the mock catalog).
Removed hardcoded “science gift search” wording from refinement responses.
Frontend
ThemeContext, ThemeToggle, theme.scss — default dark, persisted in localStorage.
AgentAssistant — fixed layer, scroll-adjusted FAB position, visible close control when panel is open.
AgentSearchChat — theme toggle in header.
ValkeyDashboardPage + valkey-dashboard.scss — theme toggle and dark/light styling.
agent-assistant.scss — theme variables and layout fixes.
Test plan

Start backend + Valkey; open the AI assistant on any page.

Search: “birthday gift for 10-year-old nephew who likes science” → science/STEM products.

Follow up: “Show me cheaper options” → cheaper items from the same science context (not unrelated products).

New topic: “show me some cheaper vegetables” → no science kits; polite message that groceries are not available on this site.

Scroll a long page (e.g. home/shop) → orange FAB remains visible and clickable near the bottom.

Open assistant panel → FAB still works as close/minimize control.

Toggle dark/light in assistant header → UI updates; refresh → preference persists.

Open /valkey-dashboard → theme toggle works; panels/stats readable in both modes.

Run node backend/test-acceptance.js → all acceptance checks pass.
Notes
The mock catalog is science/STEM only; grocery queries intentionally return zero results with a helpful message instead of irrelevant kits.
Theme applies to the agent UI and Valkey dashboard; the main store pages keep their existing styling unless extended later.

image1 image2 image3 image4

@himanshug3385 himanshug3385 changed the title Added AI Agentic Search with Vector Recommendations using Valkey Team# 08: DayOneCrew: Added AI Agentic Search with Vector Recommendations using Valkey May 24, 2026

@rlunar rlunar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove node_modules folder, check .gitignore from frontend directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants