mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-20 21:18:13 +02:00
feat: add cited line range to by-chunk response
This commit is contained in:
parent
435b84215e
commit
ea32b62f82
1 changed files with 4 additions and 0 deletions
|
|
@ -73,6 +73,10 @@ class DocumentWithChunksRead(DocumentRead):
|
|||
chunks: list[ChunkRead] = []
|
||||
total_chunks: int = 0
|
||||
chunk_start_index: int = 0
|
||||
# 1-based inclusive line range of the cited chunk within source_markdown;
|
||||
# None when the chunk predates char spans or the body is unavailable.
|
||||
cited_start_line: int | None = None
|
||||
cited_end_line: int | None = None
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue