Skip to content

Commit

Permalink
Merge branch 'feat/parent-child-retrieval' of https://github.com/lang…
Browse files Browse the repository at this point in the history
…genius/dify into feat/parent-child-retrieval
  • Loading branch information
WTW0313 committed Dec 16, 2024
2 parents 022fa66 + ab7df47 commit 6a02076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const ChildChunks: FC<Props> = ({
payload,
isShowAll,
}) => {
const { id, score, content } = payload
const { id, score, content, position } = payload
return (
<div
className={!isShowAll ? 'line-clamp-2' : ''}
>
<div className='inline-flex items-center relative top-[-3px]'>
<div className='flex items-center h-[24px] bg-state-accent-solid system-2xs-semibold-uppercase text-text-primary-on-surface px-1'>C-{id}</div>
<div className='flex items-center h-[24px] bg-state-accent-solid system-2xs-semibold-uppercase text-text-primary-on-surface px-1'>C-{position}</div>
<Score value={score} besideChunkName />
</div>
<SliceContent className='bg-state-accent-hover group-hover:bg-state-accent-hover text-text-secondary font-normal'>{content}</SliceContent>
Expand Down
1 change: 1 addition & 0 deletions web/models/datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ export type HitTestingRecord = {
export type HitTestingChildChunk = {
id: string
content: string
position: number
score: number
}
export type HitTesting = {
Expand Down

0 comments on commit 6a02076

Please sign in to comment.