Skip to content

AstraBert/PrAIvateSearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

PrAIvateSearch

Own your AI, search the web with it๐ŸŒ๐Ÿ˜Ž

Logo

About PrAIvateSearch

PrAIvateSearch is a Gradio application that aims to implement similar features to SearchGPT, but in an open-source, local and private way.

Flowchart

Logo

Flowchart for PrAIvateSearch

The process of creating and the functioning of PrAIvateSearch is explained in this blog post on HuggingFace.

Installation and usage

  1. Clone the repository:
git clone https://github.com/AstraBert/PrAIvateSearch.git
cd PrAIvateSearch
  1. Move .env.example to .env...
mv .env.example .env

...and specify PostgreSQL related variables:

# .env file
PG_DB="postgres"
PG_USER="pgql_usr"
PG_PASSWORD="pgql_psw"
  1. Install necessary dependencies:
  • Linux:
python3 -m venv /path/to/SearchPhi
source /path/to/SearchPhi/bin/activate
python3 -m pip install -r requirements.txt
  • Windows:
python3 -m venv c:\path\to\SearchPhi
c:\path\to\SearchPhi\Scripts\activate  # For Command Prompt
# or
c:\path\to\SearchPhi\Scripts\Activate.ps1  # For PowerShell
# or
source c:\path\to\SearchPhi\Scripts\activate  # For Git

python3 -m pip install -r requirements.txt
  1. Start third-party services:
docker compose up -d
  1. Run the application:
python3 scripts/app.py

Once the models will be downloaded and loaded on your hardware, you'll see the application on http://localhost:7860.

PROs: You can customize the application code (change the model, change CPU/GPU settings, change generation kwargs, modify the app interface...)

CONs: Longer and more complex installation process

Usage note

โš ๏ธ The Gradio application was successfully developed and tested on a Windows 10.0.22631 machine, with 32GB RAM, 16 core CPU and Nvidia GEFORCE RTX4050 GPU (6GB, cuda version 12.3), python version 3.11.9

Although being at a good stage of development, the application is a beta and might still contain bugs and have OS/hardware/python version incompatibilities.

Demo

Here's a video demo of what it can do:

Video demo for SearechPhi

Contributions

Contributions are more than welcome! See contribution guidelines for more information :)

Funding

If you found this project useful, please consider to fund it and make it grow: let's support open-source together!๐Ÿ˜Š

License and rights of usage

This project is provided under MIT license: it will always be open-source and free to use.

If you use this project, please cite the author: Astra Clelia Bertelli