From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
models/datasets.ts | 31 ++++++++-----------------------
1 files changed, 8 insertions(+), 23 deletions(-)
diff --git a/models/datasets.ts b/models/datasets.ts
index 12ea497..170fe19 100644
--- a/models/datasets.ts
+++ b/models/datasets.ts
@@ -2,8 +2,6 @@
import type { AppIconType, AppMode, RetrievalConfig } from '@/types/app'
import type { Tag } from '@/app/components/base/tag-management/constant'
import type { IndexingType } from '@/app/components/datasets/create/step-two'
-import type { MetadataFilteringVariableType } from '@/app/components/workflow/nodes/knowledge-retrieval/types'
-import type { MetadataItemWithValue } from '@/app/components/datasets/metadata/types'
export enum DataSourceType {
FILE = 'upload_file',
@@ -12,22 +10,15 @@
}
export enum DatasetPermission {
- onlyMe = 'only_me',
- allTeamMembers = 'all_team_members',
- partialMembers = 'partial_members',
+ 'onlyMe' = 'only_me',
+ 'allTeamMembers' = 'all_team_members',
+ 'partialMembers' = 'partial_members',
}
export enum ChunkingMode {
- text = 'text_model', // General text
- qa = 'qa_model', // General QA
- parentChild = 'hierarchical_model', // Parent-Child
-}
-
-export type MetadataInDoc = {
- value: string
- id: string
- type: MetadataFilteringVariableType
- name: string
+ 'text' = 'text_model', // General text
+ 'qa' = 'qa_model', // General QA
+ 'parentChild' = 'hierarchical_model', // Parent-Child
}
export type DataSet = {
@@ -65,8 +56,6 @@
score_threshold: number
score_threshold_enabled: boolean
}
- built_in_field_enabled: boolean
- doc_metadata?: MetadataInDoc[]
}
export type ExternalAPIItem = {
@@ -151,10 +140,9 @@
url: string
params: {
page: number
- ids?: string[]
tag_ids?: string[]
- limit?: number
- include_all?: boolean
+ limit: number
+ include_all: boolean
keyword?: string
}
}
@@ -325,7 +313,6 @@
extension: string
}
}
- doc_metadata?: MetadataItemWithValue[]
}
export type DocumentListResponse = {
@@ -469,7 +456,6 @@
position: number
document_id: string
content: string
- sign_content: string
word_count: number
tokens: number
keywords: string[]
@@ -538,7 +524,6 @@
id: string
document: Document
content: string
- sign_content: string
position: number
word_count: number
tokens: number
--
Gitblit v1.8.0