Perplexity Search
This tutorial is a community contribution and is not supported by the Open WebUI team. It serves only as a demonstration on how to customize Open WebUI for your specific use case. Want to contribute? Check out the contributing tutorial.
Perplexity Search API
Perplexity Search API is just a search engine, as opposed to the Perplexity integration, which is using Perplexity's models (in combination with their websearch).
Setup
- Navigate to:
Admin Panel->Settings->Web Search - Toggle
Enable Web Search - Set
Web Search Enginefrom dropdown menu toperplexity_search - Enter your Perplexity API key from Perplexity API Key management.
- Press save
Using LiteLLM for Search
You can use a LiteLLM proxy instance as your search provider instead of connecting directly to Perplexity. LiteLLM's /search endpoint is compatible with the Perplexity Search API style used by Open WebUI.
To configure this:
- Follow the setup steps above, selecting
perplexity_searchas the engine. - Under the Perplexity Search API Base URL field, replace the default URL with your LiteLLM endpoint.
- The URL must follow this specific format:
http://<your-litellm-url>/search/<your-search-provider-name>- Ensurethe search provider name matches the provider name you configured in your LiteLLM setup.
Example:
If your LiteLLM instance is running on localhost and you want to use the perplexity-search provider defined in your LiteLLM config:
http://localhost:4000/search/perplexity-search