Skip to content

Commit a2a2cef

Browse files
authored
fix: correct url for upload() (#1742)
1 parent d432ed0 commit a2a2cef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ragas/dataset_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def upload(self, base_url: str = RAGAS_API_URL, verbose: bool = True) -> str:
531531

532532
# check status codes
533533
evaluation_endpoint = (
534-
f"{RAGAS_APP_URL}/alignment/evaluation/{root_trace.run_id}"
534+
f"{RAGAS_APP_URL}/dashboard/alignment/evaluation/{root_trace.run_id}"
535535
)
536536
if response.status_code == 409:
537537
# this evalution already exists

src/ragas/testset/synthesizers/testset_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def upload(self, base_url: str = RAGAS_API_URL, verbose: bool = True) -> str:
143143
data_json_string=packet.model_dump_json(),
144144
base_url=base_url,
145145
)
146-
testset_endpoint = f"{RAGAS_APP_URL}/alignment/testset/{self.run_id}"
146+
testset_endpoint = f"{RAGAS_APP_URL}/dashboard/alignment/testset/{self.run_id}"
147147
if response.status_code == 409:
148148
# this testset already exists
149149
if verbose:

0 commit comments

Comments
 (0)