Skip to content

Commit 449f2bc

Browse files
committed
feat: default assistant instructions should be empty
1 parent eadeca5 commit 449f2bc

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ export const validModels = [
4646

4747
export const DEFAULT_MODEL_ON_ENABLE = 'gpt-4.1'
4848

49-
export const DEFAULT_ASSISTANT_INSTRUCTIONS = 'Olet avulias avustaja'
49+
export const DEFAULT_ASSISTANT_INSTRUCTIONS = '' // 11th August 2025 we decided it should be empty
5050
export const DEFAULT_MODEL_TEMPERATURE = 0.5

src/server/db/models/ragIndex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Model, InferAttributes, InferCreationAttributes, CreationOptional, DataTypes, NonAttribute } from 'sequelize'
22

33
import { sequelize } from '../connection'
4-
import { RagIndexMetadata } from '../../../shared/types'
4+
import type { RagIndexMetadata } from '../../../shared/types'
55
import type ChatInstance from './chatInstance'
66

77
class RagIndex extends Model<InferAttributes<RagIndex>, InferCreationAttributes<RagIndex>> {

src/shared/types.ts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import type { IngestionPipelineStageKey } from './constants'
2-
import type { ChatToolDef } from './tools'
32

43
export type RagIndexMetadata = {
54
name: string
6-
instructions?: string
5+
toolDescription?: string
76
language?: 'Finnish' | 'English'
87
}
98

@@ -35,23 +34,6 @@ export type RagIndexAttributes = {
3534
ragFiles?: RagFileAttributes[]
3635
}
3736

38-
export type FileCitation = {
39-
file_id: string
40-
filename: string
41-
index: number
42-
type: 'file_citation'
43-
}
44-
45-
export type FileSearchCompletedData = {
46-
status: string
47-
id: string
48-
queries: string[]
49-
searchedFileNames: string[]
50-
ragIndexId: number
51-
}
52-
53-
export type FileSearchResultData = Record<string, unknown>
54-
5537
export type Locale = {
5638
fi?: string
5739
en?: string

0 commit comments

Comments
 (0)