mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
.. | ||
auth | ||
bin | ||
cmd | ||
coderuntime | ||
testdata | ||
.env.example | ||
.gitignore | ||
build.sh | ||
go.mod | ||
go.sum | ||
README.md |
Code Generator Evaluator
Getting Started
- Move to the evaluator directory
cd dify/evaluate/code-generator
- Set up your
.env
file with required variables
cp .env.example .env
-
Add your test cases to
testdata/testcases.json
-
Execute the evaluator
# For Linux
./bin/evaluate-code-linux
# For macOS (Intel)
./bin/evaluate-code-mac
# For macOS (Apple Silicon)
./bin/evaluate-code-mac-arm64
# For Windows
./bin/evaluate-code.exe
Build Instructions
1. Prepare Build Script
First, grant execution permissions to the build script:
chmod +x build.sh
2. Prerequisites
- Go 1.20 or higher
- Properly configured
GOPATH
3. Build Process
Run the cross-platform build with the following command:
./build.sh
Running the Evaluator
Execute the Code Generator evaluation on your platform using:
# For Linux
./bin/evaluate-code-linux
# For macOS (Intel)
./bin/evaluate-code-mac
# For macOS (Apple Silicon)
./bin/evaluate-code-mac-arm64
# For Windows
./bin/evaluate-code.exe