|
36 | 36 |
|
37 | 37 | ## help: Show this help info. |
38 | 38 | .PHONY: help |
39 | | -help: |
40 | | - @echo "\033[1;3;34mIntelligent Mixture-of-Models Router for Efficient LLM Inference.\033[0m\n" |
41 | | - @echo "Available targets:" |
42 | | - @echo " Build targets:" |
43 | | - @echo " all - Build everything (default)" |
44 | | - @echo " build - Build Rust library and Go router" |
45 | | - @echo " rust - Build only the Rust library" |
46 | | - @echo " build-router - Build only the Go router" |
47 | | - @echo " clean - Clean build artifacts" |
48 | | - @echo "" |
49 | | - @echo " Run targets:" |
50 | | - @echo " run-router - Run the router (CONFIG_FILE=config/config.yaml)" |
51 | | - @echo " run-router-e2e - Run the router with e2e config (config/testing/config.e2e.yaml)" |
52 | | - @echo " run-envoy - Run Envoy proxy" |
53 | | - @echo "" |
54 | | - @echo " Test targets:" |
55 | | - @echo " test - Run all tests" |
56 | | - @echo " test-rust - Run Rust unit tests" |
57 | | - @echo " test-rust-module MODULE=<name> - Run specific Rust module tests" |
58 | | - @echo " test-binding - Test candle-binding" |
59 | | - @echo " test-semantic-router - Test semantic router" |
60 | | - @echo " test-category-classifier - Test category classifier" |
61 | | - @echo " test-pii-classifier - Test PII classifier" |
62 | | - @echo " test-jailbreak-classifier - Test jailbreak classifier" |
63 | | - @echo "" |
64 | | - @echo " E2E Test targets:" |
65 | | - @echo " start-llm-katan - Start LLM Katan servers for e2e tests" |
66 | | - @echo " test-e2e-vllm - Run e2e tests with LLM Katan servers" |
67 | | - @echo "" |
68 | | - @echo " Milvus targets (CONTAINER_RUNTIME=docker|podman):" |
69 | | - @echo " start-milvus - Start Milvus container for testing" |
70 | | - @echo " stop-milvus - Stop and remove Milvus container" |
71 | | - @echo " restart-milvus - Restart Milvus container" |
72 | | - @echo " milvus-status - Check Milvus container status" |
73 | | - @echo " clean-milvus - Stop container and clean data" |
74 | | - @echo " test-milvus-cache - Test cache with Milvus backend" |
75 | | - @echo " test-semantic-router-milvus - Test router with Milvus cache" |
76 | | - @echo " start-milvus-ui - Start Milvus UI to browse data" |
77 | | - @echo " stop-milvus-ui - Stop and remove Milvus UI container" |
78 | | - @echo " Example: CONTAINER_RUNTIME=podman make start-milvus" |
79 | | - @echo "" |
80 | | - @echo " Demo targets:" |
81 | | - @echo " test-auto-prompt-reasoning - Test reasoning mode" |
82 | | - @echo " test-auto-prompt-no-reasoning - Test normal mode" |
83 | | - @echo " test-pii - Test PII detection" |
84 | | - @echo " test-prompt-guard - Test jailbreak detection" |
85 | | - @echo " test-tools - Test tool auto-selection" |
86 | | - @echo "" |
87 | | - @echo " Documentation targets:" |
88 | | - @echo " docs-dev - Start documentation dev server" |
89 | | - @echo " docs-build - Build documentation" |
90 | | - @echo " docs-serve - Serve built documentation" |
91 | | - @echo " docs-clean - Clean documentation artifacts" |
92 | | - @echo "" |
93 | | - @echo " Environment variables:" |
94 | | - @echo " CONTAINER_RUNTIME - Container runtime (docker|podman, default: docker)" |
95 | | - @echo " CONFIG_FILE - Config file path (default: config/config.yaml)" |
96 | | - @echo " VLLM_ENDPOINT - vLLM endpoint URL for testing" |
97 | | - @echo "" |
98 | | - @echo " Usage examples:" |
99 | | - @echo " make start-milvus # Use Docker (default)" |
100 | | - @echo " CONTAINER_RUNTIME=podman make start-milvus # Use Podman" |
101 | | - @echo " CONFIG_FILE=custom.yaml make run-router # Use custom config" |
| 39 | +help: ## Show help info. |
| 40 | + @echo "\033[1;3;34mVllm semantic-router: Intelligent Mixture-of-Models Router for Efficient LLM Inference.\033[0m\n" |
| 41 | + @echo "Usage:\n make \033[36m<Target>\033[0m \033[36m<Option>\033[0m\n\nTargets:" |
| 42 | + @awk 'BEGIN {FS = ":.*##"; printf ""} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) |
0 commit comments