8000 OpenScholar/retriever/api at main · tvminh19/OpenScholar · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Serving a public API on Hyak

Step 1. Run the serve script

python serve2.py

Step 2. Forward the port to a public address on tricycle

ssh <UW_ID>@tricycle.cs.washington.edu
ssh -NL 0.0.0.0:<FORWARD_PORT>:<job node>:<SERVE_PORT> klone-login

Step 3. Send request to the address

curl -X POST localhost:<FORWARD_PORT>/search -H "Content-Type: application/json" -d '{"query": "example query", "domains": "pes2o"}'
0