From 4018b3c5339307844c9cdcfc61e91009930f7c8f Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Wed, 28 Jun 2023 11:16:57 -0400 Subject: [PATCH] poetry development --- docs/development.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/development.md b/docs/development.md index 2d998906..ddb67b7c 100644 --- a/docs/development.md +++ b/docs/development.md @@ -1,5 +1,7 @@ # Development +ollama is built and run using [Poetry](https://python-poetry.org/). + ## Running **Start backend service:** @@ -7,13 +9,13 @@ Install dependencies: ``` -pip install -r requirements.txt +poetry install --extras server ``` Run a server: ``` -python3 ollama.py serve +poetry run ollama serve ``` **Start frontend service:** @@ -43,13 +45,13 @@ bash Miniforge3-MacOSX-arm64.sh Get the dependencies: ```bash -pip install -r requirements.txt +poetry install --extras server ``` Then build a binary for your current platform: ```bash -python3 build.py +poetry build ``` ### Building the app