快速开始

环境要求

项 说明
Go 1.27+(编译本项目)
JDK 11+(仅重新生成 ANTLR 解析器时需要)
网络 ./grammars/generate.sh 需访问 grammars-v4 / antlr.org

快速开始

make tidy
make build
make build-cli
make run
# 等价:./bin/light-similarity -f etc/similarity.yaml
服务 默认地址
HTTP http://127.0.0.1:8890
gRPC 127.0.0.1:8891
Prometheus(HTTP) http://127.0.0.1:9093/metrics
Prometheus(gRPC) http://127.0.0.1:9094/metrics

配置文件:etc/similarity.yaml。冒烟:

curl -s localhost:8890/api/v1/health
更新日期:2026/12/06编辑此页