Knowledge optimization (#3755)

Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: JzoNg <jzongcode@gmail.com>
This commit is contained in:
Jyong 2024-04-24 15:02:29 +08:00 • committed by GitHub
commit f257f2c396
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
75 changed files with 2756 additions and 266 deletions

View file

@ -1,5 +1,6 @@
import type { DataSourceNotionPage } from './common'
import type { AppMode, RetrievalConfig } from '@/types/app'
import type { Tag } from '@/app/components/base/tag-management/constant'
export enum DataSourceType {
FILE = 'upload_file',
@ -27,6 +28,7 @@ export type DataSet = {
embedding_available: boolean
retrieval_model_dict: RetrievalConfig
retrieval_model: RetrievalConfig
tags: Tag[]
}
export type CustomFile = File & {
@ -410,3 +412,8 @@ export enum DocForm {
TEXT = 'text_model',
QA = 'qa_model',
}
export type ErrorDocsResponse = {
data: IndexingStatusResponse[]
total: number
}