8.3 KiB
ALwrity Researcher Documentation
Last Updated: 2025-01-29
📚 Documentation Index
This directory contains documentation for the ALwrity Research Engine. Use this index to find the right documentation for your needs.
🎯 Quick Start
New to the Research Engine? Start here:
- CURRENT_ARCHITECTURE_OVERVIEW.md - High-level architecture overview
- INTENT_DRIVEN_RESEARCH_GUIDE.md - Comprehensive guide to intent-driven research
- .cursor/rules/researcher-architecture.mdc - Authoritative architecture rules (for developers)
📖 Current Architecture Documentation
Core Documentation
| Document | Purpose | Status |
|---|---|---|
| CURRENT_ARCHITECTURE_OVERVIEW.md | Single source of truth for current architecture | ✅ Current |
| INTENT_DRIVEN_RESEARCH_GUIDE.md | Comprehensive guide to intent-driven research | ✅ Current |
| INTENT_RESEARCH_API_REFERENCE.md | Complete API endpoint documentation | ✅ Current |
| .cursor/rules/researcher-architecture.mdc | Authoritative architecture rules | ✅ Current |
Implementation Documentation
| Document | Purpose | Status |
|---|---|---|
| PHASE2_IMPLEMENTATION_SUMMARY.md | Phase 2 persona enhancements | ✅ Current |
| PHASE3_AND_UI_INDICATORS_IMPLEMENTATION.md | Phase 3 features and UI indicators | ✅ Current |
| RESEARCH_PERSONA_DATA_SOURCES.md | Persona data sources | ✅ Current |
| RESEARCH_PERSONA_DATA_RETRIEVAL_REVIEW.md | Persona data retrieval | ✅ Current |
⚠️ Outdated Documentation
The following documents describe an older architecture and should be used for historical reference only:
| Document | Status | Notes |
|---|---|---|
| RESEARCH_WIZARD_IMPLEMENTATION.md | ⚠️ Outdated | Describes old 4-step wizard (StepKeyword, StepOptions, etc.) |
| RESEARCH_COMPONENT_INTEGRATION.md | ⚠️ Outdated | Mentions Basic/Comprehensive/Targeted modes and strategy pattern |
| PHASE1_IMPLEMENTATION_REVIEW.md | ⚠️ Partial | Some features accurate, but missing intent-driven research |
| RESEARCH_IMPROVEMENTS_SUMMARY.md | ⚠️ Partial | Some features accurate, but missing intent-driven research |
| COMPLETE_IMPLEMENTATION_SUMMARY.md | ⚠️ Partial | Phase 1-3 persona features accurate, but missing intent-driven research |
For current architecture, see:
- CURRENT_ARCHITECTURE_OVERVIEW.md
- INTENT_DRIVEN_RESEARCH_GUIDE.md
- .cursor/rules/researcher-architecture.mdc
🔍 Finding Documentation
By Topic
Architecture & Design:
Intent-Driven Research:
Research Persona:
- PHASE2_IMPLEMENTATION_SUMMARY.md
- PHASE3_AND_UI_INDICATORS_IMPLEMENTATION.md
- RESEARCH_PERSONA_DATA_SOURCES.md
API Reference:
Implementation Details:
By Role
Developers:
- Start with .cursor/rules/researcher-architecture.mdc
- Read CURRENT_ARCHITECTURE_OVERVIEW.md
- Reference INTENT_RESEARCH_API_REFERENCE.md
Frontend Developers:
- INTENT_DRIVEN_RESEARCH_GUIDE.md (Frontend Integration section)
- CURRENT_ARCHITECTURE_OVERVIEW.md (Component Structure)
Backend Developers:
- INTENT_DRIVEN_RESEARCH_GUIDE.md (Architecture Components)
- INTENT_RESEARCH_API_REFERENCE.md
- .cursor/rules/researcher-architecture.mdc
Product/Design:
- INTENT_DRIVEN_RESEARCH_GUIDE.md (User Experience Flow)
- CURRENT_ARCHITECTURE_OVERVIEW.md (UI Components)
📋 Documentation Status
✅ Current & Accurate
- ✅ CURRENT_ARCHITECTURE_OVERVIEW.md - Single source of truth
- ✅ INTENT_DRIVEN_RESEARCH_GUIDE.md - Comprehensive guide
- ✅ INTENT_RESEARCH_API_REFERENCE.md - Complete API docs
- ✅ .cursor/rules/researcher-architecture.mdc - Authoritative rules
- ✅ PHASE2_IMPLEMENTATION_SUMMARY.md - Persona enhancements
- ✅ PHASE3_AND_UI_INDICATORS_IMPLEMENTATION.md - Phase 3 features
- ✅ RESEARCH_PERSONA_DATA_SOURCES.md - Persona data sources
⚠️ Needs Update
- ⚠️ RESEARCH_WIZARD_IMPLEMENTATION.md - Describes old wizard structure
- ⚠️ RESEARCH_COMPONENT_INTEGRATION.md - Mentions old architecture
- ⚠️ PHASE1_IMPLEMENTATION_REVIEW.md - Missing intent-driven research
- ⚠️ RESEARCH_IMPROVEMENTS_SUMMARY.md - Missing intent-driven research
- ⚠️ COMPLETE_IMPLEMENTATION_SUMMARY.md - Missing intent-driven research
📝 Update Plan
See DOCUMENTATION_REVIEW_AND_UPDATE_PLAN.md for detailed update plan.
🎯 Key Concepts
Intent-Driven Research
The Research Engine uses intent-driven research instead of traditional keyword-based searches:
- Intent Analysis: AI understands what user wants before searching
- Unified Analysis: Single AI call for intent + queries + params
- Intent-Aware Analysis: Results analyzed through lens of user intent
- Structured Deliverables: Returns exactly what users need (statistics, quotes, case studies, etc.)
Architecture Evolution
Old Architecture (Documented in outdated files):
- Basic/Comprehensive/Targeted modes
- Strategy pattern
- 4-step wizard
Current Architecture (Documented in current files):
- Intent-driven research
- UnifiedResearchAnalyzer
- 3-step wizard with intent analysis
🔗 Related Documentation
- Architecture Rules:
.cursor/rules/researcher-architecture.mdc(Authoritative) - Documentation Review:
DOCUMENTATION_REVIEW_AND_UPDATE_PLAN.md
📌 Quick Reference
Main Components
- UnifiedResearchAnalyzer: Single AI call for intent + queries + params
- IntentAwareAnalyzer: Analyzes results based on intent
- ResearchEngine: Orchestrates provider calls (Exa → Tavily → Google)
Key Endpoints
POST /api/research/intent/analyze- Analyze user intentPOST /api/research/intent/research- Execute intent-driven research
Key Patterns
- Always use
UnifiedResearchAnalyzerfor new intent-driven research - Always pass
user_idto all LLM calls - Always use
IntentAwareAnalyzerfor result analysis - Provider priority: Exa → Tavily → Google
✅ Best Practices
- Use Current Documentation: Always refer to current architecture docs
- Check Architecture Rules:
.cursor/rules/researcher-architecture.mdcis authoritative - Update Outdated Docs: When referencing outdated docs, verify against current architecture
- Follow Patterns: Use documented patterns for consistency
Status: Documentation Index - Use this to navigate all Researcher documentation.