These examples are intended to give you hands-on experience with the basic concepts you need to get up and running with Jina.
Each step adds another small feature on top of the previous step, so be sure to go through each step in order.
- They're not meant to be comprehensive
- They aren't for production ready applications
- Have basic to intermediate Python skill
- Read Jina fundamentals on our docs
- Install Jina on Mac, Linux, or Windows
- Ensure you're in a virtual environment
pip install -r requirements.txt
cd basics/1_minimum_example
python app.py
Then take a look at the code. The apps in themselves do very little, but slowly build up to a more complex app. After you've finished the first section, move onto section 2 and so on.
First run:
git pull
to ensure you're using the latest code for these examplespip install -U jina
to ensure you're using the latest release of Jina
This may be a timeout error. Add timeout_ready=240000
to the Executor in your Flow:
flow = Flow().add(uses="foo", timeout_ready=240000)
This may be due to using older versions of Hub Executors. Please delete your cache using rm -rf ~/.jina
and then try running again.
Also, stop any Jina Docker containers that are currently running.
- Join our Slack and ask there.