Metadata-Version: 2.1
Name: peelml
Version: 0.0.4
Summary: Peel away the pain of ml deployment
Author: Rachel Hu
Author-email: goldpiggy@berkeley.edu
Maintainer: Jared Wilber
Maintainer-email: jdwlbr@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: boto3 (==1.26.165)
Requires-Dist: chromadb (==0.3.26)
Requires-Dist: click (==8.0.4)
Requires-Dist: docx2txt (==0.8)
Requires-Dist: duckdb (==0.8.1)
Requires-Dist: fastapi (==0.100.0)
Requires-Dist: flask (==2.2.3)
Requires-Dist: flask-cors (==4.0.0)
Requires-Dist: inquirer (==3.1.3)
Requires-Dist: langchain (==0.0.220)
Requires-Dist: llama-cpp-python (==0.1.66)
Requires-Dist: llvmlite (==0.40.1)
Requires-Dist: numba (==0.57.1)
Requires-Dist: openai (==0.27.8)
Requires-Dist: pdfminer-six (==20221105)
Requires-Dist: poetry (==1.4.2)
Requires-Dist: pydantic (==1.10.11)
Requires-Dist: python-dotenv (==1.0.0)
Requires-Dist: sagemaker (==2.169.0)
Requires-Dist: scikit-learn (==1.3.0)
Requires-Dist: starlette (==0.27.0)
Requires-Dist: tiktoken (==0.4.0)
Requires-Dist: tokenizers (==0.13.3)
Requires-Dist: typer (==0.9.0)
Requires-Dist: umap (==0.1.1)
Requires-Dist: umap-learn (==0.5.3)
Requires-Dist: virtualenv (==20.16.5)
Description-Content-Type: text/markdown

# peelml

peelml away the pain of ml deployment
# Development
## 1. Setup and Build

### 1.1 build backend
```
git clone https://github.com/CambioML/peelml.git
conda create -n peelml python=3.10
conda activate peelml
cd peelml
pip install poetry
pip install git+https://github.com/UKPLab/sentence-transformers.git@179b659621c680371394d507683b25ba7faa0dd8
poetry install --no-root # no root to not install peelml as a package
```

### 1.2 build frontend
1. install [nodejs](https://nodejs.org/en)
2. npm install `npm install vite`
3. cd into client folder and `npm run build`

## 2. Run
### 2.1 Option 1: run the server and client directly without cli
Before you start running the command below, go to server.py and upate
```
os.environ["OPENAI_API_KEY"] = ""
```

After that, run the following command
```
python -m peelml.server
```

### 2.2 Option 2: run the cli command
This is a interactive cli to ask you to input required environment parameters.
It will then start the server and client for you.
```
python -m peelml.cli start
```

## 3. Install
install peelml into site-packages like a pip install
```
poetry install
peelml start
```


P.S: If you build and pip install for local test, your changes will not reflect in peelml site-packages. Therefore, you have to `pip3 uninstall peelml`, built it again, and the install.

# Use
```
pip install git+https://github.com/UKPLab/sentence-transformers.git@179b659621c680371394d507683b25ba7faa0dd8
pip install peelml
```
