Skip to content

Commit

Permalink
fix: upload for testset (explodinggradients#1676)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmachan authored and shahules786 committed Nov 14, 2024
1 parent b13470b commit bdfa339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ragas/testset/synthesizers/testset_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TestsetPacket(BaseModel):
A packet of testset samples to be uploaded to the server.
"""

samples: t.List[TestsetSample]
samples_original: t.List[TestsetSample]
run_id: str = Field(default_factory=lambda: str(uuid4()))
created_at: str = Field(default_factory=lambda: datetime.now().isoformat())

Expand Down Expand Up @@ -137,7 +137,7 @@ def total_cost(
def upload(self, base_url: str = RAGAS_API_URL, verbose: bool = True) -> str:
import requests

packet = TestsetPacket(samples=self.samples)
packet = TestsetPacket(samples_original=self.samples)
response = requests.post(
f"{base_url}/alignment/testset", json=packet.model_dump()
)
Expand Down

0 comments on commit bdfa339

Please sign in to comment.