Giter Club home page Giter Club logo

six's Introduction

Six

The most trusted personal agent.

N|Solid

Six is an AI native, privacy and trust focused agent that acts on behalf of the user - making texts-to-action awesome.

โœ… ๐Ÿฅ• Groceries
โœ… ๐Ÿ” Food delivery
๐Ÿ”œ โœˆ๏ธ Air ticket
๐Ÿ”œ ๐Ÿ›Œ Hotel booking
๐Ÿ”œ ๐Ÿš• Ride hailing
๐Ÿ”œ ๐Ÿฝ๏ธ Restaurant Reservation
๐Ÿ”œ ๐Ÿงพ Bill payment

Overview

This exercise will provide us with a working piece of code that can serve as neutral ground for technical discussion and on-site pair programming session.

We expect the exercise to take no more than a day and recommend that you do not spend any more than that, regardless of completion. Please read this entire document before beginning.

Feel free to use whatever resources you need. Just like in the real world, Google, ChatGPT, etc. are tools of the trade. We prefer Go, but will accept solutions in other languages.

If you have questions, please reach out to us on Discord:

Join Six on Discord

The Problem - Make recommendation with AI

Your goal is to build a web service from which users can get real time recommendations on food deliveries. Users can give an ambiguous demand like "get me some Mexican food" or a clear instruction like "get me a grande latte from Starbucks".

Your service should make up to three recommendations and all of them can be referenced to the original source. To take things a step further, you can store and cache the recommendations with a persistent database and caching database to speed up similar requests in the future.

A typical setup looks like this:

  • A web server framework (e.g. Gin)
  • A relational database (e.g. PostgreSQL)
  • An LLM service (e.g. OpenAI)
  • A third party aggregator / platform (e.g. UberEats, you might find something you need by simply press F12 in their web app)
  • A caching service (e.g. Redis)

Your client facing interface should look something like:

GET /recommendations

Return a JSON document with the following:

[
    {
        "recommendationId": "<id>",
        "store": {
            "name": "<name>",
            "id": "<id>",
            "menuItem": [
                {"name": "<name>", "id": "<id>", "price": "<price>"},
                {"name": "<name>", "id": "<id>", "price": "<price>"}
            ]
        }
    },
    {
        "recommendationId": "<id>",
        "store": {
            "name": "<name>",
            "id": "<id>",
            "menuItem": [
                {"name": "<name>", "id": "<id>", "price": "<price>"},
                {"name": "<name>", "id": "<id>", "price": "<price>"}
            ]
        }
    }
]

Your solution

Prepare code to solve the problem. We encourage you to be mindful of time and start with an MVP solution and iterate if time permits (hint: you may not need persistence in your MVP).

Include a README with at least the following:

  • Instructions for environment setup and running your code and tests
  • Any additional context on your solution and approach, including any assumptions made
  • What are the shortcomings of your solution?
  • If you had additional time to work on this problem, what would you add or refine?

Submitting results

Create a folder named solution and put your solution in it and submit a pull request on GitHub.

Good luck!

six's People

Contributors

hanzili avatar connorwang avatar

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.