PROPERT_AI / README.md
Subhakanta
fixining the readme file
c363d0e

A newer version of the Gradio SDK is available: 6.5.1

Upgrade
metadata
title: Property AI
emoji: 🏠
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 3.44.0
app_file: app.py
pinned: false

NoBrokerage Chatbot

AI-powered real estate assistant for NoBrokerage.com that retrieves property data from a FAISS vectorstore, applies structured filters, and generates grounded summaries and property cards using Groq LLM.

This project is built using FastAPI, LangChain, FAISS, HuggingFace embeddings, Frontend, and Groq LLM, and is ready for Docker deployment and Hugging Face Spaces.


Table of Contents


Project Overview

NoBrokerage Chatbot allows users to query property listings by specifying filters like city, BHK, budget, status, locality, and returns summary text and cards with property details.

  • Semantic search: FAISS vectorstore with HuggingFace embeddings for similarity search.
  • Deterministic filters: Apply structured metadata filters for city, BHK, budget, status, and locality.
  • LLM summarization: Groq LLM produces grounded summaries and card outputs strictly from filtered property records.
  • Deployment-ready: Can run via CLI, FastAPI, Docker, or Hugging Face Spaces.

Features

  • Parse natural language queries for:
    • Budget (β‚Ή, Cr, Lakh)
    • BHK
    • City
    • Property status (Ready to move / Under construction)
    • Locality or project
  • FAISS similarity search over property embeddings
  • Deterministic filtering of search results
  • Generate structured JSON output with:
    • summary (text summary)
    • cards (detailed property info)
  • FastAPI backend with /chat endpoint
  • Dockerized for easy deployment
  • Compatible with Hugging Face Spaces

Project Structure

NOBROKERAGE/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ api.py
β”‚   
β”œβ”€β”€ data/
β”œβ”€β”€ database/
β”œβ”€β”€ frontend/
β”œβ”€β”€ processed_data/
β”œβ”€β”€ src/
β”‚   └── chatbot.py
β”œβ”€β”€ subha/
β”œβ”€β”€ vectorstore/
β”‚   └── index.faiss
β”œβ”€β”€ .env
β”œβ”€β”€ .gitignore
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ README.md
└── requirements.txt

Example Queries the Chatbot Can Handle

The chatbot can intelligently respond to natural language queries like:

  • " Find 2BHK apartments in Chembur "
  • " 3BHK flat in Pune under β‚Ή1.2 Cr "
  • " Under-construction 3BHK in Mumbai "
  • " 2bhk flat in pune "
  • " 3bhk in Mumbai "

It uses: - FAISS to find the most relevant property documents. - LangChain + Groq LLM (llama-3.1-8b-instant) to summarize matching results. - Structured filters for city, budget, BHK, locality, and status.

How to Run Locally

1. Clone the Repository

git clone https://github.com/yourusername/nobrokerage.git
cd nobrokerage

2. Create Virtual Environment

python -m venv venv
venv\Scripts\activate   # on Windows
# OR
source venv/bin/activate  # on Mac/Linux

3. Install Dependencies

pip install -r requirements.txt

4. Set Up Environment Variables

GROQ_API_KEY=your_groq_api_key_here

5. Run the FastAPI Server

cd backend
uvicorn api:app --reload

Tech Stack

  • FastAPI β€” Backend API framework
  • Frontend - index.html, style.css, script.js
  • LangChain β€” LLM orchestration
  • Groq LLM (llama-3.1-8b-instant) β€” Summarization & reasoning
  • FAISS β€” Semantic vector search
  • HuggingFace Sentence Transformer β€” Embeddings
  • Docker β€” Containerization
  • Python 3.11

Features

βœ… Semantic property search using FAISS
βœ… Intelligent summaries and cards generated by Groq LLM
βœ… Handles filters like city, budget, BHK, and project status
βœ… Ready for Hugging Face Spaces or cloud deployment
βœ… Modular architecture (backend + src separation)


Deployment Ready

This backend is designed to work seamlessly with Docker and can deploy directly to Hugging Face Spaces.
Make sure vectorstore/ and .env are included in your project before building the Docker image.


πŸ‘¨β€πŸ’» Author

Subhakanta Rath
πŸŽ“ MSc AI & ML β€” IIIT Lucknow
πŸ’‘ Focused on ML, Data Engineering & Agentic AI Systems
πŸ“ Lucknow, India