Getting Started
Clone the repo, run backend + frontend dashboard, and bootstrap DCLI with reproducible paths.
Watch the Product Walkthrough
Before diving into setup, watch this walkthrough to see DocuMind in action from document ingestion to intelligent retrieval and search.
Clone Repo & Project Map
Start from the official source so every path in this page makes sense.
Clone DocuMind
git clone https://github.com/mdkaifansari04/documind.gitOfficial repository for backend API, frontend dashboard, CLI, MCP server, and documentation.
Enter repository root
cd documindAll next commands on this page assume you are in this repo root.
Repo layout you will use
documind/ backend/ # FastAPI, ingestion, retrieval, observability, DCLI, MCP frontend/ # Next.js dashboard to manage instances/KB/resources/query documentation/ # This docs site
Prerequisites
- Python 3.10+
- Bun (for frontend dashboard)
- pipx (recommended for global DCLI install)
- Local Actian Vector setup used by backend
Backend Quick Start (FastAPI)
Go to backend
cd backendBackend service code and runtime wiring live here.
Create and activate venv
python -m venv .venv && source .venv/bin/activateKeeps backend dependencies isolated.
Install pip packages
pip install -r requirements.txtInstalls API, ingestion, retrieval, and supporting dependencies.
Run backend server
uvicorn app.main:app --reload --port 8000Backend starts at http://localhost:8000.
Quick check
Open http://localhost:8000/health. If it returns OK, backend is up.
Frontend Quick Start (Dashboard)
The dashboard is your control center: create instances, manage knowledge bases, ingest resources, and run search/ask flows.
Open frontend directory
cd ../frontendRun this from backend directory. If you are at repo root, use `cd frontend`.
Install dependencies with Bun
bun installInstalls Next.js dashboard dependencies.
Set API URL for frontend
echo 'NEXT_PUBLIC_API_URL=http://localhost:8000' > .envFrontend uses this to call the local backend.
Run frontend
bun run devDashboard starts at http://localhost:3000.
DCLI Quick Start
Install DCLI from repo backend package
pipx install ./backendRun this from repo root. Installs `dcli`, `documind`, and `DCLI` commands.
Point DCLI to local backend
export DOCUMIND_API_URL="http://localhost:8000"DCLI needs backend URL for all operations.
Initialize namespace context
dcli init --namespace-id company_docsSets active context so instance/namespace are remembered.
Run a retrieval check
dcli context-show && dcli search-docs --qr "deploy command" --top-k 5If this returns results, CLI and retrieval path are good.
Run Order & Sanity Checks
Recommended order
- Start backend server first.
- Start frontend dashboard second.
- Run DCLI init/search checks third.
curl -s http://localhost:8000/health
open http://localhost:3000Next Steps
Once backend + dashboard + CLI are running, move to architecture and component docs for deeper system understanding.