PrAIvateSearch
Own your AI, search the web with itππ
About PrAIvateSearch
PrAIvateSearch is a NextJS web application that aims to implement similar features to SearchGPT, but in an open-source, local and private way.
Flowchart
Flowchart for PrAIvateSearch
The process of creating and the functioning of PrAIvateSearch is explained in in the Explanation page.
Installation and usage
For this section, you should have
condapackage manager,dockeranddocker compose.
- Clone the repository:
git clone https://github.com/AstraBert/PrAIvateSearch.git
cd PrAIvateSearch
- Move
.env.exampleto.env...
mv .env.example .env
...and specify PostgreSQL related variables:
# .env file
pgql_db="postgres"
pgql_user="localhost"
pgql_psw="admin"
- Install necessary dependencies with
conda:
conda env create -f conda_environment.yaml
- Set up Crawl4AI inside the
condaenvironment:
conda activate praivatesearch
crawl4ai-setup
crawl4ai-doctor
conda deactivate
- Start third-party services:
docker compose up -d
-
Run
Qwen-2.5-1.5B-Instructon API with FastAPI/Uvicorn: -
Run
Qwen-2.5-1.5B-Instructon API with FastAPI/Uvicorn:
conda activate praivatesearch
cd qwen-on-api/
uvicorn main:app --host 0.0.0.0 --port 8000
http://localhost:3000 and chat with it!
Usage note
The NextJS application was successfully developed and tested on a Ubuntu 22.04.3 machine, with 32GB RAM, 22 cores CPU and Nvidia GEFORCE RTX4050 GPU (6GB, cuda version 12.3), python version 3.11.11 (packaged by conda 24.11.0)
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.
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: Clelia (Astra) Bertelli