From 5a3d5b23c927c5fb05c7eeef1e3bb91479ef896a Mon Sep 17 00:00:00 2001 From: "A.J. Shulman" Date: Mon, 15 Jul 2024 14:00:12 -0400 Subject: attempt #2 --- src/client/views/nodes/ChatBox/vectorstore/VectorstoreUpload.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/client/views/nodes/ChatBox/vectorstore') diff --git a/src/client/views/nodes/ChatBox/vectorstore/VectorstoreUpload.ts b/src/client/views/nodes/ChatBox/vectorstore/VectorstoreUpload.ts index 3a889bff2..64b89225c 100644 --- a/src/client/views/nodes/ChatBox/vectorstore/VectorstoreUpload.ts +++ b/src/client/views/nodes/ChatBox/vectorstore/VectorstoreUpload.ts @@ -64,8 +64,12 @@ export class Vectorstore { } async addAIDoc(doc: Doc) { - if (doc.ai_document) { - if (doc.ai_document === 'IN PROGRESS') { + console.log('Adding AI Document:', doc); + console.log('AI Document1:', doc[DocData].ai_document); + console.log('AI Document2:', doc.ai_document); + const ai_document_string: string = StrCast(doc.ai_document); + if (ai_document_string !== undefined && ai_document_string !== null && ai_document_string !== '' && ai_document_string !== ' ' && ai_document_string !== '{}') { + if (ai_document_string === 'IN PROGRESS') { console.log('Already in progress.'); return; } -- cgit v1.2.3-70-g09d2