mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-01-02 17:46:56 +00:00
1.1 KiB
1.1 KiB
Perplexica Architecture
Perplexica is a Next.js application that combines an AI chat experience with search.
For a high level flow, see WORKING.md. For deeper implementation details, see CONTRIBUTING.md.
Key components
-
User Interface
- A web based UI that lets users chat, search, and view citations.
-
API Routes
POST /api/chatpowers the chat UI.POST /api/searchprovides a programmatic search endpoint.GET /api/providerslists available providers and model keys.
-
Agents and Orchestration
- The system classifies the question first.
- It can run research and widgets in parallel.
- It generates the final answer and includes citations.
-
Search Backend
- A meta search backend is used to fetch relevant web results when research is enabled.
-
LLMs (Large Language Models)
- Used for classification, writing answers, and producing citations.
-
Embedding Models
- Used for semantic search over user uploaded files.
-
Storage
- Chats and messages are stored so conversations can be reloaded.