Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
d8a7e894
Unverified
Commit
d8a7e894
authored
Nov 21, 2023
by
Joel
Committed by
GitHub
Nov 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: retrieval test page hide rerank model also hide retrieval config (#1585)
parent
d5acfaa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
modify-retrieval-modal.tsx
...omponents/datasets/hit-testing/modify-retrieval-modal.tsx
+4
-5
No files found.
web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx
View file @
d8a7e894
'use client'
'use client'
import
type
{
FC
}
from
'react'
import
type
{
FC
}
from
'react'
import
React
,
{
useRef
,
useState
}
from
'react'
import
React
,
{
useRef
,
useState
}
from
'react'
import
{
useClickAway
}
from
'ahooks'
import
{
useTranslation
}
from
'react-i18next'
import
{
useTranslation
}
from
'react-i18next'
import
Toast
from
'../../base/toast'
import
Toast
from
'../../base/toast'
import
{
XClose
}
from
'@/app/components/base/icons/src/vender/line/general'
import
{
XClose
}
from
'@/app/components/base/icons/src/vender/line/general'
...
@@ -31,10 +30,10 @@ const ModifyRetrievalModal: FC<Props> = ({
...
@@ -31,10 +30,10 @@ const ModifyRetrievalModal: FC<Props> = ({
const
{
t
}
=
useTranslation
()
const
{
t
}
=
useTranslation
()
const
[
retrievalConfig
,
setRetrievalConfig
]
=
useState
(
value
)
const
[
retrievalConfig
,
setRetrievalConfig
]
=
useState
(
value
)
useClickAway
(()
=>
{
//
useClickAway(() => {
if
(
ref
)
//
if (ref)
onHide
()
//
onHide()
},
ref
)
//
}, ref)
const
{
const
{
rerankDefaultModel
,
rerankDefaultModel
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment