feat: added jump to source referencing of citations

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-08-23 18:48:18 -07:00
parent 9b91bea51d
commit 76732c36ba
8 changed files with 818 additions and 559 deletions

View file

@ -4,6 +4,8 @@ from pydantic import BaseModel, ConfigDict
from app.db import DocumentType
from .chunks import ChunkRead
class ExtensionDocumentMetadata(BaseModel):
BrowsingSessionId: str
@ -45,3 +47,9 @@ class DocumentRead(BaseModel):
search_space_id: int
model_config = ConfigDict(from_attributes=True)
class DocumentWithChunksRead(DocumentRead):
chunks: list[ChunkRead] = []
model_config = ConfigDict(from_attributes=True)