From f6e8eed9e43158ab3332abb67ce3a407199889e8 Mon Sep 17 00:00:00 2001 From: Dan Clark <44146800+declark1@users.noreply.github.com> Date: Fri, 24 May 2024 08:57:08 -0700 Subject: [PATCH] Fix chunk offset (#47) Signed-off-by: declark1 --- src/orchestrator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/orchestrator.rs b/src/orchestrator.rs index df0b900e..3625ead2 100644 --- a/src/orchestrator.rs +++ b/src/orchestrator.rs @@ -294,7 +294,7 @@ async fn handle_chunk_task( .results .into_iter() .map(|token| Chunk { - offset, + offset: offset + token.start as usize, text: token.text, }) .collect::>();