We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b13470b commit bdfa339Copy full SHA for bdfa339
src/ragas/testset/synthesizers/testset_schema.py
@@ -39,7 +39,7 @@ class TestsetPacket(BaseModel):
39
A packet of testset samples to be uploaded to the server.
40
"""
41
42
- samples: t.List[TestsetSample]
+ samples_original: t.List[TestsetSample]
43
run_id: str = Field(default_factory=lambda: str(uuid4()))
44
created_at: str = Field(default_factory=lambda: datetime.now().isoformat())
45
@@ -137,7 +137,7 @@ def total_cost(
137
def upload(self, base_url: str = RAGAS_API_URL, verbose: bool = True) -> str:
138
import requests
139
140
- packet = TestsetPacket(samples=self.samples)
+ packet = TestsetPacket(samples_original=self.samples)
141
response = requests.post(
142
f"{base_url}/alignment/testset", json=packet.model_dump()
143
)
0 commit comments