demo/chat_v2 is the browser-based DeepAnalyze demo. It includes the backend API, the workspace/file layer, the frontend UI, and both local and Docker execution modes.
- Upload and manage tables, databases, text files, logs, and documents in the workspace
- Preview common workspace files directly in the UI
- Stream structured
<Analyze> / <Understand> / <Code> / <Execute> / <File> / <Answer>blocks - Execute Python analysis code inside the workspace
- Export Markdown and PDF reports
- Switch between Chinese and English UI
- Run code either locally or inside Docker
- Choose model provider: Local, HeyWhale API, or Custom OpenAI-compatible API
In the left configuration panel:
Local: uses your local DeepAnalyze-compatible endpoint.HeyWhale API: requiresAPI Key; API base uses the built-in HeyWhale endpoint by default.Custom Model: requires your ownModel NameandAPI Base;API Keyis optional.
When provider is Custom Model, the frontend automatically prepends a structured data-analysis system prefix:
- English UI => English prefix
- Chinese UI => Chinese prefix
For local or HeyWhale DeepAnalyze usage, this extra prefix is not injected.
Start a DeepAnalyze model service first, for example:
vllm serve DeepAnalyze-8BBy default the chat demo connects to an OpenAI-compatible endpoint around http://localhost:8000.
Recommended setup:
- Python: use your existing DeepAnalyze environment, for example
deepanalyze - Node.js: use a version that can run the bundled Next.js frontend
Install frontend dependencies once:
cd demo/chat_v2/frontend
npm install
cd ..Use the sample config file:
cd demo/chat_v2
cp .env.example .envWindows:
cd demo/chat_v2
Copy-Item .env.example .envRecommended as the default if the local machine already has the required Python data-analysis dependencies.
DEEPANALYZE_EXECUTION_MODE=localUse this if you want an isolated execution environment.
DEEPANALYZE_EXECUTION_MODE=dockerImportant:
- The system does not auto-build the Docker image
- If the target machine has no image, Docker execution will fail immediately
- You must build the image manually first
Example:
cd demo/chat_v2
docker build -t deepanalyze-chat-exec:latest -f Dockerfile.exec .cd demo/chat_v2
bash start.shStop:
cd demo/chat_v2
bash stop.shcd demo\chat
start.batStop:
cd demo\chat
stop.batDefault addresses after startup:
- Frontend:
http://localhost:4000 - Backend API:
http://localhost:8200 - File service:
http://localhost:8100
PDF export depends on:
pypandocpandocxelatex
Behavior details:
- If
pandocis missing, the backend will try to auto-download it (enabled by default). xelatexis still required and must be installed manually.- You can control this with:
DEEPANALYZE_PDF_AUTO_DOWNLOAD_PANDOC(trueby default)DEEPANALYZE_PDF_PANDOC_CACHE_DIR(optional pandoc cache path)
backend.py: backend startup entrybackend_app/: FastAPI backend implementationfrontend/: Next.js frontendDockerfile.exec: Docker image for code executionworkspace/: per-session workspacelogs/: runtime logs