#66th of 12 in RAG and search

llm-answer-engine

Perplexity-style Next.js answer engine over Brave search results

Stars
5k
License
MIT
Last commit
Apr 2026
Language
TypeScript

Overview

A Next.js app that takes a question, pulls results from Brave Search and Serper, scrapes the top pages with Cheerio, chunks and embeds them with OpenAI embeddings, and streams an answer from Groq (Mixtral by default) with sources, images and follow-ups. Optional Ollama, Upstash rate limiting, a semantic cache and a Portkey gateway are toggles in app/config.tsx; there is no auth or persistence. For developers learning the search-scrape-answer loop.

Who it is for: Developers learning the search-scrape-answer loop

Strengths

  • Full pipeline readable in one config file: search, scrape, chunk, embed, answer
  • docker compose and a standalone Express API variant included
  • Optional rate limiting and semantic cache via Upstash

Weaknesses

  • Four API keys to start (OpenAI, Groq, Brave, Serper)
  • No auth, no chat history, no tests
  • Pinned to Next.js 14.1 and dated defaults (mixtral-8x7b-32768)
  • Ollama mode skips follow-up questions; vectors are in-memory only

What it needs

  • TypeScript, groq, openai, ollama, portkey
  • Needs openai-api-key, groq-api-key, brave-search-api-key, serper-api-key
  • Docker
  • env example file

Also in RAG and search

See all 12
Also in RAG and search
RankProjectScore
1azure-search-openai-demoAzure RAG chat reference on AI Search and Azure OpenAI7.8k stars, MIT56 out of 100
2rag-postgres-openai-pythonRAG over Postgres table rows with hybrid search and SQL filters505 stars, MIT51 out of 100
3llm-appPathway RAG pipeline templates that re-index live data sources Live demo ↗ (opens in a new tab)58.8k stars, MIT48 out of 100
#4chat-langchainLangChain docs assistant as a Managed Deep Agent with Next.js UI6.5k stars, MIT45 out of 100
#5chat-with-your-data-solution-acceleratorAzure RAG chat app that answers from your documents with citations1.2k stars, MIT44 out of 100