mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-01 07:02:03 +08:00
### What problem does this PR solve? feat: Click on the chunk on the search page to locate the corresponding file location #2247 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
db0606e064
commit
cbdf54cf36
@ -100,6 +100,7 @@ export interface ITestingChunk {
|
|||||||
vector: number[];
|
vector: number[];
|
||||||
vector_similarity: number;
|
vector_similarity: number;
|
||||||
highlight: string;
|
highlight: string;
|
||||||
|
positions: number[][];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ITestingDocument {
|
export interface ITestingDocument {
|
||||||
|
@ -146,7 +146,12 @@ const SearchPage = () => {
|
|||||||
className={styles.chunks}
|
className={styles.chunks}
|
||||||
renderItem={(item) => (
|
renderItem={(item) => (
|
||||||
<List.Item>
|
<List.Item>
|
||||||
<Card className={styles.card}>
|
<Card
|
||||||
|
className={styles.card}
|
||||||
|
onClick={() =>
|
||||||
|
clickDocumentButton(item.doc_id, item as any)
|
||||||
|
}
|
||||||
|
>
|
||||||
<Space>
|
<Space>
|
||||||
<ImageWithPopover
|
<ImageWithPopover
|
||||||
id={item.img_id}
|
id={item.img_id}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user