-
Notifications
You must be signed in to change notification settings - Fork 146
SGR Quick Start
Lysenko Artem edited this page Nov 15, 2025
·
6 revisions
- Create config.yaml from the template:
cp config.yaml.example config.yamlAlternatively, you can use environment variables from .env.example
-
Configure API keys and other settings
-
Fill in your own agents definitions:
touch agents.yaml
# (optional) Add in this file your agents definitions based on config.yaml and agents.yaml.exampleUV is required for managing Python dependencies and running the backend.
# Install UV
curl -LsSf https://astral.sh/uv/install.sh | sh
# or on Windows:
# powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Node.js and npm are required for running the frontend development server.
# Check if Node.js is installed
node --version
npm --version
# If not installed, download from https://nodejs.org/
# Or use a version manager like nvm:
# nvm install 22
# nvm use 22Requirements:
- Node.js:
^20.19.0 || >=22.12.0(seepackage.jsonengines field)
# 1. Install dependencies
uv sync
# 2. Run the server with default settings
uv run python sgr_deep_research
# Or with custom options:
uv run python sgr_deep_research \
--host 127.0.0.1 \
--port 8010 \
--config-file config.yaml \
--agents-file agents.yaml \
--logging-file logging_config.yaml# 1. Navigate to frontend directory
cd sgr-deep-research-frontend
# 2. Install dependencies
npm install
# 3. Run the development server with default settings
npm run dev
# Or with custom backend URL:
VITE_API_BASE_URL=http://localhost:8010 npm run dev
**Note:** In development mode, Vite automatically proxies API requests (`/health`, `/agents`, `/v1/*`) to the backend, so you typically don't need to set `VITE_API_BASE_URL` unless your backend is running on a different host/port.After starting both backend and frontend, you can access:
- Frontend: http://localhost:5173
-
Backend API: http://localhost:8010
- Health check: http://localhost:8010/health
- Agents endpoint: http://localhost:8010/agents
- API endpoints: http://localhost:8010/v1/*
Before deploying, you can configure the following environment variables (optional):
-
VITE_API_BASE_URL- Base URL for the backend API (default:http://localhost:8010) -
VITE_APP_ENV- Application environment (default:production) -
FRONTEND_PORT- Port for the frontend service (default:5173) -
BACKEND_PORT- Port for the backend service (default:8010)
# 1. Go to the services folder
cd services
# 2. Building docker images
docker-compose build
# 3. Deploy with Docker Compose
docker-compose up -dAfter deployment, you can access:
-
Frontend: http://localhost:5173 (or custom
FRONTEND_PORT) -
Backend API: http://localhost:8010 (or custom
BACKEND_PORT)- Health check: http://localhost:8010/health
- Agents endpoint: http://localhost:8010/agents
- API endpoints: http://localhost:8010/v1/*
2025 // vamplab