Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1
Quickstart
gaafa edited this page Apr 9, 2026
·
1 revision
Get EvalCI running in under 5 minutes.
→ Full docs: https://synapsekit.github.io/synapsekit-docs/docs/evalci/quickstart
Create a file named eval_*.py in your test directory:
# tests/evals/eval_rag.pyfromsynapsekitimporteval_casefrommyapp.pipelineimportrag_pipeline@eval_case(min_score=0.80, max_cost_usd=0.01, max_latency_ms=3000)asyncdefeval_rag_relevancy():
result=awaitrag_pipeline.ask("What is SynapseKit?")
score=awaitresult.score_relevancy(
reference="SynapseKit is a Python framework for building LLM applications."
)
return {"score": score, "cost_usd": result.cost_usd, "latency_ms": result.latency_ms}# .github/workflows/eval.ymlname: EvalCIon:
pull_request:
jobs:
eval:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- uses: SynapseKit/evalci@v1with:
path: tests/evalsthreshold: "0.80"env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}- Go to your repo → Settings → Secrets and variables → Actions
- Click New repository secret
- Name:
OPENAI_API_KEY, Value: your key - Click Add secret
Push and open a pull request. EvalCI posts a results comment and passes/fails the check automatically.
pip install synapsekit[openai]
synapsekit test tests/evals/ --threshold 0.80