Skip to content

Commit

Permalink
fix: correct url for upload() (#1742)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmachan authored Dec 9, 2024
1 parent d432ed0 commit a2a2cef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ragas/dataset_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def upload(self, base_url: str = RAGAS_API_URL, verbose: bool = True) -> str:

# check status codes
evaluation_endpoint = (
f"{RAGAS_APP_URL}/alignment/evaluation/{root_trace.run_id}"
f"{RAGAS_APP_URL}/dashboard/alignment/evaluation/{root_trace.run_id}"
)
if response.status_code == 409:
# this evalution already exists
Expand Down
2 changes: 1 addition & 1 deletion src/ragas/testset/synthesizers/testset_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def upload(self, base_url: str = RAGAS_API_URL, verbose: bool = True) -> str:
data_json_string=packet.model_dump_json(),
base_url=base_url,
)
testset_endpoint = f"{RAGAS_APP_URL}/alignment/testset/{self.run_id}"
testset_endpoint = f"{RAGAS_APP_URL}/dashboard/alignment/testset/{self.run_id}"
if response.status_code == 409:
# this testset already exists
if verbose:
Expand Down

0 comments on commit a2a2cef

Please sign in to comment.