Minimal version of Q&A system like Perplexity.ai
Setting up this project is straightforward. Follow the steps below to prepare your local environment.
Ensure the following are installed and configured before proceeding:
-
Python - Download Python
-
API Keys
-
OpenAI API Key - Generate here
-
Google Custom Search API Key and Search Engine ID or Bing API Key
-
For Google, create a Custom Search API Key and a Search Engine ID
-
For Bing, create a Bing Search API Key
-
-
-
Clone the repository:
git clone https://github.com/sourav014/miniperplexityAI.git
-
Install dependencies: Navigate to the project directory and install required packages from requirements.txt:
cd miniperplexityAI pip install -r requirements.txt
-
Configure environment variables: Create a .env file in the project root and add your configuration values:
SERVER_PORT="8080" GOOGLE_CUSTOM_SEARCH_API_KEY="your-google-custom-search-api-key" SEARCH_ENGINE_ID="your-search-engine-id" BING_API_KEY="your-bing-api-key" OPENAI_API_KEY="your-openai-api-key"
-
Start the server: Run the application:
python3 app.py
- Clone the repository:
git clone https://github.com/sourav014/miniperplexityAI.git
- Navigate to the project directory
cd miniperplexityAI
- Configure environment variables: Create a .env file in the project root and add your configuration values:
SERVER_PORT="8080" GOOGLE_CUSTOM_SEARCH_API_KEY="your-google-custom-search-api-key" SEARCH_ENGINE_ID="your-search-engine-id" BING_API_KEY="your-bing-api-key" OPENAI_API_KEY="your-openai-api-key"
- Build the docker image:
sudo docker build -t miniperplexityai .
- Start the container:
sudo docker run -d --name miniperplexityai_container -p 8080:8080 miniperplexityai
After completing the setup, open your favorite browser and navigate to http://127.0.0.1:8080/ to start interacting with the application.
We know developers often prefer a dark theme, but currently, this application does not support it. Thank you for your patience, and enjoy exploring the app!