Condo GPT is an intelligent assistant for querying and analyzing condominium data in Miami. It uses natural language processing to interpret user questions and provide insights about condo buildings, units, sales, and market trends. Provided is a sample of the Condo Cube database which can be used to query data in the following markets:
The purpose is to allow real estate agents and investors who are not technical, to easily and quickly perform high-level analyses and comparisons of condos in Miami, and lead their investment decisions. Currently this job is performed by analysts which are paid a salary, so tools like these have the potential to save brokerages thousands of dollars per month in salary.
I used this as a portfolio project to get my first AI Engineer job. I have listed some issues which you can solve or submit your own PR's for improvements to the tool. Open source contributions are a very good way to get AI jobs since technologies like LangChain are so new, and many companies currently do not require work experience with them.
Please feel free to submit a Pull Request.
CREATE DATABASE condo_gpt;
CREATE USER readonly_user WITH PASSWORD 'password';
GRANT CONNECT ON DATABASE condo_gpt TO readonly_user;
GRANT USAGE ON SCHEMA public TO readonly_user;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readonly_user;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readonly_user;
qgpt_env/bin/activate file and add the following environment variablesGPLACES_API_KEY: Your Google Places API keyOPENAI_API_KEY: Your OpenAI API keyFLASK_SECRET : Flask Secret Phrase (Can be any string)PG_USER: Your postgres User you set up abovePG_PASSWORD: Password for your postgres userPG_PORT: Port for your postgres database server (default 5432)PG_DB: Name of your postgres databasepsql -d condo_gpt < sample_db.sqlsource gpt_env/bin/activatepip install -r requirements.txtpython server.pypython server.pyhttp://localhost:5000server.py: Flask application servermain.py: Core logic for processing questions and generating responsestools.py: Custom tools for database querying and API interactionsprefix.py: System message prefix for the AI agentboilerplate.py: Boilerplate code for map and chart generation