|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import Dict, Type, Union, Iterable, Optional, cast |
| 5 | +from typing import Dict, Type, Union, Iterable, cast |
6 | 6 | from typing_extensions import Literal |
7 | 7 |
|
8 | 8 | import httpx |
@@ -61,7 +61,7 @@ def retrieve( |
61 | 61 | extra_query: Query | None = None, |
62 | 62 | extra_body: Body | None = None, |
63 | 63 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
64 | | - ) -> Optional[DatasetRetrieveResponse]: |
| 64 | + ) -> DatasetRetrieveResponse: |
65 | 65 | """ |
66 | 66 | Args: |
67 | 67 | extra_headers: Send extra headers |
@@ -122,7 +122,7 @@ def iterrows( |
122 | 122 | Uses cursor-based pagination. |
123 | 123 |
|
124 | 124 | Args: |
125 | | - limit: The number of rows to get per page. |
| 125 | + limit: The number of rows to get. |
126 | 126 |
|
127 | 127 | start_index: Index into dataset for the first row to get. Get all rows if None. |
128 | 128 |
|
@@ -185,8 +185,8 @@ def register( |
185 | 185 | "Hello, John Doe. How can I help you today?"}, {"role": "user", "content": |
186 | 186 | "What's my name?"}, ], "answer": "John Doe" } |
187 | 187 |
|
188 | | - source: |
189 | | - The data source of the dataset. Examples: - { "type": "uri", "uri": |
| 188 | + source: The data source of the dataset. Ensure that the data source schema is compatible |
| 189 | + with the purpose of the dataset. Examples: - { "type": "uri", "uri": |
190 | 190 | "https://mywebsite.com/mydata.jsonl" } - { "type": "uri", "uri": |
191 | 191 | "lsfs://mydata.jsonl" } - { "type": "uri", "uri": |
192 | 192 | "data:csv;base64,{base64_content}" } - { "type": "uri", "uri": |
@@ -286,7 +286,7 @@ async def retrieve( |
286 | 286 | extra_query: Query | None = None, |
287 | 287 | extra_body: Body | None = None, |
288 | 288 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
289 | | - ) -> Optional[DatasetRetrieveResponse]: |
| 289 | + ) -> DatasetRetrieveResponse: |
290 | 290 | """ |
291 | 291 | Args: |
292 | 292 | extra_headers: Send extra headers |
@@ -347,7 +347,7 @@ async def iterrows( |
347 | 347 | Uses cursor-based pagination. |
348 | 348 |
|
349 | 349 | Args: |
350 | | - limit: The number of rows to get per page. |
| 350 | + limit: The number of rows to get. |
351 | 351 |
|
352 | 352 | start_index: Index into dataset for the first row to get. Get all rows if None. |
353 | 353 |
|
@@ -410,8 +410,8 @@ async def register( |
410 | 410 | "Hello, John Doe. How can I help you today?"}, {"role": "user", "content": |
411 | 411 | "What's my name?"}, ], "answer": "John Doe" } |
412 | 412 |
|
413 | | - source: |
414 | | - The data source of the dataset. Examples: - { "type": "uri", "uri": |
| 413 | + source: The data source of the dataset. Ensure that the data source schema is compatible |
| 414 | + with the purpose of the dataset. Examples: - { "type": "uri", "uri": |
415 | 415 | "https://mywebsite.com/mydata.jsonl" } - { "type": "uri", "uri": |
416 | 416 | "lsfs://mydata.jsonl" } - { "type": "uri", "uri": |
417 | 417 | "data:csv;base64,{base64_content}" } - { "type": "uri", "uri": |
|
0 commit comments