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

preview_player
Показать описание
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:

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.

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

That should take a few seconds to install.

Then, go inside that folder by typing cd PrivateGPT

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.

Back in Github, download the LLM model.

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.

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.

Рекомендации по теме
Комментарии
Автор

PS pip install -r requirements.txt
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

HernaniSamuel
Автор

I developed and implemented a web-based version several months ago. Always amazed by all the changes we are experiencing. Where is your env?

morris
Автор

Hello, I am stuck at the "Enter a query" prompt, receiving this error message: "Index not found, please create an instance before querying". Can you please help?

wolframdanielh.
Автор

How easy installation in Youtube BUT in real life its hard as hell

ysaleh
Автор

the requirements.txt is no longer in the ZIP... :( What should i do know?

hadeltuch
Автор

this link don't match to what he has shown and there is no folder .txt so some errors pop up.

ximwrxl
Автор

This is more complicated than that. You would need C++ complier, python, Visual Studio etc etc.

ozanpress
Автор

Is this a tutorial about an old version of privateGPT? because not only the installation with pip is not supported anymore but now there are makefiles to run things it seems

davidaliaga
Автор

Definitely not beginner friendly. I'm getting all sorts of errors. 😂

rosalindhb
Автор

@Howfinity I receive an error saying that "No sentence-transformers model found with name Creating a new one with MEAN pooling". It then times out because I need to run this offline. Any answers?

rileydunnaway
Автор

funny how it all seems so easy. In reality, this is a nightmare.

motarek
Автор

Can you guide me change llamacpp parameters to reduce time of query

ahmedkamal
Автор

this doesnt work. after installing multiple missing libraries it gets stuck at ValueError: You are using a deprecated configuration of Chroma.

asherhaque
Автор

Anyone have any suggestions for fixing the error I'm getting when running "pip install -r requirements.txt" (note: I've tried running "pip3 install -r requirements.txt" and get the same error)

ERROR: Failed building wheel for llama-cpp-python

TheCommando
Автор

\privateGPT> pip install -r requirements.txt
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

it looks like the 'requirements.txt' is not there.
Any thoughts on how to get past this?

martysausville
Автор

Hi Authors, I have questions. during pip install -r requirements.txt, I'm unable to install the requirements file as it not available even I'm try to locate it. No luck. I run on Windows 11, the installation is similar to yours. Hope hearing news from you soon

drkmtr
Автор

is it possible to "train" the private gpt by connection to own datasource/database of existing app, or document in own NAS ?
how?

hikpras
Автор

Great Guidance! Thank you! Btw: I got this message ==> UnicodeDecodeError: 'charmap' codec can't decode byte 0x9f in position 15350: character maps to <undefined>
Any help, please?

CostasSachpazis
Автор

can you use wsl (windows subsystem for linux) for windows?

Thee_such_place
Автор

Anyone can help please.!! I am not able to install it on local PC. (missing requiremetns.txt and examples.env)

cl