mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-08 10:26:50 +08:00
feat: add retriever rank fe (#1557)
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { AppMode } from './app'
|
||||
import type { DataSourceNotionPage } from './common'
|
||||
import type { RetrievalConfig } from '@/types/app'
|
||||
|
||||
export enum DataSourceType {
|
||||
FILE = 'upload_file',
|
||||
@@ -25,6 +26,8 @@ export type DataSet = {
|
||||
embedding_model: string
|
||||
embedding_model_provider: string
|
||||
embedding_available: boolean
|
||||
retrieval_model_dict: RetrievalConfig
|
||||
retrieval_model: RetrievalConfig
|
||||
}
|
||||
|
||||
export type CustomFile = File & {
|
||||
@@ -193,6 +196,7 @@ export type DocumentReq = {
|
||||
|
||||
export type CreateDocumentReq = DocumentReq & {
|
||||
data_source: DataSource
|
||||
retrieval_model: RetrievalConfig
|
||||
}
|
||||
|
||||
export type IndexingEstimateParams = DocumentReq & Partial<DataSource> & {
|
||||
|
||||
Reference in New Issue
Block a user