feat: add retriever rank fe (#1557)
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
This commit is contained in:
@@ -22,6 +22,18 @@ export enum ModelModeType {
|
||||
'unset' = '',
|
||||
}
|
||||
|
||||
export enum RETRIEVE_TYPE {
|
||||
oneWay = 'single',
|
||||
multiWay = 'multiple',
|
||||
}
|
||||
|
||||
export enum RETRIEVE_METHOD {
|
||||
semantic = 'semantic_search',
|
||||
fullText = 'full_text_search',
|
||||
hybrid = 'hybrid_search',
|
||||
invertedIndex = 'invertedIndex',
|
||||
}
|
||||
|
||||
export type VariableInput = {
|
||||
key: string
|
||||
name: string
|
||||
@@ -311,3 +323,15 @@ export type VisionFile = {
|
||||
url: string
|
||||
upload_file_id: string
|
||||
}
|
||||
|
||||
export type RetrievalConfig = {
|
||||
search_method: RETRIEVE_METHOD
|
||||
reranking_enable: boolean
|
||||
reranking_model: {
|
||||
reranking_provider_name: string
|
||||
reranking_model_name: string
|
||||
}
|
||||
top_k: number
|
||||
score_threshold_enable: boolean
|
||||
score_threshold: number
|
||||
}
|
||||
|
Reference in New Issue
Block a user