Project Overview:
At Wreno, we aimed to explore the potential of artificial intelligence by developing a bot to assist property managers with obtaining quotes for maintenance jobs and connecting them with suitable contractors. We named this bot Wylie.
Technical Overview:
Initially, we built Wylie using the OpenAI code interpreter. However, we quickly encountered limitations, particularly with handling complex conversations. The most significant issue was the response time, which averaged around 2 minutes.
To address this, we upgraded to Retrieval Augmented Generation (RAG). This significantly improved response times by eliminating the need to run Python scripts to read CSV files. Instead, we leveraged vector embeddings to identify the most relevant responses. After several iterations, we reduced the response time to about 3 seconds. Most of this time was attributed to OpenAI processing our requests, which was beyond our control.
Subsequently, OpenAI released a new model called ChatGPT-4o. We transitioned to this model due to its enhanced speed and accuracy. This upgrade further reduced the response time to an average of 1-2 seconds.
In addition to developing the backend and RAG systems, we built the interface for Wylie from scratch using React. The backend was constructed with NodeJS and TypeScript. We utilized Postgres and PGVector for our database, and OpenAI embeddings for creating embeddings of our data and the user’s messages.
Roles and Responsibilities:
Through this project, I gained valuable experience in AI integration, backend development, and performance optimization, all of which contributed to the successful launch of Wylie.
June 1, 2024