Skip to content

Commit fa22954

Browse files
author
stlc-bot
committed
feat(parse-eval): keep ground truth in Evaluate-owned storage (#33781)
Stainless-Generated-From: 0b6fbe738cfe4f2c80ab19d2344227e7058b3b64
1 parent 5408c77 commit fa22954

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingDeleteParams.kt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ import kotlin.jvm.optionals.getOrNull
1717
* The job must be in a terminal state (COMPLETED, FAILED, CANCELLED). Cancel a job that is still
1818
* running before deleting it.
1919
*
20+
* A job that a document in Evaluate reads its ground truth from can't be deleted. It is kept until
21+
* the document is removed from Evaluate or the project is deleted.
22+
*
2023
* Returns the identifiers of the deleted job.
2124
*/
2225
class ParsingDeleteParams

‎llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/services/async/ParsingServiceAsync.kt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ interface ParsingServiceAsync {
8787
* The job must be in a terminal state (COMPLETED, FAILED, CANCELLED). Cancel a job that is
8888
* still running before deleting it.
8989
*
90+
* A job that a document in Evaluate reads its ground truth from can't be deleted. It is kept
91+
* until the document is removed from Evaluate or the project is deleted.
92+
*
9093
* Returns the identifiers of the deleted job.
9194
*/
9295
fun delete(jobId: String): CompletableFuture<ParsingDeleteResponse> =

‎llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/services/blocking/ParsingService.kt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ interface ParsingService {
8686
* The job must be in a terminal state (COMPLETED, FAILED, CANCELLED). Cancel a job that is
8787
* still running before deleting it.
8888
*
89+
* A job that a document in Evaluate reads its ground truth from can't be deleted. It is kept
90+
* until the document is removed from Evaluate or the project is deleted.
91+
*
8992
* Returns the identifiers of the deleted job.
9093
*/
9194
fun delete(jobId: String): ParsingDeleteResponse = delete(jobId, ParsingDeleteParams.none())

0 commit comments

Comments
 (0)