From 4ad5b6729c0a7c943ab6c3fc6128eb58cd119cfe Mon Sep 17 00:00:00 2001 From: Aubrey Date: Mon, 17 Mar 2025 13:26:44 -0700 Subject: [PATCH] fix bug with testset.upload() --- src/ragas/sdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ragas/sdk.py b/src/ragas/sdk.py index 93f25cde8..14fd99bd2 100644 --- a/src/ragas/sdk.py +++ b/src/ragas/sdk.py @@ -101,7 +101,7 @@ def upload_packet(path: str, data_json_string: str): response = requests.post( f"{base_url}/api/v1{path}", - data=data_json_string, + data=data_json_string.encode('utf-8'), headers=headers, timeout=(connection_timeout, read_timeout), )