-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (49 loc) · 2.18 KB
/
Copy pathMakefile
File metadata and controls
61 lines (49 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Makefile for the General Assistant project
.PHONY: help setup-venv sync-venv update-venv run-assistant run-webui download-dataset run-docker-compose stop-docker-compose
# Set default goal to 'help'
.DEFAULT_GOAL := help
help:
@echo "Available commands:"
@echo " make setup-venv - Set up the development environment (install dependencies and pre-commit hooks)"
@echo " make sync-venv - Sync the development environment"
@echo " make update-venv - Update the development environment"
@echo " make download-dataset - Download the dataset"
@echo " make run-assistant - Run the assistant API server"
@echo " make run-webui - Run the assistant Web UI server"
@echo " make run-langgraph-studio - Run the LangGraph Studio server"
@echo " make run-docker-compose - Run the Docker Compose services"
@echo " make stop-docker-compose - Stop the Docker Compose services"
@echo " make run-evaluation - Run the evaluation"
setup-venv:
@echo "Setting up development environment..."
uv sync --all-extras
uv run pre-commit install
uv run pre-commit autoupdate
@echo "Setup complete. Run 'make sync-venv' after git pulls."
sync-venv:
@echo "Syncing development environment..."
uv sync --all-extras --frozen
@echo "Sync complete."
update-venv:
@echo "Updating development environment..."
uv lock --upgrade
uv sync --all-extras
@echo "Update complete."
download-dataset:
@echo "Downloading the dataset..."
uv run python scripts/download_gaia_dataset.py
run-assistant:
@echo "Starting the assistant API server..."
uv run fastapi dev src/api/app.py
run-webui:
@echo "Starting the assistant Web UI server..."
uv run chainlit run src/webui/chainlit_main.py -h --no-cache --port 8080 -w
run-langgraph-studio:
@echo "Starting the LangGraph Studio server..."
uv run langgraph dev --config scripts/langgraph_studio.json --port 5677 --debug-port 5678
run-docker-compose:
@echo "Starting the Docker Compose services..."
docker compose --env-file .env -f deployment/docker/docker-compose.yaml -p general-assistant up --build -d
stop-docker-compose:
@echo "Stopping the Docker Compose services..."
docker compose -p general-assistant down