{"id":13676494,"url":"https://github.com/philfung/perplexed","last_synced_at":"2025-04-05T17:02:58.681Z","repository":{"id":238776350,"uuid":"797528885","full_name":"philfung/perplexed","owner":"philfung","description":"Open-source Perplexity app.","archived":false,"fork":false,"pushed_at":"2025-03-20T18:42:56.000Z","size":1090,"stargazers_count":117,"open_issues_count":0,"forks_count":17,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T16:07:11.534Z","etag":null,"topics":["ai-search-engine","groq","llm","perplexity","perplexity-ai","search-engine","websearch","websearch-agent"],"latest_commit_sha":null,"homepage":"https://philfung.github.io/perplexed","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philfung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-08T02:41:06.000Z","updated_at":"2025-03-21T13:24:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"01563094-79bc-42cf-ac7a-2ead4ff4520a","html_url":"https://github.com/philfung/perplexed","commit_stats":null,"previous_names":["philfung/perplexed"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philfung%2Fperplexed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philfung%2Fperplexed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philfung%2Fperplexed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philfung%2Fperplexed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philfung","download_url":"https://codeload.github.com/philfung/perplexed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369953,"owners_count":20927928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-search-engine","groq","llm","perplexity","perplexity-ai","search-engine","websearch","websearch-agent"],"created_at":"2024-08-02T13:00:28.444Z","updated_at":"2025-04-05T17:02:58.656Z","avatar_url":"https://github.com/philfung.png","language":"JavaScript","funding_links":[],"categories":["Python","A01_文本生成_文本对话","JavaScript"],"sub_categories":["大语言对话模型及数据"],"readme":"## \u003cimg height=\"25\" src=\"https://github.com/philfung/perplexed/blob/main/frontend/public/images/perplexity-color.svg\"/\u003e Perplexed\n#### An open-source app inspired by the amazing web search product, Perplexity.\n\n[**Live Demo**](https://d37ozmhmvu2kcg.cloudfront.net/)\n\n\u003cimg width=\"600\" alt=\"Screenshot 2025-03-19 at 1 26 54 PM\" src=\"https://github.com/user-attachments/assets/f190473c-467c-4169-87c9-a285dc0f234f\" /\u003e\n\u003cimg width=\"600\" alt=\"Screenshot 2025-03-19 at 1 26 35 PM\" src=\"https://github.com/user-attachments/assets/07b0ad71-9c53-4d7f-a1e7-b2bded2f1806\" /\u003e\n\n## Implementation\nGiven a user query, the app conducts a web search,\ndownloads the top N resulting web pages, then analyzes those pages \nwith an LLM.  \n\n\u003cimg height=\"400\" alt=\"Screenshot 2024-11-16 at 10 06 03 AM\" src=\"https://github.com/user-attachments/assets/e88ff3ee-2efc-4a36-8427-fcf90141a083\"\u003e\n\nThe LLM can be any smaller, consumer-grade with at least 5k context window (assuming each web page ~1k tokens).\n\n## Deployment Instructions\n\n### A. Python Server\n1. ```\n   cd backend\n   copy config.json.sample config.json\n   ```\n3. In [`config.json`](https://github.com/philfung/perplexed/blob/main/backend/config.json.example), fill in `GOOGLE_SEARCH_API_KEY` and `GOOGLE_SEARCH_ENGINE_ID` credentials from [Google Custom Search API](https://developers.google.com/custom-search/v1/overview).\n4. Fill in `GROQ_API_KEY` credentials from [Groq](https://console.groq.com/docs/quickstart).\n5. Setup virtual environment, packages, and deploy the server\n   ```\n   virtualenv venv\n   . venv/bin/activate\n   pip install -r requirements.txt\n   python app.py\n   ```\n   This is fine for dev testing.\n\n   In production, in addition, you probably want to use gunicorn ([1](https://github.com/philfung/perplexed/blob/main/backend/gunicorn_config.py), [2](https://github.com/philfung/perplexed/blob/main/backend/script_start_gunicorn.sh)) and nginx ([1](https://github.com/philfung/perplexed/blob/main/backend/nginx.conf)) in conjunction with your python server ([1](https://github.com/philfung/perplexed/blob/main/backend/script_kill_servers.sh)) (utility scripts linked).\n \n### B. React Frontend\n1. ```\n   cd frontend\n   ```\n2. Update `API_URL` in [`constants.js`](https://github.com/philfung/perplexed/blob/main/frontend/src/constants.js) to point to your server\n3. ```\n   npm install\n   npm run build\n   ```\n3. In dev testing, to start the server:\n   ```\n   npm run start\n   ```\n   In production, to start the server:\n   ```\n   npm i -g npm@latest\n   rm -rf node_modules\n   rm -rf package-lock.json\n   npm cache clean --force\n   npm i --no-optional --omit=optional\n   npm run build\n   npm install -g serve\n   server -s build\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilfung%2Fperplexed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilfung%2Fperplexed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilfung%2Fperplexed/lists"}