Skip to content

Commit e8181bd

Browse files
authored
Move Examples to root (#2176)
1. Moves the examples to root 2. Accordingly calls out the examples as WIP in the README 3. Uses absolute instead of relative import now This is a cascading PR. Please review and merge #2173 before reviewing this.
1 parent 1295bc3 commit e8181bd

File tree

17 files changed

+18
-16
lines changed

17 files changed

+18
-16
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,6 @@ experimental/ragas_experimental/_version.py
174174
uv.lock
175175
.cache/
176176
.claude
177+
examples/*/logs/*run*json
178+
examples/*/datasets/*csv
179+
examples/*/experiments/*csv

examples/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Ragas Examples for Contributors
2+
3+
This work in progress directory will contain comprehensive examples demonstrating how to use Ragas for evaluating different types of AI applications including RAG systems, agents, prompts, and workflows. These examples might be unstable and are subject to change.
4+
5+
## Installation
6+
7+
Install the ragas package with examples dependencies:
8+
9+
```bash
10+
uv pip install --system -e ".[examples]"
11+
```
File renamed without changes.
File renamed without changes.

ragas/examples/experimental/agent_evals/evals.py renamed to examples/agent_evals/evals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from ragas.experimental import Dataset, experiment
22
from ragas.experimental.metrics.numeric import numeric_metric
33
from ragas.experimental.metrics.result import MetricResult
4-
from .agent import get_default_agent
4+
from agent import get_default_agent
55

66
math_agent = get_default_agent()
77

File renamed without changes.
File renamed without changes.
File renamed without changes.

ragas/examples/experimental/prompt_evals/evals.py renamed to examples/prompt_evals/evals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from ragas.experimental.metrics.result import MetricResult
33
from ragas.experimental.metrics.discrete import discrete_metric
44

5-
from .prompt import run_prompt
5+
from prompt import run_prompt
66

77

88
@discrete_metric(name="accuracy", allowed_values=["pass", "fail"])
File renamed without changes.

0 commit comments

Comments
 (0)