Rapidata order manager
RapidataOrderManager #
Handels everything regarding the orders from creation to retrieval.
Attributes:
| Name | Type | Description |
|---|---|---|
filters |
RapidataFilters
|
The RapidataFilters instance. |
settings |
RapidataSettings
|
The RapidataSettings instance. |
selections |
RapidataSelections
|
The RapidataSelections instance. |
Source code in src/rapidata/rapidata_client/order/rapidata_order_manager.py
create_classification_order #
create_classification_order(
name: str,
instruction: str,
answer_options: list[str],
datapoints: list[str],
data_type: Literal["media", "text"] = "media",
responses_per_datapoint: int = 10,
contexts: list[str] | None = None,
media_contexts: list[str] | None = None,
validation_set_id: str | None = None,
confidence_threshold: float | None = None,
filters: Sequence[RapidataFilter] | None = None,
settings: Sequence[RapidataSetting] | None = None,
selections: Sequence[RapidataSelection] | None = None,
private_notes: list[str] | None = None,
) -> RapidataOrder
Create a classification order.
With this order you can have a datapoint (image, text, video, audio) be classified into one of the answer options. Each response will be exactly one of the answer options.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the order. (Will not be shown to the labeler) |
required |
instruction
|
str
|
The instruction for how the data should be classified. |
required |
answer_options
|
list[str]
|
The list of options for the classification. |
required |
datapoints
|
list[str]
|
The list of datapoints for the classification - each datapoint will be labeled. |
required |
data_type
|
str
|
The data type of the datapoints. Defaults to "media" (any form of image, video or audio). Other option: "text". |
'media'
|
responses_per_datapoint
|
int
|
The number of responses that will be collected per datapoint. Defaults to 10. |
10
|
contexts
|
list[str]
|
The list of contexts for the classification. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction and options. (Therefore will be different for each datapoint) Will be match up with the datapoints using the list index. |
None
|
media_contexts
|
list[str]
|
The list of media contexts for the classification i.e links to the images / videos. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction and options. (Therefore will be different for each datapoint) |
None
|
validation_set_id
|
str
|
The ID of the validation set. Defaults to None. If provided, one validation task will be shown infront of the datapoints that will be labeled. |
None
|
confidence_threshold
|
float
|
The probability threshold for the classification. Defaults to None. If provided, the classification datapoint will stop after the threshold is reached or at the number of responses, whatever happens first. |
None
|
filters
|
Sequence[RapidataFilter]
|
The list of filters for the classification. Defaults to []. Decides who the tasks should be shown to. |
None
|
settings
|
Sequence[RapidataSetting]
|
The list of settings for the classification. Defaults to []. Decides how the tasks should be shown. |
None
|
selections
|
Sequence[RapidataSelection]
|
The list of selections for the classification. Defaults to []. Decides in what order the tasks should be shown. |
None
|
private_notes
|
list[str]
|
The list of private notes for the classification. Defaults to None. If provided has to be the same length as datapoints. This will NOT be shown to the labelers but will be included in the result purely for your own reference. |
None
|
Example
from rapidata import RapidataClient, NoShuffle
rapi = RapidataClient()
order = rapi.order.create_classification_order(
name="Image Quality Rating",
instruction="How would you rate the quality of this image?",
answer_options=["1: Poor", "2: Fair", "3: Good", "4: Excellent"],
datapoints=["https://example.com/image1.jpg", "https://example.com/image2.jpg"],
responses_per_datapoint=15,
settings=[NoShuffle()], # Keep options in order for Likert scale
).run()
results = order.get_results()
Source code in src/rapidata/rapidata_client/order/rapidata_order_manager.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | |
create_compare_order #
create_compare_order(
name: str,
instruction: str,
datapoints: list[list[str]],
data_type: Literal["media", "text"] = "media",
responses_per_datapoint: int = 10,
contexts: list[str] | None = None,
media_contexts: list[str] | None = None,
a_b_names: list[str] | None = None,
validation_set_id: str | None = None,
confidence_threshold: float | None = None,
filters: Sequence[RapidataFilter] | None = None,
settings: Sequence[RapidataSetting] | None = None,
selections: Sequence[RapidataSelection] | None = None,
private_notes: list[str] | None = None,
) -> RapidataOrder
Create a compare order.
With this order you compare two datapoints (image, text, video, audio) and the annotators will choose one of the two based on the instruction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the order. (Will not be shown to the labeler) |
required |
instruction
|
str
|
The instruction for the comparison. Will be shown along side each datapoint. |
required |
datapoints
|
list[list[str]]
|
Outher list is the datapoints, inner list is the options for the comparison - each datapoint will be labeled. |
required |
data_type
|
str
|
The data type of the datapoints. Defaults to "media" (any form of image, video or audio). Other option: "text". |
'media'
|
responses_per_datapoint
|
int
|
The number of responses that will be collected per datapoint. Defaults to 10. |
10
|
contexts
|
list[str]
|
The list of contexts for the comparison. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction. (Therefore will be different for each datapoint) Will be matched up with the datapoints using the list index. |
None
|
media_contexts
|
list[str]
|
The list of media contexts i.e. links to the images / videos for the comparison. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction. (Therefore will be different for each datapoint) Will be matched up with the datapoints using the list index. |
None
|
a_b_names
|
list[str]
|
Custom naming for the two opposing models defined by the index in the datapoints list. Defaults to None. If provided has to be a list of exactly two strings. example: The results will then correctly show "Model A" and "Model B". If not provided, the results will be shown as "A" and "B". |
None
|
validation_set_id
|
str
|
The ID of the validation set. Defaults to None. If provided, one validation task will be shown infront of the datapoints that will be labeled. |
None
|
confidence_threshold
|
float
|
The probability threshold for the comparison. Defaults to None. If provided, the comparison datapoint will stop after the threshold is reached or at the number of responses, whatever happens first. |
None
|
filters
|
Sequence[RapidataFilter]
|
The list of filters for the comparison. Defaults to []. Decides who the tasks should be shown to. |
None
|
settings
|
Sequence[RapidataSetting]
|
The list of settings for the comparison. Defaults to []. Decides how the tasks should be shown. |
None
|
selections
|
Sequence[RapidataSelection]
|
The list of selections for the comparison. Defaults to []. Decides in what order the tasks should be shown. |
None
|
private_notes
|
list[str]
|
The list of private notes for the comparison. Defaults to None. If provided has to be the same length as datapoints. This will NOT be shown to the labelers but will be included in the result purely for your own reference. |
None
|
Example
from rapidata import RapidataClient
rapi = RapidataClient()
order = rapi.order.create_compare_order(
name="Image Prompt Alignment",
instruction="Which image follows the prompt more accurately?",
datapoints=[
["https://example.com/model_a_img1.jpg", "https://example.com/model_b_img1.jpg"],
["https://example.com/model_a_img2.jpg", "https://example.com/model_b_img2.jpg"],
],
contexts=["A cat sitting on a red couch", "A blue car in the rain"],
responses_per_datapoint=25,
a_b_names=["Flux", "Midjourney"], # Optional: label the models in results
).run()
results = order.get_results()
Source code in src/rapidata/rapidata_client/order/rapidata_order_manager.py
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | |
create_ranking_order #
create_ranking_order(
name: str,
instruction: str,
datapoints: list[list[str]],
comparison_budget_per_ranking: int,
responses_per_comparison: int = 1,
data_type: Literal["media", "text"] = "media",
random_comparisons_ratio: float = 0.5,
contexts: Optional[list[str]] = None,
media_contexts: Optional[list[str]] = None,
validation_set_id: Optional[str] = None,
filters: Sequence[RapidataFilter] | None = None,
settings: Sequence[RapidataSetting] | None = None,
selections: Sequence[RapidataSelection] | None = None,
) -> RapidataOrder
Create a ranking order.
With this order you can have a multiple lists of datapoints (image, text, video, audio) be ranked based on the instruction. Each list will be ranked independently, based on comparison matchups.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the order. |
required |
instruction
|
str
|
The instruction for the ranking. Will be shown with each matchup. |
required |
datapoints
|
list[list[str]]
|
The outer list is determines the independent rankings, the inner list is the datapoints for each ranking. |
required |
comparison_budget_per_ranking
|
int
|
The number of comparisons that will be collected per ranking (outer list of datapoints). |
required |
responses_per_comparison
|
int
|
The number of responses that will be collected per comparison. Defaults to 1. |
1
|
data_type
|
str
|
The data type of the datapoints. Defaults to "media" (any form of image, video or audio). Other option: "text". |
'media'
|
random_comparisons_ratio
|
float
|
The ratio of random comparisons to the total number of comparisons. Defaults to 0.5. |
0.5
|
contexts
|
list[str]
|
The list of contexts for the ranking. Defaults to None. If provided has to be the same length as the outer list of datapoints and will be shown in addition to the instruction. (Therefore will be different for each ranking) Will be matched up with the datapoints using the list index. |
None
|
media_contexts
|
list[str]
|
The list of media contexts for the ranking i.e links to the images / videos. Defaults to None. If provided has to be the same length as the outer list of datapoints and will be shown in addition to the instruction. (Therefore will be different for each ranking) Will be matched up with the datapoints using the list index. |
None
|
validation_set_id
|
str
|
The ID of the validation set. Defaults to None. If provided, one validation task will be shown infront of the datapoints that will be labeled. |
None
|
filters
|
Sequence[RapidataFilter]
|
The list of filters for the ranking. Defaults to []. Decides who the tasks should be shown to. |
None
|
settings
|
Sequence[RapidataSetting]
|
The list of settings for the ranking. Defaults to []. Decides how the tasks should be shown. |
None
|
selections
|
Sequence[RapidataSelection]
|
The list of selections for the ranking. Defaults to []. Decides in what order the tasks should be shown. |
None
|
Example
from rapidata import RapidataClient
rapi = RapidataClient()
# Rank 12 images by preference using 50 pairwise comparisons
order = rapi.order.create_ranking_order(
name="Image Quality Ranking",
instruction="Which image looks better?",
datapoints=[["img1.jpg", "img2.jpg", "img3.jpg", "img4.jpg", "img5.jpg",
"img6.jpg", "img7.jpg", "img8.jpg", "img9.jpg", "img10.jpg",
"img11.jpg", "img12.jpg"]],
comparison_budget_per_ranking=50,
random_comparisons_ratio=0.5, # 50% random, 50% close matchups
).run()
results = order.get_results() # Returns ranked list with scores
Source code in src/rapidata/rapidata_client/order/rapidata_order_manager.py
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 | |
create_free_text_order #
create_free_text_order(
name: str,
instruction: str,
datapoints: list[str],
data_type: Literal["media", "text"] = "media",
responses_per_datapoint: int = 10,
contexts: list[str] | None = None,
media_contexts: list[str] | None = None,
filters: Sequence[RapidataFilter] | None = None,
settings: Sequence[RapidataSetting] | None = None,
selections: Sequence[RapidataSelection] | None = None,
private_notes: list[str] | None = None,
) -> RapidataOrder
Create a free text order.
With this order you can have a datapoint (image, text, video, audio) be labeled with free text. The annotators will be shown a datapoint and will be asked to answer a question with free text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the order. |
required |
instruction
|
str
|
The instruction to answer with free text. Will be shown along side each datapoint. |
required |
datapoints
|
list[str]
|
The list of datapoints for the free text - each datapoint will be labeled. |
required |
data_type
|
str
|
The data type of the datapoints. Defaults to "media" (any form of image, video or audio). Other option: "text". |
'media'
|
responses_per_datapoint
|
int
|
The number of responses that will be collected per datapoint. Defaults to 10. |
10
|
contexts
|
list[str]
|
The list of contexts for the free text. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction. (Therefore will be different for each datapoint) Will be matched up with the datapoints using the list index. |
None
|
media_contexts
|
list[str]
|
The list of media contexts for the free text i.e links to the images / videos. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction. (Therefore will be different for each datapoint) Will be matched up with the datapoints using the list index. |
None
|
filters
|
Sequence[RapidataFilter]
|
The list of filters for the free text. Defaults to []. Decides who the tasks should be shown to. |
None
|
settings
|
Sequence[RapidataSetting]
|
The list of settings for the free text. Defaults to []. Decides how the tasks should be shown. |
None
|
selections
|
Sequence[RapidataSelection]
|
The list of selections for the free text. Defaults to []. Decides in what order the tasks should be shown. |
None
|
private_notes
|
list[str]
|
The list of private notes for the free text. Defaults to None. If provided has to be the same length as datapoints. This will NOT be shown to the labelers but will be included in the result purely for your own reference. |
None
|
Example
from rapidata import RapidataClient, FreeTextMinimumCharacters
rapi = RapidataClient()
order = rapi.order.create_free_text_order(
name="Image Captioning",
instruction="Describe what you see in this image in detail",
datapoints=["https://example.com/image1.jpg", "https://example.com/image2.jpg"],
responses_per_datapoint=5,
settings=[FreeTextMinimumCharacters(20)], # Require at least 20 characters
).run()
results = order.get_results()
Source code in src/rapidata/rapidata_client/order/rapidata_order_manager.py
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 | |
create_select_words_order #
create_select_words_order(
name: str,
instruction: str,
datapoints: list[str],
sentences: list[str],
responses_per_datapoint: int = 10,
validation_set_id: str | None = None,
filters: Sequence[RapidataFilter] | None = None,
settings: Sequence[RapidataSetting] | None = None,
selections: Sequence[RapidataSelection] | None = None,
private_notes: list[str] | None = None,
) -> RapidataOrder
Create a select words order.
With this order you can have a datapoint (image, text, video, audio) be labeled with a list of words. The annotators will be shown a datapoint as well as a list of sentences split up by spaces. They will then select specific words based on the instruction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the order. |
required |
instruction
|
str
|
The instruction for how the words should be selected. Will be shown along side each datapoint. |
required |
datapoints
|
list[str]
|
The list of datapoints for the select words - each datapoint will be labeled. |
required |
sentences
|
list[str]
|
The list of sentences for the select words - Will be split up by spaces and shown along side each datapoint. Must be the same length as datapoints. |
required |
responses_per_datapoint
|
int
|
The number of responses that will be collected per datapoint. Defaults to 10. |
10
|
validation_set_id
|
str
|
The ID of the validation set. Defaults to None. If provided, one validation task will be shown infront of the datapoints that will be labeled. |
None
|
filters
|
Sequence[RapidataFilter]
|
The list of filters for the select words. Defaults to []. Decides who the tasks should be shown to. |
None
|
settings
|
Sequence[RapidataSetting]
|
The list of settings for the select words. Defaults to []. Decides how the tasks should be shown. |
None
|
selections
|
Sequence[RapidataSelection]
|
The list of selections for the select words. Defaults to []. Decides in what order the tasks should be shown. |
None
|
private_notes
|
list[str]
|
The list of private notes for the select words. Defaults to None. If provided has to be the same length as datapoints. This will NOT be shown to the labelers but will be included in the result purely for your own reference. |
None
|
Example
from rapidata import RapidataClient
rapi = RapidataClient()
order = rapi.order.create_select_words_order(
name="Find Text-Image Mismatches",
instruction="Select words that don't match what's shown in the image",
datapoints=["https://example.com/image1.jpg", "https://example.com/image2.jpg"],
sentences=["A red car on a blue road", "Two cats playing with yarn"],
responses_per_datapoint=15,
).run()
results = order.get_results()
Source code in src/rapidata/rapidata_client/order/rapidata_order_manager.py
create_locate_order #
create_locate_order(
name: str,
instruction: str,
datapoints: list[str],
responses_per_datapoint: int = 10,
contexts: list[str] | None = None,
media_contexts: list[str] | None = None,
validation_set_id: str | None = None,
filters: Sequence[RapidataFilter] | None = None,
settings: Sequence[RapidataSetting] | None = None,
selections: Sequence[RapidataSelection] | None = None,
private_notes: list[str] | None = None,
) -> RapidataOrder
Create a locate order.
With this order you can have people locate specific objects in a datapoint (image, text, video, audio). The annotators will be shown a datapoint and will be asked to select locations based on the instruction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the order. |
required |
instruction
|
str
|
The instruction what should be located. Will be shown along side each datapoint. |
required |
datapoints
|
list[str]
|
The list of datapoints for the locate - each datapoint will be labeled. |
required |
responses_per_datapoint
|
int
|
The number of responses that will be collected per datapoint. Defaults to 10. |
10
|
contexts
|
list[str]
|
The list of contexts for the locate. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction. (Therefore will be different for each datapoint) Will be match up with the datapoints using the list index. |
None
|
media_contexts
|
list[str]
|
The list of media contexts for the locate i.e links to the images / videos. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction. (Therefore will be different for each datapoint) |
None
|
validation_set_id
|
str
|
The ID of the validation set. Defaults to None. If provided, one validation task will be shown infront of the datapoints that will be labeled. |
None
|
filters
|
Sequence[RapidataFilter]
|
The list of filters for the locate. Defaults to []. Decides who the tasks should be shown to. |
None
|
settings
|
Sequence[RapidataSetting]
|
The list of settings for the locate. Defaults to []. Decides how the tasks should be shown. |
None
|
selections
|
Sequence[RapidataSelection]
|
The list of selections for the locate. Defaults to []. Decides in what order the tasks should be shown. |
None
|
private_notes
|
list[str]
|
The list of private notes for the locate. Defaults to None. If provided has to be the same length as datapoints. This will NOT be shown to the labelers but will be included in the result purely for your own reference. |
None
|
Example
from rapidata import RapidataClient
rapi = RapidataClient()
order = rapi.order.create_locate_order(
name="Find Artifacts",
instruction="Tap on any visual glitches or errors in the image",
datapoints=["https://example.com/ai_generated1.jpg", "https://example.com/ai_generated2.jpg"],
responses_per_datapoint=35,
).run()
results = order.get_results()
Source code in src/rapidata/rapidata_client/order/rapidata_order_manager.py
create_draw_order #
create_draw_order(
name: str,
instruction: str,
datapoints: list[str],
responses_per_datapoint: int = 10,
contexts: list[str] | None = None,
media_contexts: list[str] | None = None,
validation_set_id: str | None = None,
filters: Sequence[RapidataFilter] = [],
settings: Sequence[RapidataSetting] = [],
selections: Sequence[RapidataSelection] = [],
private_notes: list[str] | None = None,
) -> RapidataOrder
Create a draw order.
With this order you can have people draw lines on a datapoint (image, text, video, audio). The annotators will be shown a datapoint and will be asked to draw lines based on the instruction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the order. |
required |
instruction
|
str
|
The instruction for how the lines should be drawn. Will be shown along side each datapoint. |
required |
datapoints
|
list[str]
|
The list of datapoints for the draw lines - each datapoint will be labeled. |
required |
responses_per_datapoint
|
int
|
The number of responses that will be collected per datapoint. Defaults to 10. |
10
|
contexts
|
list[str]
|
The list of contexts for the comparison. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction. (Therefore will be different for each datapoint) Will be match up with the datapoints using the list index. |
None
|
media_contexts
|
list[str]
|
The list of media contexts for the draw lines i.e links to the images / videos. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction. (Therefore will be different for each datapoint) |
None
|
validation_set_id
|
str
|
The ID of the validation set. Defaults to None. If provided, one validation task will be shown infront of the datapoints that will be labeled. |
None
|
filters
|
Sequence[RapidataFilter]
|
The list of filters for the draw lines. Defaults to []. Decides who the tasks should be shown to. |
[]
|
settings
|
Sequence[RapidataSetting]
|
The list of settings for the draw lines. Defaults to []. Decides how the tasks should be shown. |
[]
|
selections
|
Sequence[RapidataSelection]
|
The list of selections for the draw lines. Defaults to []. Decides in what order the tasks should be shown. |
[]
|
private_notes
|
list[str]
|
The list of private notes for the draw lines. Defaults to None. If provided has to be the same length as datapoints. This will NOT be shown to the labelers but will be included in the result purely for your own reference. |
None
|
Example
from rapidata import RapidataClient
rapi = RapidataClient()
order = rapi.order.create_draw_order(
name="Segment Objects",
instruction="Color in all the cars in the image",
datapoints=["https://example.com/street1.jpg", "https://example.com/street2.jpg"],
responses_per_datapoint=35,
).run()
results = order.get_results()
Source code in src/rapidata/rapidata_client/order/rapidata_order_manager.py
create_timestamp_order #
create_timestamp_order(
name: str,
instruction: str,
datapoints: list[str],
responses_per_datapoint: int = 10,
contexts: list[str] | None = None,
media_contexts: list[str] | None = None,
validation_set_id: str | None = None,
filters: Sequence[RapidataFilter] | None = None,
settings: Sequence[RapidataSetting] | None = None,
selections: Sequence[RapidataSelection] | None = None,
private_notes: list[str] | None = None,
) -> RapidataOrder
Create a timestamp order.
Warning
This order is currently not fully supported and may give unexpected results.
With this order you can have people mark specific timestamps in a datapoint (video, audio). The annotators will be shown a datapoint and will be asked to select a timestamp based on the instruction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the order. |
required |
instruction
|
str
|
The instruction for the timestamp task. Will be shown along side each datapoint. |
required |
datapoints
|
list[str]
|
The list of datapoints for the timestamp - each datapoint will be labeled. |
required |
responses_per_datapoint
|
int
|
The number of responses that will be collected per datapoint. Defaults to 10. |
10
|
contexts
|
list[str]
|
The list of contexts for the comparison. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction. (Therefore will be different for each datapoint) Will be match up with the datapoints using the list index. |
None
|
media_contexts
|
list[str]
|
The list of media contexts for the timestamp i.e links to the images / videos. Defaults to None. If provided has to be the same length as datapoints and will be shown in addition to the instruction. (Therefore will be different for each datapoint) |
None
|
validation_set_id
|
str
|
The ID of the validation set. Defaults to None. If provided, one validation task will be shown infront of the datapoints that will be labeled. |
None
|
filters
|
Sequence[RapidataFilter]
|
The list of filters for the timestamp. Defaults to []. Decides who the tasks should be shown to. |
None
|
settings
|
Sequence[RapidataSetting]
|
The list of settings for the timestamp. Defaults to []. Decides how the tasks should be shown. |
None
|
selections
|
Sequence[RapidataSelection]
|
The list of selections for the timestamp. Defaults to []. Decides in what order the tasks should be shown. |
None
|
private_notes
|
list[str]
|
The list of private notes for the timestamp. Defaults to None. If provided has to be the same length as datapoints. This will NOT be shown to the labelers but will be included in the result purely for your own reference. |
None
|
Source code in src/rapidata/rapidata_client/order/rapidata_order_manager.py
get_order_by_id #
get_order_by_id(order_id: str) -> RapidataOrder
Get an order by ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
order_id
|
str
|
The ID of the order. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
RapidataOrder |
RapidataOrder
|
The Order instance. |
Source code in src/rapidata/rapidata_client/order/rapidata_order_manager.py
find_orders #
find_orders(
name: str = "", amount: int = 10
) -> list[RapidataOrder]
Find your recent orders given criteria. If nothing is provided, it will return the most recent order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the order - matching order will contain the name. Defaults to "" for any order. |
''
|
amount
|
int
|
The amount of orders to return. Defaults to 10. |
10
|
Returns:
| Type | Description |
|---|---|
list[RapidataOrder]
|
list[RapidataOrder]: A list of RapidataOrder instances. |