Align Go ingestion boundaries with Python (#16647)

Moves doc_id blob resolution into Parser, tightens chunker/tokenizer to
Python output_format semantics, updates extractor list handling, and
fixes real-template integration tests.
This commit is contained in:
Zhichang Yu
2026-07-05 20:43:52 +08:00
committed by GitHub
parent 0fcfb38365
commit 014c3f634f
119 changed files with 18083 additions and 4712 deletions

View File

@@ -130,14 +130,19 @@ func (s *Service) ListIngestionTasks() ([]map[string]interface{}, error) {
"document_id": task.DocumentID,
"status": task.Status,
}
if err == nil {
if err == nil && latestLog != nil && latestLog.Checkpoint != nil {
step, ok := latestLog.Checkpoint["current_step"].(float64)
if !ok {
showTasks = append(showTasks, showTask)
continue
}
showTask = map[string]interface{}{
"id": task.ID,
"user_id": task.UserID,
"user": user.Email,
"document_id": task.DocumentID,
"status": task.Status,
"step": int(latestLog.Checkpoint["current_step"].(float64)),
"step": int(step),
}
}