gptbot

command
v0.0.0-...-914b2b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 21 Imported by: 0

README

GPTBot Server

Prerequisites

Install and run the Milvus server (see instructions).

Start GPTBot Server

$ go build
$ ./gptbot
2023/03/25 22:48:13 transport=HTTP addr=:8080

Using cURL

Upload a document file:

$ curl -F file=@wikipedia_gpt3.txt http://localhost:8080/upload

Chat with the bot:

$ curl -H 'Content-Type: application/json' http://localhost:8080/chat -d '{"question": "When was GPT-3 introduced in the paper?"}'

Using Gradio

Install dependencies:

$ cd gradio
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt

Run the UI:

$ python3 ui.py

gradio

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL