You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
772 B
25 lines
772 B
2 years ago
|
# privateGPT
|
||
|
|
||
|
This example is a re-adaptation of https://github.com/imartinez/privateGPT to work with LocalAI and OpenAI endpoints. We have a fork with the changes required to work with privateGPT here https://github.com/go-skynet/privateGPT ( PR: https://github.com/imartinez/privateGPT/pull/408 ).
|
||
|
|
||
|
Follow the instructions in https://github.com/go-skynet/privateGPT:
|
||
|
|
||
|
```bash
|
||
|
git clone git@github.com:go-skynet/privateGPT.git
|
||
|
cd privateGPT
|
||
|
pip install -r requirements.txt
|
||
|
```
|
||
|
|
||
|
Rename `example.env` to `.env` and edit the variables appropriately.
|
||
|
|
||
|
This is an example `.env` file for LocalAI:
|
||
|
|
||
|
```
|
||
|
PERSIST_DIRECTORY=db
|
||
|
# Set to OpenAI here
|
||
|
MODEL_TYPE=OpenAI
|
||
|
EMBEDDINGS_MODEL_NAME=all-MiniLM-L6-v2
|
||
|
MODEL_N_CTX=1000
|
||
|
# LocalAI URL
|
||
|
OPENAI_API_BASE=http://localhost:8080/v1
|
||
|
```
|