aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsharkiecodes <lanyi_stroud@brown.edu>2025-06-09 13:29:27 -0400
committersharkiecodes <lanyi_stroud@brown.edu>2025-06-09 13:29:27 -0400
commitc5981504058e0696827b4048fcd908a58fb0b0d3 (patch)
tree49f228de780324602a3ad92140eb5b983df5fc6f
parenta3c17f1f9f717d8eeb0bcecd8c2c23daffbd0d2f (diff)
minor tagging changes
-rw-r--r--src/client/apis/gpt/GPT.ts8
-rw-r--r--src/client/views/nodes/scrapbook/ScrapbookPreset.tsx16
2 files changed, 12 insertions, 12 deletions
diff --git a/src/client/apis/gpt/GPT.ts b/src/client/apis/gpt/GPT.ts
index 4642d79eb..fbded378b 100644
--- a/src/client/apis/gpt/GPT.ts
+++ b/src/client/apis/gpt/GPT.ts
@@ -12,9 +12,9 @@ export enum GPTDocCommand {
export const DescriptionSeperator = '======';
export const DocSeperator = '------';
export enum TextClassifications {
- Title = 'title', //a few words
- Caption = 'caption', //few sentences
- LengthyDescription = 'lengthy' }
+ Title = 'word', //a few words
+ Caption = 'sentence', //few sentences
+ LengthyDescription = 'paragraphs' }
enum GPTCallType {
SUMMARY = 'summary',
@@ -99,7 +99,7 @@ const callTypeMap: { [type in GPTCallType]: GPTCallOpts } = {
maxTokens: 2048,
temp: 0.25,
prompt: `Based on the content of the the text, classify it into the
- most appropriate category: '${TextClassifications.Title}', '${TextClassifications.Caption}', or '${TextClassifications.LengthyDescription}'. Output exclusively the classification in your response.
+ most appropriate category: '${TextClassifications.Title}' if it is a few words, '${TextClassifications.Caption}' if it is a couple sentences or less, or '${TextClassifications.LengthyDescription}' if it is a lengthy description. Output exclusively the classification in your response.
`
},
classify_text_full: {
diff --git a/src/client/views/nodes/scrapbook/ScrapbookPreset.tsx b/src/client/views/nodes/scrapbook/ScrapbookPreset.tsx
index 420e76523..706b9dafd 100644
--- a/src/client/views/nodes/scrapbook/ScrapbookPreset.tsx
+++ b/src/client/views/nodes/scrapbook/ScrapbookPreset.tsx
@@ -68,12 +68,12 @@ export class ScrapbookPreset {
},
{ type: DocumentType.RTF,
tag: '[placeholder] caption',
- acceptTags: ['caption'],
+ acceptTags: ['sentence'],
x: 0, y: 200, width: 250, height: 50
},
{ type: DocumentType.RTF,
tag: '[placeholder] lengthy description',
- acceptTags: ['lengthy description'],
+ acceptTags: ['paragraphs'],
x: 280, y: -50, width: 50, height: 200
},
{ type: DocumentType.IMG,
@@ -105,12 +105,12 @@ export class ScrapbookPreset {
},
{ type: DocumentType.RTF,
tag: 'summary',
- acceptTags: ['caption'],
+ acceptTags: ['sentence'],
x: 0, y: 200, width: 250
},
{ type: DocumentType.RTF,
tag: 'sidebar',
- acceptTags: ['lengthy description'],
+ acceptTags: ['paragraphs'],
x: 280, y: -50, width: 50, height: 200
},
{
@@ -143,12 +143,12 @@ export class ScrapbookPreset {
},
{ type: DocumentType.RTF,
tag: 'caption',
- acceptTags: ['caption'],
+ acceptTags: ['sentence'],
x: -150, y: 0, width: 300, height: 100
},
{ type: DocumentType.RTF,
tag: 'lengthy description',
- acceptTags: ['lengthy description'],
+ acceptTags: ['paragraphs'],
x: 0, y: 100, width: 300, height: 100
}
];
@@ -158,7 +158,7 @@ export class ScrapbookPreset {
return [
{ type: DocumentType.RTF,
tag: 'title',
- acceptTags: ['title'],
+ acceptTags: ['word'],
x: 0, y: -180, width: 300, height: 40
},
{ type: DocumentType.IMG,
@@ -168,7 +168,7 @@ export class ScrapbookPreset {
},
{ type: DocumentType.RTF,
tag: 'caption',
- acceptTags: ['caption'],
+ acceptTags: ['sentence'],
x: 0, y: 230, width: 300, height: 50
}
];