aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ChatBox/vectorstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/ChatBox/vectorstore')
-rw-r--r--src/client/views/nodes/ChatBox/vectorstore/VectorstoreUpload.ts8
1 files changed, 6 insertions, 2 deletions
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;
}