File size: 1,505 Bytes
4351cdd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6ceb8b5
 
4351cdd
 
 
6ceb8b5
4351cdd
 
 
 
 
6ceb8b5
4351cdd
6ceb8b5
4351cdd
6ceb8b5
4351cdd
6ceb8b5
 
 
 
 
 
 
4351cdd
 
 
 
 
 
6ceb8b5
4351cdd
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
title: Perplexity AI Clone
emoji: πŸ”
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit
---

# Perplexity AI Clone

An AI-powered search and research assistant with multiple modes:

- **Automatic**: Auto-routes to best mode based on query
- **Web Search**: Real-time web search with citations
- **RAG**: Search uploaded documents
- **Deep Research**: Multi-step research with synthesis
- **Agentic**: Multi-agent RAG with planning
- **Analysis**: Data analysis and insights
- **Summarize**: Summarize content and documents
- **Product MVP**: Generate MVP blueprints from ideas
- **Video Brain**: Analyze YouTube videos

## Features

- πŸ” Real-time web search with Tavily (with AI answers)
- πŸ“š Document upload and RAG
- πŸ€– LangGraph-powered pipelines
- πŸ’‘ Follow-up question suggestions
- πŸ–ΌοΈ Image search integration
- πŸ“Š Knowledge panels
- πŸŽ₯ YouTube video analysis

## Environment Variables (Required!)

⚠️ **IMPORTANT**: Set these secrets in your Hugging Face Space settings:

1. Go to your Space Settings β†’ Variables and secrets
2. Add these as **Secrets** (not Repository secrets):

- `GROQ_API_KEY`: Your Groq API key (get from https://console.groq.com)
- `TAVILY_API_KEY`: Your Tavily API key (get from https://tavily.com)

Without these keys, web search and LLM responses will not work!

## Tech Stack

- FastAPI backend
- Streamlit frontend
- LangChain + LangGraph
- Groq LLM (compound-beta)
- FAISS vector store
- Sentence Transformers embeddings