mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-20 21:18:13 +02:00
feat: carry chunk spans and cited lines in contract
This commit is contained in:
parent
773f913f06
commit
fc0f9d8f81
1 changed files with 5 additions and 0 deletions
|
|
@ -70,10 +70,15 @@ export const documentWithChunks = document.extend({
|
|||
id: z.number(),
|
||||
content: z.string(),
|
||||
created_at: z.string(),
|
||||
start_char: z.number().nullable().optional(),
|
||||
end_char: z.number().nullable().optional(),
|
||||
})
|
||||
),
|
||||
total_chunks: z.number().optional().default(0),
|
||||
chunk_start_index: z.number().optional().default(0),
|
||||
// 1-based inclusive line range of the cited chunk within source_markdown.
|
||||
cited_start_line: z.number().nullable().optional(),
|
||||
cited_end_line: z.number().nullable().optional(),
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue