Starter Templates

Knowledge Assistant

Build-once knowledge base

A Next.js assistant backed by the LLM Wiki pipeline: it pre-synthesizes topic articles from your corpus once, then answers from those distilled articles. Best for static, knowledge-dense corpora.

Download ZIP

Live previewinteractive mock — no backend

localhost:3000Next.js

Knowledge base

A living encyclopedia.

Answers read like a short article.

Stack

Frontend

Next.js

Architecture

LLM Wiki

Framework

raw python

Vector DB

qdrant

Corpus

medium

Complexity

High

How it works

Browser
Next.js /api/chat (SSE)
FastAPI /query
LLM Wiki

The frontend talks only to the backend; your API keys + pipeline URL stay server-side.

Get started

Option A · Docker Compose (one command)
cp .env.example .env        # add your API key(s)
docker compose up --build
Option B · Backend (manual)
cd backend
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env        # add your API key(s)
python pipeline.py ingest ./corpus
uvicorn serve:app --reload  # http://localhost:8000
Option B · Frontend (Next.js)
cd frontend
npm install
cp .env.local.example .env.local
npm run dev                 # http://localhost:3000

The downloaded README.md has the full guide — vector DB setup, API keys, and deployment to Render/Railway + Vercel.

Project structure26 backend · 14 frontend · 44 files total

backend/
.github/
workflows/
deploy.yml
connectors/
__init__.py
source_connector.py
eval/
__init__.py
README.md
run_eval.sh
synthetic_qa.py
test_answer_quality.py
test_retrieval.py
ingestion/
__init__.py
chunker.py
embedder.py
loader.py
observability/
__init__.py
tracing.py
retrieval/
__init__.py
retriever.py
.env.example
config.yaml
docker-compose.yml
Dockerfile
pipeline.py
README.md
render.yaml
requirements.txt
serve.py
frontend/
app/
api/
chat/
route.ts
globals.css
layout.tsx
page.tsx
components/
Chat.tsx
ThemeToggle.tsx
.env.local.example
.gitignore
Dockerfile
next.config.mjs
package.json
postcss.config.js
tailwind.config.ts
tsconfig.json
.env.example
.gitignore
docker-compose.yml
README.md

Ready to build?

Download the full monorepo and follow the README.

Download ZIP