Bug fixes on chat history filter plus removed system prompt

This commit is contained in:
Saurab-Shrestha9639*969**9858//852 2024-04-08 17:59:01 +05:45
parent fb64e15802
commit 7dab3edebf
9 changed files with 21 additions and 21 deletions

View file

@ -35,9 +35,10 @@ class CRUDDocuments(CRUDBase[Document, DocumentCreate, DocumentUpdate]):
.join(document_department_association)
.join(Department)
.filter(document_department_association.c.department_id == department_id)
.order_by(desc(getattr(Document, 'uploaded_at')))
.offset(skip)
.limit(limit)
.all().order_by(desc(getattr(Document, 'uploaded_at')))
.all()
)
def get_files_to_verify(