|
Download docs/task.md from YGCXLab/ux-research-agent-slackbot: direct link, hf CLI and curl.
- Browser
- Download file 6.45 kB
-
https://huggingface.co/spaces/YGCXLab/ux-research-agent-slackbot/resolve/main/docs/task.md
- Command line
-
hf download hf://spaces/YGCXLab/ux-research-agent-slackbot/docs/task.md
-
curl -L -o task.md https://huggingface.co/spaces/YGCXLab/ux-research-agent-slackbot/resolve/main/docs/task.md
6.45 kB
Task Management
- [/] Research Data Sources
- Analyze
research_report.jsonstructure - Analyze
baymard_unified_database_v2.jsonstructure
- Analyze
- Draft Product Requirements Document (PRD)
- Define User Personas and Goals
- detailed Feature Specifications (Search, RAG, Image Analysis)
- Define Technical Architecture (High-level)
- Define Metrics and Success Criteria
- Research File Linking
- Explore
research_pagesdirectory naming convention - Create script to match JSON entries with file paths
- Update
research_report.jsonwith file paths
- Explore
- Update File Structure
- Update script for new paths and relative linking
- Run script to fix
research_report.json
- Verify Match Quality
- Create script to check similarity between JSON title and file path
- Report ambiguous matches to user
- Handle Unmatched Items
- Mark missing file paths as "ํ์ผ ์์"
- [/] Review PRD with User
- Review PRD with User
- Update PRD with finalized data structure (file_path)
- Request final PRD approval
Chatbot PoC Development (Metadata Search)
- Setup Development Environment
- Create virtual environment and install dependencies (langchain, google-genai)
- Verify Gemini API Key (
gemini-3-flash-preview)
- Data Loader Implementation
- Implement
data_loader.pyfor both JSON sources
- Implement
- Search Logic Implementation
- Implement keyword extraction & source routing with LLM
- Implement filtering logic for JSON data
- Implement answer generation with Gemini 3 Flash
- Interface Implementation
- Build CLI for testing
- Verify specific used cases (Review, Internal Only, etc.)
Web App Development (Streamlit)
- Setup Web Environment
- Update
requirements.txtwithstreamlit - Install new dependencies
- Update
- Implement Web Interface
- Create
app.pyusing Streamlit chat elements - Integrate
SearchEnginewith Streamlit session state
- Create
- Verification
- Run Streamlit app and verify chat flow
Feature Enhancements
- Add Conversation Context
- Update
search_engine.pyto handle chat history - Update
app.pyto pass session history - Verify context-aware follow-up questions
- Update
RAG Integration Phase
- Data Preparation: Assign Unique IDs
- Create script to assign IDs to JSON and sync with MD files
- Run ID assignment script
- Vector DB Setup
- Install search dependencies
- Implement search indexing for separate collections (Internal/Baymard)
- Hybrid Search Implementation
- Update
search_engine.pyto combine Metadata + Vector Search - Verify RAG results
- Enhance Baymard Indexing (PDF Extraction)
- Update
Multimodal Support
Implement File Upload in Web App
- Add
st.file_uploadertoapp.py - Update
search_engine.pyto handle image input
- Add
Verification
Test image analysis flow
Deployment
Prepare for Hugging Face Space
- Update
.envwith HF Token - Copy Data to Project Directory (Containerization)
- Update Path Logic in Code (Relative Paths)
- Create
Dockerfile - Create
deploy_to_hf.pyscript
- Update
Review PRD with User
Slackbot Integration
- Slack App Setup
- Create Setup Guide
- Configure Scopes & Tokens
- Implement Slackbot Logic
- Add
slack_boltdependency - Create
slack_bot.py - Handle File Uploads (Images/Videos)
- Handle DMs and Thread Replies
- Implement Thread Context Awareness
- Update
slack_bot.pyto fetch thread history - Convert Slack history to SearchEngine format
- Update
- Add
- Deployment Updates
- Update Dockerfile for dual execution (or separate)
- Separate Web App and Slackbot Deployments
- Migrate Data to HF Dataset (Fix Storage Limit)
- Upload
datato HF Dataset - Update
Dockerfileto download data on startup - Create
Dockerfile.webanddeploy_web.py - Create
Dockerfile.slackanddeploy_slack.py - Deploy to separate Spaces
- Upload
- Fix Slack Formatting Issues (Markdown to mrkdwn)
- Update search_engine for strict formatting instructions
- Implement deterministic Regex converter
- Redeploy Slackbot (Clean Install)
Search & Context Improvements
- Improve Search Quality
- Add
thefuzzfor fuzzy matching logic - Refactor
filter_internal_datato use fuzzy scoring
- Add
- Enhance Context Awareness
- Update
keyword_extraction_promptto inherit context from history - Verify multi-turn conversation flow
- Update