Smart Search Platform - Master Product Specification
SharedShared Capabilities2.338 words12 min read
Purpose
Phần tiêu đề “Purpose”- Hợp nhất toàn bộ đặc tả Smart Search thành một tài liệu thực thi end-to-end cho toàn nền tảng.
- Đảm bảo triển khai nhất quán, tối ưu trải nghiệm tìm kiếm và hành động cho user ở mọi module.
- Đây là tài liệu chuẩn dùng chung đa hoàn cảnh; không phải tài liệu phân bổ đầu việc theo team/sprint.
1) Product Goal and Success Definition
Phần tiêu đề “1) Product Goal and Success Definition”- Search phải giúp user “làm được việc tiếp theo” trong vài giây, không buộc user duyệt nhiều trang.
- Search phải giữ một hành vi nhất quán khi user di chuyển giữa
Home,Course,Learning,Practice,Vocabulary. - Search phải hỗ trợ cả giai đoạn
khám phá chương trình/khoá(guest/pre-login) và giai đoạnhọc thực thi(post-login) trong cùng một chuẩn logic. - Search phải hỗ trợ cả hành vi ngắn hạn (
làm ngay) và hành vi dài hạn (duy trì nhịp học,đạt mục tiêu).
North-star outcomes
Phần tiêu đề “North-star outcomes”time_to_first_action_from_searchgiảm rõ rệt ở mọi module.search_success_ratetăng theo phase rollout.cross_module_handoff_success_rateổn định cao cho các flow Home -> PRA, PRA -> VOC.
2) Core Operating Model
Phần tiêu đề “2) Core Operating Model”- Model chuẩn:
Intent × Context × Depth.Intent: người dùng muốn làm gì.Context: user đang ở đâu, entitlement gì, urgency/momentum ra sao.Depth:PAGE: mở trang tổng quát.STEP: nhảy vào tác vụ cụ thể.AI: trả insight/widget.EXEC: chạy hành động ngay.
3) End-to-End Search Lifecycle
Phần tiêu đề “3) End-to-End Search Lifecycle”Open:
- User mở search (
Cmd/Ctrl + Khoặc click icon).
Context hydrate:
- UI gửi
Context Pack(pageContext, signals, entitlement, return path).
Query understanding:
- Umbrella bundle detect (
AI,làm bài…) -> facet detect (báo cáo,widget,checklist…) -> prefix match -> phrase match -> verb-object match -> semantic fallback.
Intent dispatch:
- Orchestrator gọi adapter phù hợp (single hoặc multi-adapter nếu cần).
Rank and compose:
- Score theo priority + urgency + momentum + context bias + confidence.
Render:
- Hero Action + grouped results + AI (nếu được gọi).
Handoff:
- Click result -> deeplink/exec/inline AI/AI tutor portal.
Track:
- Log events để tối ưu vòng sau.
4) Search Surface States (Global)
Phần tiêu đề “4) Search Surface States (Global)”| State | Mục tiêu UX | Thành phần bắt buộc | Quy tắc |
|---|---|---|---|
| Closed | Giữ entry gọn | Search bar | placeholder theo module |
| Focus zero-state | Gợi ý hành động nhanh | 3 lanes: Urgency, Momentum, Insight | lane cap + item cap |
| Typing prefix | Giảm gõ | Prefix completions | max 3 |
| Typing umbrella | Liệt kê nhóm tính năng theo chủ đề tổng quát | Feature catalog theo bundle | không cắt còn 3 kết quả |
| Typing facet | Liệt kê tính năng theo loại nội dung | Facet list (report/widget/checklist/popup/task) | ưu tiên facet tags trước title match |
| Typing semantic | Trả kết quả thật | Hero + grouped results | group cap 3 |
| Inline AI | Trả insight ngay | summary + widget + CTA | có back về list |
| No result | Tránh dead-end | fallback suggestions + ask AI | luôn có CTA |
| Error/timeout | Giữ flow | partial results/fallback | hiển thị retry nhẹ |
5) Module-specific Behavior Contracts
Phần tiêu đề “5) Module-specific Behavior Contracts”- Chi tiết mapping theo
areavàpageđược chốt tạiux-patterns/SSP_Area_Positioning_Page_Behavior.mdvà là nguồn chuẩn cho placeholder/chips/ranking bias từng ngữ cảnh.
5.1 Home Pre-login Discovery
Phần tiêu đề “5.1 Home Pre-login Discovery”- Priority order:
Program discovery -> Course discovery -> Compare/fit -> Auth/consultation.
- Search phải ưu tiên:
- program landing deep-links,
- program compare actions,
- course guest preview/detail gate actions.
- Conversion contracts:
- mọi action cần quyền đi
auth-first + returnTo, - fallback an toàn về discovery context gần nhất khi return target invalid.
- mọi action cần quyền đi
5.2 Home Post-login
Phần tiêu đề “5.2 Home Post-login”- Priority order:
Continue Learning -> Unified Quick Access -> Program Quick Access -> Recommendation.
- Activation week-1:
- inline activation card (non-blocking), ladder 3 bước.
- Reactivation handoff:
- first-set seed boost one-time theo stage.
- High-attention:
- nhắc AI Tutor adaptive recovery plan theo policy, không chặn luồng học.
- AI policy:
- AI Tutor on-demand only, không auto-open.
5.3 Course Management
Phần tiêu đề “5.3 Course Management”- Priority order:
Due Today/Overdue -> In Progress -> Next Class -> Admin Ops -> Explore.
- Cần hỗ trợ mạnh
EXEC:- báo nghỉ, booking, download, actions modal.
- Guest discovery contexts:
- hỗ trợ
course.guest_overview,course.guest_courses_preview,course.guest_course_detail_gate, - ưu tiên preview/conversion actions thay vì task-action của học viên đã enroll.
- hỗ trợ
- AI widgets:
- stats, schedule prep, recap, error bank, concept explain, catch-up.
5.4 Learning Management
Phần tiêu đề “5.4 Learning Management”- Priority order:
recovery_critical -> goal_aligned -> habit_continuity -> freshness.
- Goal compatibility:
- numeric gap chỉ hiển thị khi profile so sánh hợp lệ + đủ confidence gate.
- Search cần ưu tiên:
- weakest analysis unit,
- impact cao ở 30 ngày hoạt động,
- next best exercise.
5.5 Practice Flow
Phần tiêu đề “5.5 Practice Flow”- Bắt buộc route contract đầy đủ với
source_context,program,exercise_id,returnTo. - Recommendation engine sau result:
- habit-first, dynamic 3..7, explainability 1 primary reason/item.
- Entitlement-aware:
- available-now priority,
- lock teaser capped,
- upgrade popup in-context.
5.6 Vocabulary Management
Phần tiêu đề “5.6 Vocabulary Management”- Priority order:
due_words_today -> mistake_queue -> start_session -> list exploration.
- Handoff từ PRA:
- nếu
vocab_suggestion_payloadhợp lệ thì đẩy vào smart mistake lane.
- nếu
- Quick-start:
- ưu tiên
Ôn ngay (5 phút)khi có dữ liệu due.
- ưu tiên
6) Feature Completion Scope (Smart Search internal)
Phần tiêu đề “6) Feature Completion Scope (Smart Search internal)”6.1 Intent Engine
Phần tiêu đề “6.1 Intent Engine”- Hỗ trợ multi-intent query blending có ưu tiên.
- Synonym governance VI/EN theo kỳ.
- Conflict resolution khi query khớp nhiều intent.
- Hỗ trợ
intent bundlescho query tổng quát:BUNDLE_AI_FEATURESkhi user gõAI.BUNDLE_PRACTICE_ACTIONSkhi user gõlàm bài,làm bài tập.
- Hỗ trợ
content facetsđể query theo loại nội dung:featureFamily(ai/practice/schedule/…),contentType(insight/task/plan/…),contentFormat(widget/list/popup/report/…).
6.2 Ranking Engine
Phần tiêu đề “6.2 Ranking Engine”- Công thức baseline:
final = intentPriority + urgency + momentum + contextBias + recency + confidence.
- Guardrails:
- cap low-confidence items,
- avoid same-topic over-repeat,
- stale-data badge khi cần.
6.3 Result Composer
Phần tiêu đề “6.3 Result Composer”- Hero Action luôn hiển thị nếu có intent match rõ.
- Grouped results theo category; mỗi group tối đa 3.
- Distinguish rõ
PAGE/STEP/AI/EXECbằng badge + CTA.
6.4 AI Layer
Phần tiêu đề “6.4 AI Layer”- Kiến trúc 2 lớp bắt buộc:
Layer 1 = AI Inline(xem nhanh insight + action ngắn trong Search),Layer 2 = AI Tutor(đào sâu bằng chat tự do).
- Boundary rules:
- AI Inline không phải chat,
- AI Tutor không auto-open khi AI Inline render,
- query task rõ (
làm bài,nộp bài,đặt lịch) vẫn ưu tiên hero task trước AI lane.
- Escalation contract:
- CTA chuẩn:
Hỏi sâu hơn với AI Tutor, - packet tối thiểu bắt buộc:
inlineFeatureKey + intentId + query + inlineSummary + sourceModule + returnTo, - packet khuyến nghị:
evidence[] + recommendedActions[] + pageContextId + freshnessAt + confidence.
- CTA chuẩn:
- Fallback bắt buộc:
- nếu packet thiếu/lỗi, vẫn mở AI Tutor,
- dùng seed tối thiểu (
intentId + query + sourceModule), - hiển thị notice nhẹ, không chặn conversation.
6.5 Reliability and Fallback
Phần tiêu đề “6.5 Reliability and Fallback”- Adapter timeout trả partial + fallback.
- Missing context fallback an toàn về
PAGE. - No-result fallback vào AI ask với disambiguation chips.
7) AI Keyword and Widget Behavior (Concrete)
Phần tiêu đề “7) AI Keyword and Widget Behavior (Concrete)”| Intent | Trigger keywords (ví dụ) | Widget | Hiển thị cốt lõi | CTA chính |
|---|---|---|---|---|
ACT_AI_STATS | thống kê, báo cáo, tiến độ | Unified Stats HUD | radar + trend + KPI cards + summary | Xem phân tích |
ACT_AI_PRACTICE_PROCESS | quá trình, nỗ lực, streak | Practice Journey | heatmap + effort/performance/habit | Xem hành vi học |
ACT_AI_SCHEDULE_PREP | chuẩn bị, ngày mai, lịch tới | Schedule Prep | timeline tương lai + debt cảnh báo | Chuẩn bị ngay |
ACT_AI_SESSION_SUMMARY | tóm tắt, recap, ghi chú | Session Recap | teacher quote + key takeaways + linked homework | Đọc recap |
ACT_AI_ERROR_BANK | lỗi sai, fix, mistake | Mistake Clinic | ranked error clusters + severity + fix-it | Ôn lỗi ngay |
ACT_AI_PLAN | gỡ bài, bắt kịp, cứu nhịp | Catch-up Plan | absent timeline + must-watch + MVP checklist | Bắt đầu kế hoạch |
ACT_AI_EXPLAIN | giải thích, tại sao sai | Concept Clarifier | definition + bad-vs-good + related concepts | Hiểu nhanh |
ACT_AI_VOCAB_CONNECT | vocab context, từ này dùng ở đâu | Vocab Bridge | word hero + future lesson context + prime cards | Ôn từ ngay |
ACT_AI_TUTOR | hỏi AI, chat AI | Floating Tutor | contextual handoff message | Mở portal |
AI inline feature key contract (để đồng nhất UX + telemetry)
Phần tiêu đề “AI inline feature key contract (để đồng nhất UX + telemetry)”- Mỗi widget AI phải có
inlineFeatureKeyổn định để dùng cho ranking, handoff và đo lường:AIF_MOCK_FULL_TEST(AI Thi thử Full Test),AIF_LEARNING_PERFORMANCE_RADAR(Phân tích hiệu suất học tập),AIF_PRACTICE_BEHAVIOR_VIEW(Xem hành vi luyện tập),- các key khác map tại
ux-patterns/SSP_AI_Keyword_Widget_Map.md.
- Mỗi card AI inline phải có:
- 1 CTA hành động tại module,
- 1 CTA escalation sang AI Tutor (
Hỏi sâu hơn với AI Tutor).
- Khi user bấm CTA escalation, Smart Search bắt buộc gửi
inlineFeatureKeytheo packet để AI Tutor biết chính xác card nguồn.
Umbrella keyword behavior (bắt buộc)
Phần tiêu đề “Umbrella keyword behavior (bắt buộc)”- Query
AI:- render
AI Feature Catalogvà liệt kê đầy đủ AI actions khả dụng trong context hiện tại. - không cắt còn 3 như prefix completion.
- render
- Query
làm bài/làm bài tập:- render
Practice Action Catalogvà liệt kê đầy đủ nhóm tác vụ làm bài/luyện tập. - ưu tiên actions
available-now, sau đó mới tới group AI hỗ trợ.
- render
Facet keyword behavior (bắt buộc)
Phần tiêu đề “Facet keyword behavior (bắt buộc)”- Query theo loại nội dung (
báo cáo,widget,checklist,popup,task):- không bắt user nhớ tên tính năng.
- trả danh sách feature có cùng facet tags trong context hiện tại.
- Facet match có priority cao hơn title contains, thấp hơn umbrella bundles.
AI widget rendering states (bắt buộc)
Phần tiêu đề “AI widget rendering states (bắt buộc)”loading: skeleton + context label.success: summary + evidence + CTA.stale: stale badge + refresh CTA.empty-data: onboarding insight + next-step CTA.error: brief error + retry + module-deeplink fallback.
8) UI Placeholder Copy Rules
Phần tiêu đề “8) UI Placeholder Copy Rules”- Mỗi placeholder phải bắt đầu bằng ngôn ngữ hành động, không mô tả chung chung.
- Mỗi module có placeholder riêng nhưng giữ cùng voice.
- Zero-state chips phải bám context hiện tại (không random).
Placeholder examples
Phần tiêu đề “Placeholder examples”- Home:
Hôm nay bạn muốn học tiếp gì? - Course:
Làm bài tập, xem lịch, báo nghỉ, hỏi AI... - Learning:
Tìm kỹ năng yếu và bài nên luyện tiếp... - Practice:
Tìm bài theo dạng, kỹ năng hoặc mục tiêu... - Vocabulary:
Ôn từ cần học hôm nay hoặc từ hay sai...
9) Telemetry and Quality Gates
Phần tiêu đề “9) Telemetry and Quality Gates”- Baseline events:
search_opened,search_query_submitted,search_result_clicked,search_result_depth,search_handoff_started,search_handoff_completed,search_zero_result,search_ai_inline_rendered,search_ai_tutor_handoff_start,search_ai_tutor_handoff_success,search_ai_tutor_handoff_fallback_open.
- Quality gates trước khi mở rộng phase:
- handoff success,
- zero-result,
- recommendation-to-attempt,
- latency p95.
10) Reference Maturity Map (Non-prescriptive)
Phần tiêu đề “10) Reference Maturity Map (Non-prescriptive)”- Stabilize core contracts (intent/context/result/ranking) as shared standard.
- Lock UI states + placeholders + umbrella/facet behavior across surfaces.
- Maintain cross-module route contract safety and fallback safety.
- Enforce AI freshness/confidence/evidence gates as default quality rule.
- Maintain optimization loop using benchmark queries + telemetry + controlled experiments.
- Keep governance stable while allowing additive evolution of intents/facets.
11) Anti-fragmentation Rules (Long-term)
Phần tiêu đề “11) Anti-fragmentation Rules (Long-term)”- Mọi thay đổi Search phải cập nhật vào Smart Search Platform folder trước.
- Không tạo riêng “search logic local” trong module nếu có thể dùng contract chung.
- Intent mới chỉ thêm khi governance board duyệt.
- Mọi module phải giữ cùng chuẩn depth/badge/CTA semantics.
- Không mở rộng logic vượt quá pain thực tế đã được xác nhận bằng dữ liệu/feedback.
- Ưu tiên “ít cơ chế, rõ hành vi” hơn “nhiều cơ chế nhưng khó dự đoán”.
References
Phần tiêu đề “References”SSP_INDEX.mdSSP_Smart_Search_Logic_Explainer.mdSSP_00_Overview.mdcontracts/SSP_Intent_Taxonomy_Result_Contract.mdcontracts/SSP_Context_Pack_Adapter_Contracts.mdcontracts/SSP_Implementation_Logic_Contract.mdgovernance/SSP_Deep_Dive_and_Completion_Plan.mdux-patterns/SSP_Area_Positioning_Page_Behavior.mdux-patterns/SSP_UI_Placeholder_By_Flow.mdux-patterns/SSP_AI_Keyword_Widget_Map.mdux-patterns/SSP_AI_Innovation_By_Area.mdgovernance/SSP_Optimization_Framework.mdarea-bundles/SSP_Program_Course_Discovery_Search_Bundles.mdgovernance/SSP_Rollout_Governance.md../Home & Discovery/HOME_ENG_Home_Post_Login.md(archived, DEC-0096)../Practice Flow/PRA_Entry_Routing_Contracts.md../Practice Flow/PRA_Result_Flow.md../Learning Management/LM_Metrics.md../Course Management/CM_FEATURE_Smart_Search.md