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
1350599c
Unverified
Commit
1350599c
authored
Dec 07, 2023
by
zxhlyh
Committed by
GitHub
Dec 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: process document priority tip (#1712)
parent
bc54cdc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
index.tsx
...pp/components/datasets/create/embedding-process/index.tsx
+3
-2
No files found.
web/app/components/datasets/create/embedding-process/index.tsx
View file @
1350599c
...
@@ -16,6 +16,7 @@ import { fetchIndexingStatusBatch as doFetchIndexingStatus, fetchIndexingEstimat
...
@@ -16,6 +16,7 @@ import { fetchIndexingStatusBatch as doFetchIndexingStatus, fetchIndexingEstimat
import
{
DataSourceType
}
from
'@/models/datasets'
import
{
DataSourceType
}
from
'@/models/datasets'
import
NotionIcon
from
'@/app/components/base/notion-icon'
import
NotionIcon
from
'@/app/components/base/notion-icon'
import
PriorityLabel
from
'@/app/components/billing/priority-label'
import
PriorityLabel
from
'@/app/components/billing/priority-label'
import
{
Plan
}
from
'@/app/components/billing/type'
import
{
ZapFast
}
from
'@/app/components/base/icons/src/vender/solid/general'
import
{
ZapFast
}
from
'@/app/components/base/icons/src/vender/solid/general'
import
UpgradeBtn
from
'@/app/components/billing/upgrade-btn'
import
UpgradeBtn
from
'@/app/components/billing/upgrade-btn'
import
{
useProviderContext
}
from
'@/context/provider-context'
import
{
useProviderContext
}
from
'@/context/provider-context'
...
@@ -82,7 +83,7 @@ const RuleDetail: FC<{ sourceData?: ProcessRuleResponse }> = ({ sourceData }) =>
...
@@ -82,7 +83,7 @@ const RuleDetail: FC<{ sourceData?: ProcessRuleResponse }> = ({ sourceData }) =>
const
EmbeddingProcess
:
FC
<
Props
>
=
({
datasetId
,
batchId
,
documents
=
[],
indexingType
})
=>
{
const
EmbeddingProcess
:
FC
<
Props
>
=
({
datasetId
,
batchId
,
documents
=
[],
indexingType
})
=>
{
const
{
t
}
=
useTranslation
()
const
{
t
}
=
useTranslation
()
const
{
enableBilling
}
=
useProviderContext
()
const
{
enableBilling
,
plan
}
=
useProviderContext
()
const
getFirstDocument
=
documents
[
0
]
const
getFirstDocument
=
documents
[
0
]
...
@@ -198,7 +199,7 @@ const EmbeddingProcess: FC<Props> = ({ datasetId, batchId, documents = [], index
...
@@ -198,7 +199,7 @@ const EmbeddingProcess: FC<Props> = ({ datasetId, batchId, documents = [], index
</
div
>
</
div
>
</
div
>
</
div
>
{
{
enableBilling
&&
(
enableBilling
&&
plan
.
type
!==
Plan
.
team
&&
(
<
div
className=
'flex items-center mb-3 p-3 h-14 bg-white border-[0.5px] border-black/5 shadow-md rounded-xl'
>
<
div
className=
'flex items-center mb-3 p-3 h-14 bg-white border-[0.5px] border-black/5 shadow-md rounded-xl'
>
<
div
className=
'shrink-0 flex items-center justify-center w-8 h-8 bg-[#FFF6ED] rounded-lg'
>
<
div
className=
'shrink-0 flex items-center justify-center w-8 h-8 bg-[#FFF6ED] rounded-lg'
>
<
ZapFast
className=
'w-4 h-4 text-[#FB6514]'
/>
<
ZapFast
className=
'w-4 h-4 text-[#FB6514]'
/>
...
...
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