♫musicjinni

How to install and use PrivateGPT - Privately Chat with your own documents

video thumbnail
PrivateGPT is a really useful new project that you’ll find really useful.

You can basically load your private text files, PDF documents, powerpoint and use the power of Ai to interact with those documents. And it’s private and on your own computer.

It doesn’t have access to the internet and runs locally on your computer.

I’ll show you exactly how to set it up and use it and I’ll simplify it, so you can do this, even if you don’t know anything about computer programming.

First, you need a program called Visual Studio. You can download that here:
https://code.visualstudio.com/

Then go to file, new window. Then, make sure you can see the terminal section on the bottom of the page.

Next, you need the code from Github. You can copy the URL of the Github repo here.
https://github.com/imartinez/privateGPT

Go back to Visual Studio. Type cd desktop to access your computer desktop.

Then type: git clone https://github.com/imartinez/privateGPT.git

That should take a few seconds to install.

Then, go inside that folder by typing cd PrivateGPT

Then type pip install -r requirements.txt

The install should take a few minutes. If you have issues, you can type pip3 to use a specific version of python. If you don’t have python installed, you’ll need to install that first.
https://www.python.org/downloads/release/python-340/

Back in Github, download the LLM model.

Next, look for example.env on the left side of visual studio. And rename it .env.

Now, you can make a new folder called LLM models and move the downloads to it. You can use the finder window to make it easier.

You should see a folder called source-documents. This is where you will add your private documents. There is a test file there by default you can practice with.

Finally, type python ingest.py

This will ingest the documents. If you have an issue, try python3 ingest.py

You can check the Python version in your terminal or command prompt by using the following command: python --version
Or, for Python 3 specifically:python3 --version


To use it, use this command. python privateGPT.py
(Or python3 privateGPT.py)

The answer typically takes 20-30 seconds.

Remember to run the ingest prompt when you add new files to your folder.


Learning ChatGPT, Midjourney and AI just got way easier. Check out the ultimate AI learning platform. https://bit.ly/skillleapai

How to install and use PrivateGPT - Privately Chat with your own documents

Disclaimer DMCA