Skip to content

πŸ“š Issue #28 β€” Implement AI Assistant Query HistoryΒ #57

@vic-Gray

Description

@vic-Gray

Harvest Finance will add a Query History feature for the AI Assistant. Contributors will implement functionality that stores and displays previous questions and AI responses, allowing farmers to review past advice and make informed decisions.

This enhances the LLM-powered killer feature, making it more usable, trackable, and trustworthy.

Objectives

Store all AI Assistant queries and responses for each farmer

Display query history in the Farm Vault Dashboard

Allow farmers to search, filter, or revisit advice

Optional: export AI insights for record-keeping or sharing

Requirements
1️⃣ Backend

Store queries and responses in PostgreSQL / Supabase

Include timestamps, vault context, and seasonal data

Secure endpoints using JWT authentication

2️⃣ Frontend

Display query history as a scrollable list or card layout

Include search/filter options

Provide option to revisit or re-run queries

3️⃣ UI / UX

Green & white dashboard theme

Smooth animations for opening history items

Mobile-first, responsive design

Technical Suggestions

Frontend: React / Next.js, TailwindCSS, Framer Motion

Backend: NestJS, TypeORM / Supabase

Optional caching of responses for faster retrieval

Reuse Card and Badge components for consistency

Expected Outcome

Farmers can view all past AI queries and responses

History is organized, searchable, and visually intuitive

Integrates seamlessly with dashboard and AI Assistant

Acceptance Criteria

All queries and responses are stored accurately

History displays correctly in the dashboard

Search/filter works as intended

UI is responsive and visually consistent

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions