Skip to content

Commit

Permalink
refactor: updated how to install poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
umbertogriffo committed May 4, 2024
1 parent 0bd694c commit b01665b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Get poetry version
id: poetry-version
run: echo "poetry-version=$(cat poetry_version)" >> "$GITHUB_OUTPUT"

- name: Install poetry
uses: snok/install-poetry@v1
with:
version: 1.7.0
version: ${{ steps.poetry-version.outputs.poetry-version }}
virtualenvs-in-project: true
# Installing torch (CPU) and sentence-transformers with pip to avoid poetry's issues in installing torch.
# Installing llama-cpp-python without NVIDIA CUDA acceleration.
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,18 @@ To deal with context overflows, we implemented two approaches:

* Python 3.10+
* GPU supporting CUDA 12 and up.
* Poetry
* Poetry 1.7.0

### Install Poetry

Install Poetry by following this [link](https://python-poetry.org/docs/).
Install Poetry with the official installer by following this [link](https://python-poetry.org/docs/#installing-with-the-official-installer).

You must use the current adopted version of Poetry defined [here](https://github.com/umbertogriffo/rag-chatbot/blob/main/poetry_version).

If you have poetry already installed and is not the right version, you can downgrade (or upgrade) poetry through:
```
poetry self update <version>
```

## Bootstrap Environment

Expand Down
1 change: 1 addition & 0 deletions poetry_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.7.0

0 comments on commit b01665b

Please sign in to comment.