Spaces:
Sleeping
A newer version of the Gradio SDK is available:
6.5.1
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
- NoBrokerage Chatbot
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
/chatendpoint - 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