Merge pull request #837 from morsamatias/add-poetry

Add Poetry
This commit is contained in:
Iván Martínez 2023-07-20 09:32:19 +02:00 committed by GitHub
commit f31ee47844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3346 additions and 0 deletions

View File

@ -12,6 +12,16 @@ In order to set your environment up to run the code here, first install all requ
pip3 install -r requirements.txt
```
*Alternative requirements installation with poetry*
1. Install [poetry](https://python-poetry.org/docs/#installation)
2. Run this commands
```shell
cd privateGPT
poetry install
poetry shell
```
Then, download the LLM model and place it in a directory of your choice:
- LLM: default to [ggml-gpt4all-j-v1.3-groovy.bin](https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin). If you prefer a different GPT4All-J compatible model, just download it and reference it in your `.env` file.

3308
poetry.lock generated Normal file

File diff suppressed because it is too large Load Diff

28
pyproject.toml Normal file
View File

@ -0,0 +1,28 @@
[tool.poetry]
name = "privategpt"
version = "0.1.0"
description = ""
authors = ["Ivan Martinez <ivanmartit@gmail.com>"]
license = "Apache Version 2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
langchain = "^0.0.228"
gpt4all = "^1.0.3"
chromadb = "^0.3.26"
llama-cpp-python = "^0.1.68"
urllib3 = "^2.0.3"
PyMuPDF = "^1.22.5"
python-dotenv = "^1.0.0"
unstructured = "^0.8.0"
extract-msg = "^0.41.5"
tabulate = "^0.9.0"
pandoc = "^2.3"
pypandoc = "^1.11"
tqdm = "^4.65.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"