aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/vectorstore
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2025-04-27 13:37:37 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2025-04-27 13:37:37 -0400
commit67a7996278ce176e227393fa410e7afc80228a83 (patch)
tree510522092ab67e5f08a6cfdb6cdaaac832a9f8bf /src/client/views/nodes/chatbot/vectorstore
parent3ef3d40506348d9fd537cc8f4aea975b9770689f (diff)
a bit more consistent
Diffstat (limited to 'src/client/views/nodes/chatbot/vectorstore')
-rw-r--r--src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts b/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts
index 4bb61d8b2..4512ae3e6 100644
--- a/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts
+++ b/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts
@@ -137,7 +137,6 @@ export class Vectorstore {
});
doc.original_segments = JSON.stringify(typedResponse.full);
- doc.ai_type = local_file_path.endsWith('.mp3') ? 'audio' : 'video';
const doc_id = uuidv4();
// Register the document with the AgentDocumentManager
@@ -167,7 +166,7 @@ export class Vectorstore {
start_time: chunk.start,
end_time: chunk.end,
text: chunk.text,
- type: CHUNK_TYPE.VIDEO,
+ type: local_file_path.endsWith('.mp3') ? CHUNK_TYPE.AUDIO : CHUNK_TYPE.VIDEO,
},
})),
type: 'media',