Migrated to jina-ai/jina
, this repo is archived and read-only
jinad is a REST + Websockets based server to allow remote workflows in Jina. It is built using FastAPI and deployed using Uvicorn.
Jina Docs: https://docs.jina.ai/
JinaD API Docs: https://api.jina.ai/jinad
On Linux/macOS with Python 3.7/3.8:
pip install -U jinad && jinad
docker run -p 8000:8000 jinaai/jinad
Debian / Ubuntu:
curl -L https://raw.githubusercontent.com/jina-ai/jinad/main/scripts/deb-systemd.sh | bash
RPM:
to be added
Start jinad
on a remote machine - 1.2.3.4:8000
f = (Flow()
.add(name='p1', uses='_logforward')
.add(name='p2', host='1.2.3.4', port_expose='8000', uses='_logforward')
with f:
f.search_lines(lines=['jina', 'is', 'cute'], output_fn=print)
jina pod --host 1.2.3.4 --port-expose 8000 --uses _logforward
curl -s --request PUT "http://1.2.3.4:8000/v1/flow/yaml" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "uses_files=@helloworld.encoder.yml" -F "uses_files=@helloworld.indexer.yml" -F "pymodules_files=@components.py" -F "yamlspec=@helloworld.flow.index.yml"