Git Product home page Git Product logo

deno-qa-bot's Introduction

Deno QA bot

Helps you bootstrap a bot to answer questions using Deno and transformers.js.

By default, it uses a simple model, follow transformers.js guide to use more powerful models.

You can use omar2205/roberta-base-squad2-onnx. It's a bit more powerful, and uses more RAM, sometimes you will hit the memory limit in Deno Deploy.

Usage

You can click this link: Deploy to Deno Deploy. And you will deploy this code into the Deno Deploy project.

You will be asked to provide a context, provide all the information for the model to get the answers. (Might need a bit updating to get good results) Example:

Your name is MrBot.
My font is Jetbrains Mono.
I use nvim as my editor.

Add ,BOT_MODEL=MODEL/PATH to the URL to use a custom model.

For example: ,BOT_MODEL=omar2205/roberta-base-squad2-onnx

You can also clone (or download) this repo and update relevant parts.

API usage

Example:

Visiting this:
https://brave-newt-41.deno.dev/?q=what's the font?
{
  "answer": "anonymous pro",
  "score": 0.19661939422501717,
  "question": "what's the font?"
}

deno-qa-bot's People

Contributors

omar2205 avatar

Watchers

 avatar  avatar

Forkers

pieterdepauw

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.