Giter Club home page Giter Club logo

happy-hour-gpt's Introduction

OpenAI Api Exploration with Embeddings

The goal of this is to create a program that acts as an NYC bar/happy hour recommender. It uses OpenAI's embeddings API to base the recommendations off a list of bars found in the csv files in the data directory.

Note: This README needs some TLC that's simply not available from me at 2am.

Running

  1. Create a .env file in the repository (see .env.example) and add your OpenAI credentials.
  2. Run yarn start "The prompt goes here".
  3. Usually the first run will request and create the embeddings, but I'm commiting the embeddings to this repo for drinks-happy-hour.csv.

If you want to try out another data file you can create a new embedding context by basically copying the existing code in src/index.ts. Expect a 30-60 second first run of the program when doing this. Subsequent executions will be significantly faster at around 5 seconds.

Examples

I'm pretty damn impressed with how good it is off the bat. Pretty much no tweaking of anything, no error handling (lol), no logging, no prompt engineering.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.