Skip to content

Chatbot using OpenAI API and Google Maps API to suggest nearby food picks

Notifications You must be signed in to change notification settings

where-should-i-eat/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Where Should I Eat? - Backend

Hungry, but can't figure out a place nearby to eat? Craving something sweet? Spicy or mild? Pizza or sushi?
Use the WhereShouldIEat Chatbot to help you decide!

Submission for CalHacks AI LLM Hackathon (Summer 2023) - Achieved top 30% (ranking) of submissions

Collaborators

  • Ryan Campbell
  • Harry Lai
  • Shulu Li
  • Rishi Khare

Factored Cognition Chatbot

  • Ask a series of questions about proximity/location, occasion, price, etc.
  • From user responses to questions, output a recommended restaurant

App workflow:

  • App tells user an initial question: occasion/location preference/etc.
  • User types in answer, hits enter
  • User’s response is sent to OpenAI API, formatted with correct prompt
  • Repeat: (factored cognition)
    • Chat gives user another question about their preference
    • User types response, hits enter
    • User’s response is sent to OpenAI API, formatted with correct prompt
  • OpenAI generates search input to Google Maps API, then returns information to user
  • possibly use OpenAI to refine input to Google Maps API, then return refined information to user

Commands

To install

pip install -r requirements.txt

To Run Application

flask run

About

Chatbot using OpenAI API and Google Maps API to suggest nearby food picks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •