feat: Click on the chunk on the search page to locate the corresponding file location #2247 (#2399)

### 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:
balibabu 2024-09-13 08:54:26 +08:00 committed by GitHub
parent db0606e064
commit cbdf54cf36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -100,6 +100,7 @@ export interface ITestingChunk {
vector: number[];
vector_similarity: number;
highlight: string;
positions: number[][];
}
export interface ITestingDocument {

View File

@ -146,7 +146,12 @@ const SearchPage = () => {
className={styles.chunks}
renderItem={(item) => (
<List.Item>
<Card className={styles.card}>
<Card
className={styles.card}
onClick={() =>
clickDocumentButton(item.doc_id, item as any)
}
>
<Space>
<ImageWithPopover
id={item.img_id}