File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,6 @@ print(f"Score: {result.score}")
2828print (f " Reasoning: { result.reasoning} " )
2929```
3030
31- ** Sample Output:**
32- ```
33- Decision: 9
34- Score: 9.0
35- Reasoning: The statement is technically accurate. Python is indeed known for its
36- versatility and simple, readable syntax, making it popular for various applications.
37- ```
38-
3931## 📊 Using Pre-built Metrics
4032
4133vLLM Judge comes with 20+ pre-built metrics:
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pip install vllm-judge[dev]
3333from vllm_judge import Judge
3434
3535# Initialize with vLLM url
36- judge = Judge.from_url(" http://localhost :8000" )
36+ judge = Judge.from_url(" http://vllm-server :8000" )
3737
3838# Simple evaluation
3939result = await judge.evaluate(
@@ -67,7 +67,7 @@ result = await judge.evaluate(
6767Run Judge as a REST API:
6868
6969``` bash
70- vllm-judge serve --base-url http://localhost :8000 --port 9090 --host localhost
70+ vllm-judge serve --base-url http://vllm-server :8000 --port 9090
7171```
7272
7373Then use the HTTP API:
@@ -77,7 +77,7 @@ from vllm_judge.api import JudgeClient
7777
7878client = JudgeClient(" http://localhost:9090" )
7979result = await client.evaluate(
80- response = " Python is great! " ,
80+ response = " Python is a versatile programming language known for its simple syntax. " ,
8181 criteria = " technical accuracy"
8282)
8383```
You can’t perform that action at this time.
0 commit comments