A simple web-based chat interface for Perplexity AI with streaming responses, conversation history, and clickable citations.
- Python 3.12 or higher
- uv package manager
- Perplexity AI API key
- Clone the repository:
git clone git@github.com:rguilmain/perplexity-chat-interface.git
cd perplexity-chat-interface- Create a
.envfile with your Perplexity API key:
PERPLEXITY_API_KEY=your_api_key_here- Install dependencies using uv:
uv syncStart the chat interface:
uv run python main.pyThe application will launch a web interface in your default browser where you can interact with Perplexity AI.
- Real-time streaming responses from Perplexity AI
- Clean and intuitive chat interface powered by Gradio
- Conversation history maintained during the session
- Citation sources are displayed as clickable links below each response with titles and dates