Skip to content

Commit 523fc5e

Browse files
author
priyanshu.solanki
committed
increased number from 3 to 5 and boolean from 7 to 2
1 parent 78bbedd commit 523fc5e

File tree

6 files changed

+11
-35
lines changed

6 files changed

+11
-35
lines changed

apps/sim/lib/knowledge/constants.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,16 @@ export const TAG_SLOT_CONFIG = {
44
maxSlots: 7,
55
},
66
number: {
7-
slots: ['number1', 'number2', 'number3'] as const,
8-
maxSlots: 3,
7+
slots: ['number1', 'number2', 'number3', 'number4', 'number5'] as const,
8+
maxSlots: 5,
99
},
1010
date: {
1111
slots: ['date1', 'date2'] as const,
1212
maxSlots: 2,
1313
},
1414
boolean: {
15-
slots: [
16-
'boolean1',
17-
'boolean2',
18-
'boolean3',
19-
'boolean4',
20-
'boolean5',
21-
'boolean6',
22-
'boolean7',
23-
] as const,
24-
maxSlots: 7,
15+
slots: ['boolean1', 'boolean2', 'boolean3'] as const,
16+
maxSlots: 3,
2517
},
2618
} as const
2719

apps/sim/lib/knowledge/filters/query-builder.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,9 @@ import type {
1515
* Valid tag slots that can be used in filters
1616
*/
1717
const VALID_TEXT_SLOTS = ['tag1', 'tag2', 'tag3', 'tag4', 'tag5', 'tag6', 'tag7'] as const
18-
const VALID_NUMBER_SLOTS = ['number1', 'number2', 'number3'] as const
18+
const VALID_NUMBER_SLOTS = ['number1', 'number2', 'number3', 'number4', 'number5'] as const
1919
const VALID_DATE_SLOTS = ['date1', 'date2'] as const
20-
const VALID_BOOLEAN_SLOTS = [
21-
'boolean1',
22-
'boolean2',
23-
'boolean3',
24-
'boolean4',
25-
'boolean5',
26-
'boolean6',
27-
'boolean7',
28-
] as const
20+
const VALID_BOOLEAN_SLOTS = ['boolean1', 'boolean2', 'boolean3'] as const
2921

3022
type TextSlot = (typeof VALID_TEXT_SLOTS)[number]
3123
type NumberSlot = (typeof VALID_NUMBER_SLOTS)[number]

apps/sim/lib/knowledge/tags/service.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,11 @@ const logger = createLogger('TagsService')
1616
/** Text tag slots */
1717
const VALID_TEXT_SLOTS = ['tag1', 'tag2', 'tag3', 'tag4', 'tag5', 'tag6', 'tag7'] as const
1818

19-
const VALID_NUMBER_SLOTS = ['number1', 'number2', 'number3'] as const
19+
const VALID_NUMBER_SLOTS = ['number1', 'number2', 'number3', 'number4', 'number5'] as const
2020
/** Date tag slots (reduced to 2 for write performance) */
2121
const VALID_DATE_SLOTS = ['date1', 'date2'] as const
2222
/** Boolean tag slots */
23-
const VALID_BOOLEAN_SLOTS = [
24-
'boolean1',
25-
'boolean2',
26-
'boolean3',
27-
'boolean4',
28-
'boolean5',
29-
'boolean6',
30-
'boolean7',
31-
] as const
23+
const VALID_BOOLEAN_SLOTS = ['boolean1', 'boolean2', 'boolean3'] as const
3224

3325
/** All valid tag slots combined */
3426
const VALID_TAG_SLOTS = [
File renamed without changes.

packages/db/migrations/meta/0124_snapshot.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "c81d28fc-0165-4424-aac0-a2c7a7638128",
2+
"id": "62de8af8-29a7-4e7a-8b9a-c33268fbbc81",
33
"prevId": "1be6ebb3-fe8a-4abd-9f4d-cfb8341f5319",
44
"version": "7",
55
"dialect": "postgresql",

packages/db/migrations/meta/_journal.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,8 +866,8 @@
866866
{
867867
"idx": 124,
868868
"version": "7",
869-
"when": 1766090535365,
870-
"tag": "0124_deep_hercules",
869+
"when": 1766092590719,
870+
"tag": "0124_burly_scream",
871871
"breakpoints": true
872872
}
873873
]

0 commit comments

Comments
 (0)