浏览代码

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)
tags/v0.11.0
balibabu 1年前
父节点
当前提交
cbdf54cf36
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 1
    0
      web/src/interfaces/database/knowledge.ts
  2. 6
    1
      web/src/pages/search/index.tsx

+ 1
- 0
web/src/interfaces/database/knowledge.ts 查看文件

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

export interface ITestingDocument {

+ 6
- 1
web/src/pages/search/index.tsx 查看文件

@@ -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}

正在加载...
取消
保存