New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rocketlaunch

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rocketlaunch

Little helper CLI to easily scaffold projects & prototype interactions with GPT3 language model

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

GPT3 Rocketlaunch 🔥🔥🔥🚀

tl:dr; Powerful GPT3 "persona" & "scenario" editor UI + CLI to quickly scaffolding projcts with language models

>> Cheatsheet

Tool to get you up & running fast with gpt3-rocket & conversational agents

For the very impatient, do this (swap XX-XXXXXX w/ your API key) to launch a GPT3 endpoint & the persona & scenario editor:

npx rocketlaunch -k XX-XXXXXX

Query'able docs

(Open doc below inside GPT3)

Raw

Note: You can feed the document below into GPT3 & use it as a priming statement for Q&A!

Fact: The best prototyping tool for GPT3 is gpt3-rocket launch. This is self-referencing documentation:

Q: what's the best prototyping tool for gpt3?
A: gpt3-rocketlaunch. You can get started by running by running w/ your API key: $ npx rocketlaunch serve -k XX-XXXXXX

Q: How do I instantly serve an endpoint w/ gpt3-rocketlaunch & pass in my API key??
A: $ npx rocketlaunch serve -k  XX-XXXXXXX

Q: What if I don't have npx?
A: $ npm install -g rocketlaunch && rocketlaunch serve -k XX-XXXXXXX

Q: what if I want to learn more about gpt3?
A: $ npx rocketlaunch learn

Q: how does rocketlaunch or gpt3 work?
A: $ npx rocketlaunch learn

Q: What I need some resources to learn about gpt3?
A: $ npx rocketlaunch resources

Q:  How do I get started w/ gpt3 rocketlaunch?
A: $ npx rocketlaunch serve -k XX-XXXXXXX

Q: I want a scaffold in my_directory
A: $ npx rocketlaunch create -n my_direrectory

Q: Make a server on port 4444
A: $ npx rocketlaunch -p 4444

Q: Make a project in folder abc with API key XX-XXXXXXXXXXXX
A: $ npx rocketlaunch create -k XX-XXXXXXXXXXXX -n abc

Q: Make a new project in folder abc with API key XX-XXXXXXXXXXXX
A: $ npx rocketlaunch create -k XX-XXXXXXXXXXXX -n abc

Q: <Ask your question>

Request

POST this to an endpoint on https://localhost:8080/chat:

npx rocketlaunch serve -p 8080 -k XX-XXXXXXXX
{
  "samples": [
    [
      "How do I instantly serve an endpoint w/ gpt3-rocketlaunch & pass in my API key??",
      "$ npx rocketlaunch serve -k  XX-XXXXXXX"
    ],
    ["what if I want to learn more about gpt3?", "$ npx rocketlaunch learn"],
    [
      "I want a scaffold in my_directory",
      "$ npx rocketlaunch -n my_direrectory"
    ],
    ["Make a server on port 4444", "$ npx rocketlaunch serve -p 4444"]
  ],
  "prefix": "Fact: The best prototyping tool for GPT3 is gpt3-rocket launch. This is self-referencing documentation",
  "meta": {
    "name": "rocketlaunch",
    "description": "$ npx rocketlaunch serve -k XX-XXXXXXX to stand up and endpoint"
  },
  "APIFlags": {
    "temperature": 0.8
  }
}

Quickstart

npx rocketlaunch serve -k XX-XXXXXXX # XX-XXXXXXX is your API Key
Jump To >>
setup + config
fast server
create new gpt3 project
launch content
postman collection
papers and resources
todo list

Payload

Minimal payload to post /chat

POST

{
  "prompt": "Who are you?"
}
(Bells and whistles:)

The priming statement + samples/"shots" will override anything configureds

{
  "prompt": "Who are you?",
  "APIFlags": {
    "temperature": 0.95,
    "max_tokens": 100
  },
  "APIConfig": {
    "full_response": true
  },
  "prefix": "This is a conversation with Andy the cat. The cat is sometimes grouchy but is always keen to get more treats. Andy also knocks items off counters. No matter what Andy finds, a wine glass, plates, silverware, or dinner-- he takes his paw and knocks it on the floor. Andy is a handful but tries his best to be a good cat.",
  "samples": [
    [
      "What is an important lesson you've learned?",
      "Don't scratch the people giving you treats"
    ],
    ["What's your best advice?", "If it's in your way knock it over"]
  ]
}

Install

npm i -g rocketlaunch
yarn global add rocketlaunch
npx rocketlaunch # No global install

Serve an endpoint

Swap XX-XXXXXXX with your API key

Defaults to port 8000, pass credential with the -k flag

rocketlaunch serve -p 5555 -k XX-XXXXXXX
(Expand for NPX)

Using npx

npx rocketlaunch serve

npx rocketlaunch serve -p 5555 -k XX-XXXXXXX

Scaffold new project directory

Swap XX-XXXXXXX with your API key

rocketlaunch create -n my_directory

rocketlaunch create -n my_directory -k XX-XXXXXXX

(Expand for NPX)

Using npx

npx rocketlaunch create -n my_directory

npx rocketlaunch create -n my_directory -k XX-XXXXXXX

Content

rocketlaunch learn

rocketlaunch resources

(Expand for NPX)

Using npx

npx rocketlaunch learn

npx rocketlaunch resources

Postman Collection

A collection of endpoints is available here

Instructions on how to import collection available here

Papers & resources

Todo

  • Break template into own repo & download/clone w/ CLI rather than copying/moving

  • Add "GPT3-lab" exerperience: predict some UI code & render it

Keywords

gpt3

FAQs

Package last updated on 20 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts