mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-13 17:52:38 +02:00
feat: simplified document upload handling
- Introduced a new endpoint for batch document status retrieval, allowing users to check the status of multiple documents in a search space. - Enhanced the document upload process to return duplicate document IDs and improved response structure. - Updated schemas to include new response models for document status. - Removed unused attachment processing code from chat routes and UI components to streamline functionality.
This commit is contained in:
parent
d11e76aaa1
commit
c979609041
15 changed files with 475 additions and 1090 deletions
|
|
@ -99,3 +99,20 @@ class DocumentTitleSearchResponse(BaseModel):
|
|||
|
||||
items: list[DocumentTitleRead]
|
||||
has_more: bool
|
||||
|
||||
|
||||
class DocumentStatusItemRead(BaseModel):
|
||||
"""Lightweight document status payload for batch status polling."""
|
||||
|
||||
id: int
|
||||
title: str
|
||||
document_type: DocumentType
|
||||
status: DocumentStatusSchema
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
class DocumentStatusBatchResponse(BaseModel):
|
||||
"""Batch status response for a set of document IDs."""
|
||||
|
||||
items: list[DocumentStatusItemRead]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue