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
80ddb00f
Unverified
Commit
80ddb00f
authored
Nov 27, 2023
by
zxhlyh
Committed by
GitHub
Nov 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: score_threshold_enabled variable (#1627)
parent
74b2260b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
index.tsx
...mponents/datasets/common/retrieval-param-config/index.tsx
+2
-2
index.tsx
web/app/components/datasets/create/step-two/index.tsx
+1
-1
index.tsx
web/app/components/explore/sidebar/index.tsx
+2
-2
app.ts
web/types/app.ts
+1
-1
No files found.
web/app/components/datasets/common/retrieval-param-config/index.tsx
View file @
80ddb00f
...
...
@@ -114,12 +114,12 @@ const RetrievalParamConfig: FC<Props> = ({
score_threshold
:
v
,
})
}
}
enable=
{
value
.
score_threshold_enable
}
enable=
{
value
.
score_threshold_enable
d
}
hasSwitch=
{
true
}
onSwitchChange=
{
(
_key
,
v
)
=>
{
onChange
({
...
value
,
score_threshold_enable
:
v
,
score_threshold_enable
d
:
v
,
})
}
}
/>
...
...
web/app/components/datasets/create/step-two/index.tsx
View file @
80ddb00f
...
...
@@ -493,7 +493,7 @@ const StepTwo = ({
reranking_model_name
:
rerankDefaultModel
?.
model_name
,
},
top_k
:
3
,
score_threshold_enable
:
false
,
score_threshold_enable
d
:
false
,
score_threshold
:
0.5
,
}
as
RetrievalConfig
)
...
...
web/app/components/explore/sidebar/index.tsx
View file @
80ddb00f
...
...
@@ -94,7 +94,7 @@ const SideBar: FC<IExploreSideBarProps> = ({
<
div
>
<
Link
href=
'/explore/apps'
className=
{
cn
(
isDiscoverySelected
?
'text-primary-600 bg-white font-semibold'
:
'text-gray-700 font-medium
'
,
'flex items-center
mobile:justify-center mobile:w-fit h-9 px-3 mobile:px-2 gap-2 rounded-lg'
)
}
className=
{
cn
(
isDiscoverySelected
?
'text-primary-600 bg-white font-semibold'
:
'text-gray-700 font-medium
hover:bg-gray-200'
,
'flex items-center pc:justify-start pc:w-full
mobile:justify-center mobile:w-fit h-9 px-3 mobile:px-2 gap-2 rounded-lg'
)
}
style=
{
isDiscoverySelected
?
{
boxShadow
:
'0px 1px 2px rgba(16, 24, 40, 0.05)'
}
:
{}
}
>
{
isDiscoverySelected
?
<
SelectedDiscoveryIcon
/>
:
<
DiscoveryIcon
/>
}
...
...
@@ -102,7 +102,7 @@ const SideBar: FC<IExploreSideBarProps> = ({
</
Link
>
<
Link
href=
'/explore/chat'
className=
{
cn
(
isChatSelected
?
'text-primary-600 bg-white font-semibold'
:
'text-gray-700 font-medium
'
,
'flex items-center
mobile:justify-center mobile:w-fit h-9 px-3 mobile:px-2 gap-2 rounded-lg'
)
}
className=
{
cn
(
isChatSelected
?
'text-primary-600 bg-white font-semibold'
:
'text-gray-700 font-medium
hover:bg-gray-200'
,
'flex items-center pc:justify-start pc:w-full
mobile:justify-center mobile:w-fit h-9 px-3 mobile:px-2 gap-2 rounded-lg'
)
}
style=
{
isChatSelected
?
{
boxShadow
:
'0px 1px 2px rgba(16, 24, 40, 0.05)'
}
:
{}
}
>
{
isChatSelected
?
<
SelectedChatIcon
/>
:
<
ChatIcon
/>
}
...
...
web/types/app.ts
View file @
80ddb00f
...
...
@@ -332,6 +332,6 @@ export type RetrievalConfig = {
reranking_model_name
:
string
}
top_k
:
number
score_threshold_enable
:
boolean
score_threshold_enable
d
:
boolean
score_threshold
:
number
}
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