#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| Rank | Project | Score |
|---|---|---|
| 1 | azure-search-openai-demoAzure RAG chat reference on AI Search and Azure OpenAI | 56 out of 100 |
| 2 | rag-postgres-openai-pythonRAG over Postgres table rows with hybrid search and SQL filters | 51 out of 100 |
| 3 | llm-appPathway RAG pipeline templates that re-index live data sources | 48 out of 100 |
| #4 | chat-langchainLangChain docs assistant as a Managed Deep Agent with Next.js UI | 45 out of 100 |
| #5 | chat-with-your-data-solution-acceleratorAzure RAG chat app that answers from your documents with citations | 44 out of 100 |