feat: n to 1 retrieval legacy (#6554)
This commit is contained in:
parent
e4bb943fe5
commit
6fe9aa69cc
35 changed files with 1329 additions and 249 deletions
|
|
@ -97,6 +97,8 @@ type IDebugConfiguration = {
|
|||
isShowVisionConfig: boolean
|
||||
visionConfig: VisionSettings
|
||||
setVisionConfig: (visionConfig: VisionSettings, noNotice?: boolean) => void
|
||||
rerankSettingModalOpen: boolean
|
||||
setRerankSettingModalOpen: (rerankSettingModalOpen: boolean) => void
|
||||
}
|
||||
|
||||
const DebugConfigurationContext = createContext<IDebugConfiguration>({
|
||||
|
|
@ -217,7 +219,7 @@ const DebugConfigurationContext = createContext<IDebugConfiguration>({
|
|||
showSelectDataSet: () => { },
|
||||
setDataSets: () => { },
|
||||
datasetConfigs: {
|
||||
retrieval_model: RETRIEVE_TYPE.oneWay,
|
||||
retrieval_model: RETRIEVE_TYPE.multiWay,
|
||||
reranking_model: {
|
||||
reranking_provider_name: '',
|
||||
reranking_model_name: '',
|
||||
|
|
@ -239,6 +241,8 @@ const DebugConfigurationContext = createContext<IDebugConfiguration>({
|
|||
transfer_methods: [TransferMethod.remote_url],
|
||||
},
|
||||
setVisionConfig: () => { },
|
||||
rerankSettingModalOpen: false,
|
||||
setRerankSettingModalOpen: () => { },
|
||||
})
|
||||
|
||||
export const useDebugConfigurationContext = () => useContext(DebugConfigurationContext)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue