aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ChatBox/vectorstore
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-07-15 14:00:12 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2024-07-15 14:00:12 -0400
commit5a3d5b23c927c5fb05c7eeef1e3bb91479ef896a (patch)
tree7138fa56ef1c2539dd68601b940e08a2a24af5f3 /src/client/views/nodes/ChatBox/vectorstore
parent97fdb44133c6aed043f84fd345d5ac57125e5405 (diff)
attempt #2
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;
}