Prompt Details
Model
(claude-5-sonnet)
Token size
1,628
Example input
[Application Name]: PropertyIntel AI β Real Estate Investment Intelligence & Due Diligence Platform
[Describe the business problem]: Automated property valuation, investment scoring, market trend analysis, due diligence automation, and portfolio optimization for institutional and individual real estate investors
[Consumers / Enterprise / Internal Teams / Developers]: Real estate investment funds (10-100 properties), Individual property investors (5-50 properties), Commercial real estate brokers, Hedge fund investors, Real estate portfolio managers
[PDFs / SQL / APIs / CRM / Documents / SharePoint / Notion / Websites / etc.]: Zillow/Redfin/MLS APIs, Public tax assessor records, NOAA weather/flood risk data, U.S. Census demographics, Comparable sales database (500K+ historical sales), Commercial property databases, Mortgage rate feeds, Local zoning records, Environmental reports, Neighborhood crime statistics, School ratings, Economic indicators by zip code
[MVP / Enterprise Deployment / Global Scale / Internal Productivity]: MVP β $3M ARR within 24 months β $20M ARR by Year 4
Example output
## β
TEST OUTPUT
### π― SECTION 1 β EXECUTIVE SOLUTION OVERVIEW
β’ **Business Objective:** Eliminate manual property analysis workflows, reduce due diligence time from weeks to hours, and enable data-driven investment decisions at scale for real estate professionals
β’ **AI Capabilities:** Multimodal property analysis (images + market data), predictive valuation models, investment opportunity scoring, automated compliance screening, market sentiment analysis, risk quantification
β’ **Architecture Vision:** Real-time data federation platform combining MLS feeds, public records, economic indicators, and visual analysis into unified investment intelligence engine
β’ **Expected Outcomes:** 90% faster due diligence, 15-25% better investment selection accuracy, $500K-$2M average annual return uplift per fund, $20M ARR by Year 4
---
### ποΈ SECTION 2 β HIGH-LEVEL ARCHITECTURE
**π Frontend Layer:**
- React web app (investment dashboard, portfolio view, report generation)
- React Native mobile (quick property lookup, market alerts on-the-go)
- Desktop Electron app (bulk analysis, advanced portfolio tools for funds)
- Real-time collaboration: Multi-analyst workspace for teams
**π API Gateway:**
- AWS API Gateway (regional: us-east-1, us-west-2, eu-west-1)
- Kong (API management, rate limiting, versioning)
- gRPC endpoints for bulk operations (funds uploading 1K+ properties)
- GraphQL for flexible client queries (dashboard filtering)
**β‘ Core Services:**
- Valuation Engine (Python, scikit-learn + XGBoost models)
- MLS data sync service (real-time Kafka pipeline)
- Public records aggregator (web scraping + API integrations)
- Property image analyzer (GPT-4V vision pipeline)
- Due diligence processor (automated screening rules + LLM review)
- Investment scoring engine (multi-factor ranking system)
- Portfolio optimizer (mathematical optimization algorithms)
**π§ AI Service Layer:**
- Claude 3 Opus (investment thesis generation, due diligence interpretation)
- Llama 2-70B (local deployment, property valuations, fast inference)
- GPT-4V (image analysis: condition assessment, architectural features, damage)
- Embedding: FastEmbed (address similarity matching, market comparables)
**π Data Layer:**
- PostgreSQL (operational DB: properties, portfolios, users, transactions)
- TimescaleDB (time-series: price history, market trends, rate feeds)
- MongoDB (flexible schema for MLS data variations)
- Vector DB: Weaviate (semantic search on comparable properties)
- Redis (cache: valuations, market data, session management)
- S3: Property images, PDF reports, audit trails
**π Integrations:**
- MLS APIs: MLSGrid, Zillow API, Redfin API
- Public Records: County assessor APIs, property deed databases
- Economic Data: FRED (Federal Reserve), Census Bureau API
- Weather: NOAA API (flood risk, climate data)
- Lending: Mortgage rate feeds, investor loan marketplace APIs
- Compliance: LexisNexis for due diligence data
---
### π§ SECTION 3 β LLM & AI LAYER
**π― Model Selection Strategy:**
- Primary: Claude 3 Opus (complex valuation factors, investment narrative, risk assessment)
- Secondary: Llama 2-70B (self-hosted, fast turnaround for bulk valuations, property comparables)
- Tertiary: GPT-4V (property condition analysis from photos, damage assessment)
- Fallback: XGBoost regression model (purely statistical valuation)
**π Model Routing Logic:**
- Single property quick lookup: Llama 2 (sub-500ms)
- Investment thesis generation: Claude Opus (2-3 second latency acceptable)
- Bulk portfolio analysis: Llama 2 + batch processing (asynchronous)
- Property condition scoring: GPT-4V (via image analysis, ~1 second per photo)
- Due diligence complex cases: Claude Opus (handles nuance better than smaller models)
**π Prompt Management:**
- Role-based prompts: Investor perspective vs. lender perspective vs. appraiser perspective
- Market-aware: Inject local market conditions, recent sales trends per zip code
- Investment style: Growth investor vs. value investor vs. income-focused prompts
- Compliance layer: Prompts include anti-discrimination guardrails (FHA compliance)
**π§ Context Engineering:**
- Property context: MLS listing + images + tax records + past sales
- Market context: Comp sales (last 90 days in 1-mile radius), market trajectory
- Economic context: Local employment, population trends, school ratings, crime stats
- Investor context: Portfolio composition, risk tolerance, preferred markets
- Regulatory context: Zoning, environmental concerns, HOA rules
**βοΈ Inference Pipeline:**
- Pre-flight: Parallel fetch MLS data + comparables + economic data (1 second)
- Valuation: Run statistical model first (fast, baseline)
- LLM enrichment: Claude validates model against market narrative
- Report generation: Stream formatted report to client
- Compliance check: Validate for fair housing violations
**π¨ Fallback Strategies:**
- Claude Opus timeout: Use Llama 2 + statistical valuation combo
- Image analysis down: Use property specs from MLS (no condition adjustment)
- MLS data stale: Use cached comparables (max 1 hour old)
- All models down: Return pre-computed model valuation
---
### π SECTION 4 β RAG & KNOWLEDGE ARCHITECTURE
**π₯ Document Ingestion:**
- Real-time: MLS feeds (push webhook on new listings, price changes)
- Scheduled: Daily tax assessor data sync (end of day)
- Scheduled: Comparable sales ingestion (hourly from MLS)
- Event-driven: Mortgage rate feeds (30-min updates from Fannie Mae API)
- Batch: Monthly environmental report pulls, annual census updates
**βοΈ Chunking Strategy:**
- MLS listings: Full property record as atomic unit (preserve all fields)
- Comparable sales: Each sale + day-on-market + sale price as chunk
- Public records: Property tax record + deed history as chunk
- Economic data: By zip code, by month (time-series preservation)
- Environmental: Full report with hazard type + severity
**π’ Embeddings:**
- Model: text-embedding-3-small (1536 dims, tuned for real estate terminology)
- Address embeddings: Map addresses to geographic/economic zone embeddings
- Comparable property embeddings: Feature-based (beds, baths, sqft, lot size)
**ποΈ Vector Database:**
- Weaviate (GraphQL interface, hybrid search)
- Collections: comparable_properties | market_reports | environmental_data | investor_portfolios
- Partitioning: By geography (state β county β zip code) for scale
**π Retrieval Pipeline:**
- Query: Extract property features (beds, baths, location, condition)
- Geographic search: Find comparables within 1-3 mile radius (adjustable)
- Feature matching: BED/BATH count matching (exact > fuzzy)
- Recent weighting: Sales from last 30 days ranked highest
- Economic data fetch: Parallel retrieval of zip-level economic indicators
**π Reranking:**
- Recency bias: Properties sold <7 days rank 5x higher
- Size matching: Properties within 10% of subject sqft ranked higher
- Condition matching: Similar condition adjustments applied
- Market shift: Trending direction (up/down) affects comparable relevance
**π·οΈ Citation Strategy:**
- "π Comp #1: 123 Oak St (3 bed, 2 bath, sold $450K on 2024-01-15) β 0.8 mi away"
- "π Market trend: +3.2% appreciation in zip 90210 (last 30 days)"
- "β οΈ Risk: Flood zone overlay (1% annual flood probability per FEMA)"
- Format: Inline with confidence scores
---
### π€ SECTION 5 β AGENT ARCHITECTURE
**π Valuation Agent:**
- Aggregates comparable sales data
- Adjusts for property differences (condition, upgrades, lot size)
- Cross-validates against statistical model
- Generates valuation range (optimistic/likely/conservative)
**π Market Analyst Agent:**
- Tracks market trends (price direction, inventory levels, days-on-market)
- Identifies emerging opportunities (price drops, foreclosures, hot markets)
- Compares property against market performance
- Generates 6-month/12-month price forecast
**βοΈ Due Diligence Agent:**
- Title search automation (checks for liens, claims, easements)
- Environmental screening (flood zones, soil contaminants, hazardous sites)
- Zoning & regulatory check (permitted uses, setback requirements)
- HOA/covenant review (restrictions, fees)
- Compliance validation (fair housing, lending law adherence)
**π° Investment Score Agent:**
- Calculates cash-on-cash return based on investor's financing assumptions
- Projects 5-year appreciation + rent income
- Scores risk factors (market volatility, neighborhood stability, structural)
- Ranks against investor's portfolio (diversification alignment)
- Generates investment recommendation (buy/hold/pass)
**π Condition Assessment Agent:**
- Analyzes property photos via GPT-4V
- Detects visible issues (roof damage, foundation cracks, deferred maintenance)
- Estimates condition rating (excellent/good/fair/poor)
- Suggests inspection priorities
- Adjusts valuation for condition findings
**βοΈ Orchestration:**
- Parallel execution: Valuation + Market Analyst + Condition Assessment run simultaneously
- Due Diligence: Runs after initial agents complete (depends on property address)
- Investment Score: Runs last (depends on all other agents)
- Timeout: Total 5-second budget per property
- Iterative: User can drill into any agent for deeper analysis
---
### βοΈ SECTION 6 β INFRASTRUCTURE & DEPLOYMENT
**βοΈ Cloud Architecture:**
- **Compute:** AWS ECS Fargate (containerized services)
- **AI Inference:** EC2 instances (GPU: A100 for GPT-4V, T4 for Llama 2)
- **Database:** RDS PostgreSQL + TimescaleDB (Multi-AZ)
- **Vector DB:** Self-hosted Weaviate (Docker on ECS)
- **Cache:** ElastiCache Redis (Multi-AZ)
- **Data warehouse:** Redshift (historical analysis, fund reporting)
- **Message queue:** Kafka (MLS data stream processing)
- **CDN:** CloudFront (reports, images)
**π¦ Containerization:**
- Valuation Engine: Python FastAPI (scikit-learn, XGBoost)
- MLS Sync: Go service (fast data ingestion)
- API Gateway: Node.js Express
- Registry: Amazon ECR (private)
- Orchestration: ECS (simpler than Kubernetes for this workload)
**βοΈ Kubernetes:**
- EKS optional at 1000+ daily fund users
- Currently: ECS + Fargate provides sufficient scaling
**π Serverless Components:**
- Lambda: Webhook handlers for MLS push events
- Lambda: Scheduled jobs (nightly rate feeds, daily compliance checks)
- SQS: Queue bulk analysis jobs (funds uploading 1K properties)
- EventBridge: Triggers market alerts when conditions met
**π CI/CD:**
- GitHub Actions: Build β Test β Push to ECR
- Deployment: Blue-green strategy (zero downtime)
- Frequency: 3-5 deployments per week
- Rollback: Instant via previous image
**π Autoscaling:**
- ECS: 2-20 replicas, target 70% CPU
- RDS: Read replicas in secondary region
- Kafka: Partitioning by state for horizontal scale
- Weaviate: Partitioned collections by geography
---
### π‘οΈ SECTION 7 β SECURITY & GOVERNANCE
**π Authentication:**
- OAuth 2.0 (SSO via corporate identity providers)
- MFA mandatory for fund accounts
- JWT tokens: 8-hour expiry, 30-day refresh
- API keys: Scoped by operation type (valuation-only vs. full access)
**β
Authorization:**
- RBAC: Fund Admin, Analyst, Viewer, Broker
- Portfolio isolation: Fund A cannot see Fund B's properties/valuations
- Data masking: Valuations shown only to authorized users (not all team members)
- Audit trail: Every valuation access logged (who, when, which property)
**π‘οΈ Fair Housing Compliance:**
- No discriminatory algorithms: Valuation model tested for disparate impact
- System prompts explicitly prevent consideration of protected characteristics
- Quarterly audits: Ensure no proxy discrimination (e.g., zip code as race proxy)
- Compliance reports: Automated FCRA/FHA audit logs
**π« Prompt Injection Defense:**
- Structured inputs: Property data passed as objects, not string concatenation
- System prompt isolation: LLM cannot be jailbroken to ignore compliance rules
- Output validation: Generated valuations must fall within reasonable ranges
**π Secrets Management:**
- AWS Secrets Manager: MLS API keys, lender API keys, database credentials
- Encryption at rest: KMS keys for all secrets
- Rotation: 60-day cycle for critical secrets
**π Data Privacy:**
- TLS 1.3 in transit
- Encryption at rest: AES-256 (S3, RDS, backups)
- Data residency: US-only storage (no EU expansion initially)
- Backup encryption: Separate KMS key for backups
- FCRA compliance: Red-flag sensitive data, audit access
**π Audit Logging:**
- CloudTrail: AWS API audit (who accessed what infrastructure)
- Application logs: Every valuation, property analysis, report generation
- Access logs: Who viewed which properties/reports
- Compliance logs: Fair housing checks, valuation accuracy monitoring
- Retention: 3 years (legal hold for real estate records)
**π Compliance:**
- FCRA (Fair Credit Reporting Act): For due diligence components
- FHA (Fair Housing Act): Anti-discrimination guarantees
- State lending laws: Varies by state (some restrict automated valuations)
- FNMA/FHLMC standards: For institutional investor reports
- SOC-2 Type II (target Q4 2024)
---
### π SECTION 8 β MONITORING & EVALUATION
**π Logging:**
- CloudWatch: Lambda + ECS logs
- ELK Stack: Application-level logging
- Splunk: Security + compliance audit logs
- Retention: 90 days hot, 3 years cold (S3 Glacier)
**π Tracing:**
- Datadog APM: Distributed tracing across microservices
- Key traces: Property lookup β Valuation β Comparables β Report generation
- Sample rate: 10% of requests
**π€ LLM Observability:**
- LangFuse: Track Claude + Llama performance
- Per-model metrics: Latency, accuracy, cost per valuation
- A/B testing: Compare valuation approaches (LLM vs. statistical)
**π Evaluation Metrics:**
- Valuation accuracy: Mean absolute percentage error (MAPE) vs. actual sales
- Investment score reliability: Correlation between score and actual ROI (quarterly review)
- Due diligence coverage: % of properties with complete screening
- Compliance: Zero fair housing violations (quarterly audit)
- Latency: P95 <2 seconds for valuation, <5 seconds for full report
- Uptime: 99.95% SLA
**π» Hallucination Detection:**
- Valuation claims cross-checked against comparables (must justify deviations >10%)
- Investment thesis fact-checked against property features + market data
- Risk assessments validated against official databases (FEMA, EPA)
**π° Cost Monitoring:**
- Per-property analysis cost: LLM tokens + API calls + compute
- Per-user cost: Track to avoid margin-negative customers
- Alert threshold: If cost/property exceeds $0.50
---
### π° SECTION 9 β COST & SCALABILITY
**π΅ Inference Cost (Monthly at 150K properties analyzed):**
- Claude 3 Opus: ~$4K (50K complex analyses Γ $0.08)
- Llama 2-70B (self-hosted): ~$1K (GPU compute for valuations)
- GPT-4V: ~$2K (50K property images Γ $0.01 per image)
- Embeddings: ~$300
- **Total AI Cost: ~$7.3K/month**
**βοΈ Infrastructure Cost:**
- ECS Fargate: ~$4K (2-20 replicas baseline)
- RDS PostgreSQL Multi-AZ: ~$3K
- TimescaleDB: ~$1K (time-series queries)
- Weaviate vector DB: ~$800
- Redis ElastiCache: ~$500
- EC2 GPU instances (GPT-4V): ~$2K
- Kafka cluster: ~$1K
- S3 + data transfer: ~$1.2K
- **Total Infrastructure: ~$13.5K/month**
**π Total Monthly Cost: ~$20.8K**
**π° Pricing Model:**
- Individual investor: $99/month (20 properties/month analysis)
- Property investor: $499/month (unlimited single-user, reports)
- Fund tier: $2,999/month (team access, 100 properties/month, API)
- Enterprise: Custom (dedicated instance, SLA guarantees)
- **Projected MRR at 500 customers (mix): 50% individual β 40% investor β 10% fund = ~$150K MRR**
**π Optimization Opportunities:**
- Caching valuations: Reuse analysis for re-listed properties = $2K/month
- Batch processing: Process bulk uploads off-peak = $1.5K/month
- Llama 2 expansion: Reduce Claude usage 40% = $1.6K/month
- Reduced GPU hours: On-demand vs. reserved instances = $600/month
- **Optimized: ~$14.5K/month (30% reduction)**
**π Horizontal Scaling:**
- ECS: Scales to 50+ replicas for 1000+ concurrent users
- RDS: Read replicas at 500K+ properties analyzed
- Kafka: Partitioning by state for 10M+ daily events
- Weaviate: Sharding by geography for 5M+ properties
---
### π SECTION 10 β IMPLEMENTATION ROADMAP
**π
PHASE 1 β MVP (Weeks 1-10)**
π― **Deliverables:**
- Web dashboard (React) + authentication
- Single property valuation (statistical model + Llama 2)
- MLS data integration (read-only)
- Comparable sales analysis (automated report)
- Investment score (basic ROI calculation)
- Landing page + early access signup
πͺ **Milestones:**
- Week 3: MLS API connected + data flowing
- Week 6: Valuation engine working + testing on sample properties
- Week 8: Dashboard showing valuations + comps
- Week 10: Beta launch (50 individual investors)
β οΈ **Risks:**
- MLS data quality issues (mitigate: aggressive data validation)
- Valuation accuracy too low (mitigate: compare against actual appraisals)
- Comparable selection algorithm imperfect (mitigate: manual override capability)
β
**Success Metrics:**
- 50 beta users
- 1K+ properties analyzed
- Valuation MAPE <10% vs. test set
- Satisfaction >7/10
---
**π
PHASE 2 β PRODUCTION + AGENTS (Weeks 11-20)**
π― **Deliverables:**
- Multi-agent orchestration (all 5 agents: valuation, market, due diligence, score, condition)
- Claude Opus integration (investment thesis generation)
- GPT-4V image analysis (property condition assessment)
- Due diligence automation (title, environmental, zoning screening)
- Market trend forecasting (6-month outlook)
- Compliance audit trails
- Mobile app (React Native)
πͺ **Milestones:**
- Week 12: Due diligence agent screening prototype
- Week 14: GPT-4V image analysis working
- Week 16: All agents orchestrated, 5-second latency
- Week 18: Mobile app beta
- Week 20: Public launch (5K users)
β οΈ **Risks:**
- Agent hallucinations in due diligence (mitigate: conservative assumptions)
- Image analysis false positives (mitigate: manual review capability)
- Valuation accuracy degrades with new agents (mitigate: A/B test approaches)
β
**Success Metrics:**
- 5K+ users
- 50K+ properties analyzed
- Valuation MAPE <8%
- Due diligence coverage >95%
- Investment score correlation with ROI >0.7
---
**π
PHASE 3 β ENTERPRISE + REPORTING (Weeks 21-32)**
π― **Deliverables:**
- Fund management features (team collaboration, multi-property portfolio)
- Bulk analysis tool (upload 1K+ properties via CSV/Excel)
- Advanced reporting (fund-level analytics, performance tracking)
- Integration with mortgage lenders (loan comparison)
- API for enterprise systems (fund management software integration)
- Compliance certification (SOC-2, FCRA, FHA audits)
πͺ **Milestones:**
- Week 22: Fund collaboration features live
- Week 24: Bulk upload + batch processing working
- Week 26: Fund-level reporting dashboard
- Week 28: API documentation + developer portal
- Week 32: First 10 fund customers onboarded, $50K MRR
β οΈ **Risks:**
- Enterprise feature complexity (mitigate: phased rollout)
- Regulatory compliance delays (mitigate: start audits early)
β
**Success Metrics:**
- 5K+ individual users, 50+ fund teams
- 300K+ properties analyzed
- $50K+ MRR
- 10+ enterprise fund customers
- NPS >50
---
**π
PHASE 4 β SCALE TO $3M+ ARR (Months 9-24)**
π― **Deliverables:**
- Fine-tuned valuation models on historical transaction data
- Predictive analytics (price forecasting, market cycle detection)
- Portfolio optimization (diversification recommendations)
- Lender marketplace (automated loan matching)
- Geographic expansion (international markets: Canada, Australia)
- Advanced fraud detection (identify mis-valued properties)
πͺ **Milestones:**
- Month 12: $500K ARR (50+ fund customers, 10K investor users)
- Month 18: $1.5M ARR (150+ funds, 30K users)
- Month 24: $3M+ ARR target (300+ funds, 50K+ users)
β
**Success Metrics:**
- $3M+ ARR
- 300+ fund customers
- 50K+ individual users
- Valuation MAPE <6% (industry benchmark)
- NPS >60
---
## π― FINAL ARCHITECTURE SUMMARY
β’ **Stack:** React + React Native + Node.js + Python + PostgreSQL + TimescaleDB + Weaviate + Kafka + Claude + Llama 2 + GPT-4V + AWS ECS
β’ **Security:** OAuth + MFA + Fair housing compliance + FCRA audit trails + SOC-2 ready + 3-year data retention
β’ **Scale:** 150K properties/day, 500-1500 concurrent, <2s valuation latency, $0.14 per analysis cost
β’ **Business:** $20.8K infrastructure β $150K MRR by Month 12 β $3M+ ARR by Month 24
β’ **Timeline:** MVP in 10 weeks, Multi-agent production in 20 weeks, Enterprise-ready in 32 weeks, $3M ARR in 24 months
β’ **Differentiation:** Multi-agent orchestration (valuation + market + due diligence + condition) + automated compliance screening + institutional-grade accuracy + real-time MLS data + fund-level portfolio optimization
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-SONNET
Building a successful LLM-powered application requires much more than connecting an API to a chatbot.
β¨ What You Receive:
π§ End-to-end LLM architecture
β‘ AI workflow & inference pipeline
π RAG & knowledge management design
π€ Agent orchestration strategy
βοΈ Cloud & infrastructure blueprint
π‘οΈ AI security & governance framework
π Cost, scalability & monitoring plan
π Production deployment roadmap
Design enterprise-grade LLM applications with confidence.
...more
Updated 1 week ago
