aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/tools/SortDocsTool.ts
diff options
context:
space:
mode:
authorsharkiecodes <lanyi_stroud@brown.edu>2025-07-01 14:27:12 -0400
committersharkiecodes <lanyi_stroud@brown.edu>2025-07-01 14:27:12 -0400
commitd6672879b9e1dcb299eccd9818d4b214673c7a93 (patch)
tree6960befe51e0532046a24cb46c88ae13803f8040 /src/client/views/nodes/chatbot/tools/SortDocsTool.ts
parentb7d5510a600bbe7c6a4f32b528c93e4e6a79d7dd (diff)
fixing sorting tagging tools
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/SortDocsTool.ts')
-rw-r--r--src/client/views/nodes/chatbot/tools/SortDocsTool.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/nodes/chatbot/tools/SortDocsTool.ts b/src/client/views/nodes/chatbot/tools/SortDocsTool.ts
index e91a27b36..741a8f3ce 100644
--- a/src/client/views/nodes/chatbot/tools/SortDocsTool.ts
+++ b/src/client/views/nodes/chatbot/tools/SortDocsTool.ts
@@ -46,6 +46,8 @@ export class SortDocsTool extends BaseTool<typeof parameterRules> {
const sortedIdsResponse = await gptAPICall(args.sortCriteria, GPTCallType.SORTDOCS, descriptions);
const sortedIds = sortedIdsResponse.trim().split('\n');
+ console.log(sortedIdsResponse);
+ console.log(sortedIds);
sortedIds.forEach((id, index) => {
this._docManager.editDocumentField(id, ChatSortField, index);