fix(pdf-upload): correction de l ouverture en double et integration de la colonne d embedding manquante pour DocumentChunk
This commit is contained in:
@@ -73,8 +73,11 @@ export function NoteAttachments({ noteId, onOpenDocQA, onCountChange, triggerUpl
|
|||||||
}
|
}
|
||||||
}, [attachments, fetchAttachments])
|
}, [attachments, fetchAttachments])
|
||||||
|
|
||||||
|
const lastTriggerRef = useRef(0)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (triggerUpload && triggerUpload > 0) {
|
if (triggerUpload && triggerUpload > lastTriggerRef.current) {
|
||||||
|
lastTriggerRef.current = triggerUpload
|
||||||
if (attachments.length > 0) {
|
if (attachments.length > 0) {
|
||||||
sectionRef.current?.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
sectionRef.current?.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -683,6 +683,7 @@ model DocumentChunk {
|
|||||||
startChar Int?
|
startChar Int?
|
||||||
endChar Int?
|
endChar Int?
|
||||||
metadata String?
|
metadata String?
|
||||||
|
embedding Unsupported("vector(1536)")?
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
attachment NoteAttachment @relation(fields: [attachmentId], references: [id], onDelete: Cascade)
|
attachment NoteAttachment @relation(fields: [attachmentId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user