## Inspiration The inspiration for our restaurant recommender app came from a desire to make dining out a more personalized and enjoyable experience. We wanted to create a tool that would take user preferences and references into account, providing highly tailored restaurant recommendations. By integrating the Yelp API for business data and the OpenAI API for generating responses, we aimed to deliver a unique and interactive way for users to discover great places to eat.
What it does
Our app is a chat bot that provides intelligent restaurant recommendations based on the user's preferences and location.
How we built it
Our tech stack is fastAPI back end and react front end. We used Yelp API to get restaurants near the users current location, retrieved from the user's IP. We then constructed a prompt for OpenAI using relevant information from the Yelp API response. This provides the chat bot with context for the conversation, allowing it to have knowledge nearby food options. For example, the user can ask for "vegan" and the bot is intelligent enough to recommend something like "Indian".
Challenges we ran into
One of the challenges we faced was getting the app running and getting the frontend and backend to communicate with one another. We were using flask at first and post requests were being redirected to get requests. We thought it was the network or something wrong with the frontend but once we refactored to fastAPI that resolved the issues we were facing.
Accomplishments that we're proud of
We are able to make the connection between the frontend and backend, and the chatbot is able to provide the user with intelligent restaurant recommendations near the user's location.
What we learned
We learn to work with web frameworks and tools like Flask, FastAPI, OpenAI, React/TypeSrcipt, YelpAPI and we got good practice with teamwork and problem solving.
What's next for Food finder
We want to use MapsAPI to calculate the distance between each restaurant and the user. So the user can ask for recommendations within a certain distance.
Built With
- fastapi
- react
- typescript
Log in or sign up for Devpost to join the conversation.