Skip to content

sourav014/miniperplexityAI

Repository files navigation

Minimal version of Q&A system like Perplexity.ai

Setting Up the Repository Locally

Setting up this project is straightforward. Follow the steps below to prepare your local environment.

Prerequisites

Ensure the following are installed and configured before proceeding:

  1. Python - Download Python

  2. API Keys

Steps to Set Up

  1. Clone the repository:

    git clone https://github.com/sourav014/miniperplexityAI.git
    
  2. Install dependencies: Navigate to the project directory and install required packages from requirements.txt:

    cd miniperplexityAI
    pip install -r requirements.txt
    
  3. 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"
    
  4. Start the server: Run the application:

    python3 app.py
    

Setting Up the Repository Locally using Docker

  1. Clone the repository:
    git clone https://github.com/sourav014/miniperplexityAI.git
    
  2. Navigate to the project directory
    cd miniperplexityAI
    
  3. 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"
    
  4. Build the docker image:
    sudo docker build -t miniperplexityai .
    
  5. 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!