GithubHelp home page GithubHelp logo

noa-assistant's Introduction

Noa Assistant

This repository conatains all AI stuff of Noa that can be used in parallel with
a Authentication server to protect APIs and throttled usage
Working features:

  1. Conversational AI
  2. Conversation with Photos
  3. Voice transcription
  4. Web Search

Setup

  1. Copy the .env.example file to .env and fill in the keys Note: for reverse image search a image cdn needed, you can use any api which accepts image and returns a url.
    format of the api should be like this.
    Or this can be avoided if not using reverse image search
curl -F'file=@path/to/yourfile.png' -Fexpires=2 example.com
  1. Create and activate a python virtual enviroment(optional). eg. from freecodecamp

  2. Install ffmpeg, and make sure its available in PATH variable

  3. Install required python packages

pip install -r requirements.txt
  1. Run the server
python app.py --server

vision tools, search tools, assistant can be selected by passing the following arguments

python app.py --server --vision gpt-4-vision-preview --search-api serpapi --assistant gpt

Now the server should be running on http://localhost:8000 if default port is used

API

POST /mm

await fetch('localhost:8000/mm', {
  method: 'POST',
  body: new FormData({
    mm: JSON.stringify({
      prompt: 'who are you?',
      messages: [
        {
            role: 'user',
            content: 'Hi'
        },
        {
            role: 'assistant',
            content: 'Hello how can I help you?'
        }
      ],
      gps: [23.646965, 87.159115],
      local_time: 'Tuesday, March 12, 2024, 7:24 AM',
      address: 'london',
      vision: 'claude-3-haiku-20240307'
    }),
    image: new File(['path/to/yourfile.png'], 'yourfile.png'),
    audio: new File(['path/to/yourfile.wav'], 'yourfile.wav')
  })
})

POST /health

await fetch('localhost:8000/health')

workflow

Workflow

noa-assistant's People

Contributors

trzy avatar uma-shankar-te avatar siliconwitch 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.