Skip to content

Commit e1e88f7

Browse files
authored
add: console scripts for ragas_examples (#2367)
## Issue Link / Problem Description <!-- Link to related issue or describe the problem this PR solves --> - Enabling uvx to run examples directly. ## Changes Made <!-- Describe what you changed and why --> - console scripts for each example Before: ```sh uvx --from ragas-examples python -m ragas_examples.agent_evals.evals ``` After: ```sh uvx --from ragas-examples ragas-agent-evals ```
1 parent af38eec commit e1e88f7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

examples/pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ llamaindex = [
4747
"instructor",
4848
]
4949

50+
[project.scripts]
51+
ragas-agent-evals = "ragas_examples.agent_evals.evals:main"
52+
ragas-benchmark-llm = "ragas_examples.benchmark_llm.evals:main"
53+
ragas-prompt-evals = "ragas_examples.prompt_evals.evals:main"
54+
ragas-rag-evals = "ragas_examples.rag_eval.evals:main"
55+
ragas-workflow-evals = "ragas_examples.workflow_eval.evals:main"
56+
ragas-improve-rag = "ragas_examples.improve_rag.evals:main"
57+
ragas-text2sql-evals = "ragas_examples.text2sql.evals:main"
58+
ragas-llamaindex-agent-evals = "ragas_examples.llamaIndex_agent_evals.evals:main"
59+
ragas-judge-alignment = "ragas_examples.judge_alignment.evals:main"
60+
5061
[project.urls]
5162
Homepage = "https://github.com/explodinggradients/ragas"
5263
Documentation = "https://docs.ragas.io"

0 commit comments

Comments
 (0)