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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
-
# Testing-Huggingface
|
| 8 |
|
| 9 |
-
This repository is for testing Hugging Face Git push and pull workflows.
|
|
|
|
| 1 |
+
**PROJECT OVERVIEW**
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
**Project Name:** AI-Powered Property Recommendation via Contact Request \& CRM\*\*
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
**Overview**
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
This project builds an AI-driven recommendation system that responds to user property requests submitted through the \*\*Contact Us\*\* form on a real estate website.
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
When a user submits a request specifying budget, location, property type, and preferences, the request is:
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
1\. Stored in the **CRM** as a lead
|
| 22 |
+
|
| 23 |
+
2\. Processed by the backend
|
| 24 |
+
|
| 25 |
+
3\. Passed into a vector search engine
|
| 26 |
+
|
| 27 |
+
4\. Used to retrieve the most relevant property listings
|
| 28 |
+
|
| 29 |
+
5\. Returned to the user via the **website chat interface** as recommended property links
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
This system improves lead response speed, relevance, and conversion by providing instant, intelligent property suggestions
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
**MVP(Minimal Viable Product) DEFINITION**
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
**MVP Goal**
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
Deliver **instant property recommendations** based on user specifications from the Contact Us form, while logging the request in the CRM
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
**MVP Scope (Phase 1)**
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
User Flow
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
1\. User clicks **Contact Us**
|
| 58 |
+
|
| 59 |
+
2\. User submits:
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
\* property type
|
| 64 |
+
|
| 65 |
+
\* location preference
|
| 66 |
+
|
| 67 |
+
\* budget
|
| 68 |
+
|
| 69 |
+
\* specifications
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
3\. Request is:
|
| 74 |
+
|
| 75 |
+
saved in CRM
|
| 76 |
+
|
| 77 |
+
sent to recommendation engine
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
4\. User receives:
|
| 82 |
+
|
| 83 |
+
5–10 recommended property links in chat
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
**Components**
|
| 88 |
+
|
| 89 |
+
* Contact Us form
|
| 90 |
+
* Backend API to receive lead
|
| 91 |
+
* CRM lead ingestion
|
| 92 |
+
* Vector search–based recommendation engine
|
| 93 |
+
* Chat response with property cards or links
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
**Recommendation Logic (MVP)**
|
| 98 |
+
|
| 99 |
+
* **Hard filters:** budget, listing type, location
|
| 100 |
+
* **Vector similarity:** semantic matching of property descriptions
|
| 101 |
+
* **Re-ranking:** closeness to budget + preference match
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
**Out of Scope (For MVP)**
|
| 108 |
+
|
| 109 |
+
* Personalized long-term user profiles
|
| 110 |
+
* Payment or booking
|
| 111 |
+
* Mobile app
|
| 112 |
+
* Analytics dashboard
|
| 113 |
+
* Agent assignment logic
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
**MVP Success Criteria**
|
| 120 |
+
|
| 121 |
+
* Recommendation response time < 2 seconds
|
| 122 |
+
* At least 70% relevance in manual review
|
| 123 |
+
* Works with ≥ 1,000 property listings
|
| 124 |
+
* CRM successfully stores every request
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
**ROLE ASSIGNMENT (TEAM OF 4–5)**
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
**AI / ML Lead**
|
| 135 |
+
|
| 136 |
+
Responsibilities:
|
| 137 |
+
|
| 138 |
+
* Define recommendation strategy
|
| 139 |
+
* Design embedding \& vector search pipeline
|
| 140 |
+
* Build Colab notebooks
|
| 141 |
+
* Define input/output schemas
|
| 142 |
+
* Validate recommendation quality
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
Ownership:
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
* Vector index
|
| 151 |
+
* Query logic
|
| 152 |
+
* Recommendation relevance
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
**Backend Engineer**
|
| 157 |
+
|
| 158 |
+
Responsibilities:
|
| 159 |
+
|
| 160 |
+
* Contact Us API endpoint
|
| 161 |
+
* CRM ingestion
|
| 162 |
+
* Recommendation service orchestration
|
| 163 |
+
* Chat response handling
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
Ownership:
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
* API contracts
|
| 172 |
+
* Service reliability
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
**Frontend Engineer**
|
| 177 |
+
|
| 178 |
+
Responsibilities:
|
| 179 |
+
|
| 180 |
+
* Contact Us form UI
|
| 181 |
+
* Chat interface UI
|
| 182 |
+
* Rendering recommendation cards/links
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
Ownership:
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
* User experience
|
| 191 |
+
* API integration
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
**Data / Infra Engineer (Optional but valuable)**
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
Responsibilities:
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
* Property dataset preparation
|
| 206 |
+
* Data cleaning \& normalization
|
| 207 |
+
* Storage \& deployment setup
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
Ownership:
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
* Data quality
|
| 216 |
+
* Environment stability
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
**Leadership rule:**
|
| 223 |
+
|
| 224 |
+
You own decision clarity, not all the code.
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
**DATASET PREPARATION (YOUR FIRST TECH TASK)**
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
**Required Property Dataset Fields**
|
| 235 |
+
|
| 236 |
+
Each property listing **must** include:
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
| Field | Description |
|
| 241 |
+
|
| 242 |
+
| ------------- | ------------------------------ |
|
| 243 |
+
|
| 244 |
+
| property\_id | Unique identifier |
|
| 245 |
+
|
| 246 |
+
| title | Short property title |
|
| 247 |
+
|
| 248 |
+
| description | Full description |
|
| 249 |
+
|
| 250 |
+
| listing\_type | sale / rent / shortlet |
|
| 251 |
+
|
| 252 |
+
| property\_type | apartment / duplex / land |
|
| 253 |
+
|
| 254 |
+
| price | Numeric value |
|
| 255 |
+
|
| 256 |
+
| location | City / area |
|
| 257 |
+
|
| 258 |
+
| bedrooms | Integer |
|
| 259 |
+
|
| 260 |
+
| bathrooms | Integer |
|
| 261 |
+
|
| 262 |
+
| amenities | List (parking, security, etc.) |
|
| 263 |
+
|
| 264 |
+
| url | Public listing link |
|
| 265 |
+
|
| 266 |
+
| status | available / unavailable |
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
|
| 271 |
+
|
| 272 |
+
**Fields Used for Vector Embeddings**
|
| 273 |
+
|
| 274 |
+
|
| 275 |
+
|
| 276 |
+
These fields are **combined into one semantic text**:
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
|
| 280 |
+
* title
|
| 281 |
+
* description
|
| 282 |
+
* amenities
|
| 283 |
+
* location
|
| 284 |
+
* property\_type
|
| 285 |
+
* listing\_type
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
|
| 289 |
+
Example combined text:
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
> “3 bedroom furnished apartment in Lekki Phase 1 with parking, 24-hour security, close to the beach.”
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
Fields Used for Filtering (NOT embeddings)
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
* price
|
| 304 |
+
* listing\_type
|
| 305 |
+
* location
|
| 306 |
+
* bedrooms (if strict)
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
|
| 310 |
+
**Dataset Sources**
|
| 311 |
+
|
| 312 |
+
* Existing company database
|
| 313 |
+
* Export from CMS
|
| 314 |
+
* Scraped listings (if approved)
|
| 315 |
+
* Mock dataset (for early MVP)
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
**Output of Dataset Preparation**
|
| 320 |
+
|
| 321 |
+
* Cleaned property table
|
| 322 |
+
* Text field for embeddings
|
| 323 |
+
* Metadata table for filters
|
| 324 |
+
* Ready for FAISS indexing
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
**CRM INTEGRATION (MVP VIEW)**
|
| 331 |
+
|
| 332 |
+
CRM Receives:
|
| 333 |
+
|
| 334 |
+
* User contact info
|
| 335 |
+
* Property request specs
|
| 336 |
+
* Timestamp
|
| 337 |
+
* Recommendation IDs returned
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
Why this matters:
|
| 342 |
+
|
| 343 |
+
* Agents can see what was recommended
|
| 344 |
+
* Follow-up becomes context-aware
|
| 345 |
+
* Better conversion tracking
|
| 346 |
+
|
| 347 |
|
|
|
|
| 348 |
|
|
|