MCPcopy Index your code
hub / github.com/Nutlope/turboseek

github.com/Nutlope/turboseek @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
20 symbols 57 edges 19 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Turbo Seek

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

  1. Take in a user's question
  2. Make a request to the bing search API to look up the top 6 results and show them
  3. Scrape text from the 6 links bing sent back and store it as context
  4. Make a request to gpt-oss with the user's question + context & stream it back to the user
  5. Make another request to Llama 3.1 8B to come up with 3 related questions the user can follow up with

Cloning & running

  1. Fork or clone the repo
  2. Create an account at Together AI for the LLM
  3. Create an account at SERP API or with Azure (Bing Search API)
  4. Create an account at Helicone for observability
  5. Create a .env (use the .example.env for reference) and replace the API keys
  6. Run npm install and npm run dev to 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

Core symbols most depended-on inside this repo

handleDisplayResult
called by 2
app/page.tsx
reset
called by 2
app/page.tsx
handleClickSuggestion
called by 1
components/Hero.tsx
stripHtml
called by 1
components/Answer.tsx
handleSourcesAndAnswer
called by 1
app/page.tsx
handleSimilarQuestions
called by 1
app/page.tsx
TypeAnimation
called by 0
components/TypeAnimation.tsx
Hero
called by 0
components/Hero.tsx

Shape

Function 20

Languages

TypeScript100%

Modules by API surface

app/page.tsx5 symbols
components/Hero.tsx2 symbols
components/Answer.tsx2 symbols
components/TypeAnimation.tsx1 symbols
components/Sources.tsx1 symbols
components/SourceCard.tsx1 symbols
components/SimilarTopics.tsx1 symbols
components/InputArea.tsx1 symbols
components/Header.tsx1 symbols
components/Footer.tsx1 symbols
app/layout.tsx1 symbols
app/api/getSources/route.ts1 symbols

For agents

$ claude mcp add turboseek \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page