alternative à Perplexity
An AI search engine inspired by Perplexity
ai-searchllmnextjs
Indicateurs clés
Croissance des étoiles
Étoiles
1.7k
Forks
261
Croissance hebdomadaire
+-1
Issues
5
5001k1.5k
mai 2024sept. 2024févr. 2025juil. 2025déc. 2025mai 2026oct. 2026
Artefactsnpm
README
TurboSeek
An open source AI search engine. Powered by Together.ai.
If you want to learn how to build this, check out the tutorial!
Tech stack
- Next.js app router with Tailwind
- Together AI for LLM inference
- OpenAI gpt-oss models and Llama 3.1 8B for the LLMs
- Exa.ai for the search API
- Helicone for observability
- Plausible for website analytics
How it works
- Take in a user's question
- Make a request to the bing search API to look up the top 6 results and show them
- Scrape text from the 6 links bing sent back and store it as context
- Make a request to gpt-oss with the user's question + context & stream it back to the user
- Make another request to Llama 3.1 8B to come up with 3 related questions the user can follow up with
Cloning & running
- Fork or clone the repo
- Create an account at Together AI for the LLM
- Create an account at SERP API or with Azure (Bing Search API)
- Create an account at Helicone for observability
- Create a
.env(use the.example.envfor reference) and replace the API keys - Run
npm installandnpm run devto install dependencies and run locally
Future tasks
- Move back to the Together SDK + simpler streaming
- Add a tokenizer to smartly count number of tokens for each source and ensure we're not going over
- Add a regenerate option for a user to re-generate
- Make sure the answer correctly cites all the sources in the text & number the citations in the UI
- Add sharability to allow folks to share answers
- Automatically scroll when an answer is happening, especially for mobile
- Fix hard refresh in the header and footer by migrating answers to a new page
- Add upstash redis for caching results & rate limiting users
- Add in more advanced RAG techniques like keyword search & question rephrasing
- Add authentication with Clerk if it gets popular along with postgres/prisma to save user sessions
Inspiration
- Perplexity
- You.com
- Lepton search