feat: add hallucination bench#838
Conversation
Signed-off-by: Huamin Chen <hchen@redhat.com>
✅ Deploy Preview for vllm-semantic-router ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
👥 vLLM Semantic Team NotificationThe following members have been identified for the changed files in this PR and have been automatically assigned: 📁
|
| # 2. Start semantic router with hallucination config | ||
| cd /path/to/semantic-router | ||
| export LD_LIBRARY_PATH=$PWD/candle-binding/target/release | ||
| ./bin/router -config=bench/hallucination_bench/config.yaml |
There was a problem hiding this comment.
should be bench/hallucination/config.yaml
There was a problem hiding this comment.
thanks, it is fixed now
|
@rootfs when tested it got ""msg":"Failed to load config: category 'general' has no model_scores defined - each category must have at least one model" |
Signed-off-by: Huamin Chen <hchen@redhat.com>
|
@Sophie8 thank you for reviewing! the config.yaml in the first commit is stale, it is fixed now. |

Add hallucination bench to evaluate the hallucination detection feature against vLLM models.
This is the screenshot of running the bench against a locally started vLLM with Qwen2.5 14B model:
BEFORE SUBMITTING, PLEASE READ THE CHECKLIST BELOW AND FILL IN THE DESCRIPTION ABOVE
-swhen doinggit commit[Bugfix],[Feat], and[CI].Detailed Checklist (Click to Expand)
Thank you for your contribution to semantic-router! Before submitting the pull request, please ensure the PR meets the following criteria. This helps us maintain the code quality and improve the efficiency of the review process.
PR Title and Classification
Please try to classify PRs for easy understanding of the type of changes. The PR title is prefixed appropriately to indicate the type of change. Please use one of the following:
[Bugfix]for bug fixes.[CI/Build]for build or continuous integration improvements.[Doc]for documentation fixes and improvements.[Feat]for new features in the cluster (e.g., autoscaling, disaggregated prefill, etc.).[Router]for changes to thevllm_router(e.g., routing algorithm, router observability, etc.).[Misc]for PRs that do not fit the above categories. Please use this sparingly.Note: If the PR spans more than one category, please include all relevant prefixes.
Code Quality
The PR need to meet the following code quality standards:
pre-committo format your code. SeeREADME.mdfor installation.DCO and Signed-off-by
When contributing changes to this project, you must agree to the DCO. Commits must include a
Signed-off-by:header which certifies agreement with the terms of the DCO.Using
-swithgit commitwill automatically add this header.What to Expect for the Reviews