Skip to content

vedularaghu/perplexity_clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perplexity Clone

A web application that combines search engine results with AI-generated responses, allowing users to explore topics with follow-up questions and dynamic content.

Features

  • Search Integration: Fetches search results using SerpAPI for any query.
  • AI Responses: Provides detailed AI-generated answers to user queries using OpenAI's API.
  • Follow-Up Questions: Suggests relevant follow-up questions based on the user's query.
  • Interactive Experience: Users can click on follow-up questions to fetch new AI responses and search results dynamically.
  • Auto-Reload: Supports automatic server restarts during development with nodemon.

Installation

Prerequisites

Steps

  1. Clone the repository:

    git clone https://github.com/your-repo/perplexity-clone.git
    cd perplexity-clone
  2. Install dependencies:

    npm install
  3. Set up environment variables: Create a .env file in the root directory and add the following:

    OPENAI_API_KEY=your_openai_api_key
    SERP_API_KEY=your_serp_api_key
    PORT=8080
  4. Start the application:

    • For production:
      npm start
    • For development with auto-reloading:
      npm run dev
  5. Open your browser and navigate to:

    http://localhost:8080
    

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors