Skip to content

Commit bdfa339

Browse files
jjmachanshahules786
authored andcommitted
fix: upload for testset (explodinggradients#1676)
1 parent b13470b commit bdfa339

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ragas/testset/synthesizers/testset_schema.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TestsetPacket(BaseModel):
3939
A packet of testset samples to be uploaded to the server.
4040
"""
4141

42-
samples: t.List[TestsetSample]
42+
samples_original: t.List[TestsetSample]
4343
run_id: str = Field(default_factory=lambda: str(uuid4()))
4444
created_at: str = Field(default_factory=lambda: datetime.now().isoformat())
4545

@@ -137,7 +137,7 @@ def total_cost(
137137
def upload(self, base_url: str = RAGAS_API_URL, verbose: bool = True) -> str:
138138
import requests
139139

140-
packet = TestsetPacket(samples=self.samples)
140+
packet = TestsetPacket(samples_original=self.samples)
141141
response = requests.post(
142142
f"{base_url}/alignment/testset", json=packet.model_dump()
143143
)

0 commit comments

Comments
 (0)